Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Image coordinates must be an array of four longitude latitude pairs" error when calling setCoordinates(LatLngQuad latLngQuad) #302

Open
intra opened this issue May 1, 2021 · 1 comment

Comments

@intra
Copy link

intra commented May 1, 2021

After update to mapbox version 9.6.1 we are getting "Image coordinates must be an array of four longitude latitude pairs" error when calling setCoordinates(LatLngQuad latLngQuad) on ImageSource object.

It looks like the problem might be in native code bellow:.

if (!isArray(*coordinatesValue) || arrayLength(*coordinatesValue) != 4) {
    error.message = "Image coordinates must be an array of four longitude latitude pairs";
    return nullopt;
}
@stale stale bot added the archived label Apr 19, 2022
@hungtrn75
Copy link

I have the same issue

@stale stale bot removed the archived label Oct 11, 2022
m0nac0 added a commit to maplibre/flutter-maplibre-gl that referenced this issue Sep 15, 2023
This PR basically backports an existing function from
[https://github.com/flutter-mapbox-gl/maps](https://github.com/flutter-mapbox-gl/maps).
Unlike that one, this does not suffer from
mapbox/mapbox-maps-android#302 and it works
nicely on both iOS and Android. The web version is still unimplemented,
similar to existing image source related functions.
(Sorry a thing I'm building only requires `updateImageSource` on both
iOS and Android.)

---------

Co-authored-by: m0nac0 <58807793+m0nac0@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants