You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapbox static image api does not support polygons that cross the antimeridian, which can easily happen if the analysis is done over the pacific ocean.
A possible option would be to split the polygon and make sure it wraps correctly.
The geojson-antimeridian-cut seems to be the library for this situation, but I wasn't able to get it to work.
The text was updated successfully, but these errors were encountered:
danielfdsilva
changed the title
Map thumbnail fails loading when polygon crosses the antimeridian
Map thumbnail fail to load when polygon crosses the antimeridian
Apr 6, 2023
The mapbox static image api does not support polygons that cross the antimeridian, which can easily happen if the analysis is done over the pacific ocean.
A possible option would be to split the polygon and make sure it wraps correctly.
The geojson-antimeridian-cut seems to be the library for this situation, but I wasn't able to get it to work.
Perhaps a simpler approach is desirable.
cc @nerik
The text was updated successfully, but these errors were encountered: