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
Hi, I was reporting this as a Bug, but I couldn't... really I don't know why. Anyway...
I've an app in which some polygons are shown on a map, and I can switch from Mapview to GlobeView.
Some of the polygons I draw cross the dayline and I'm setting 'wrapLongitude: true' inside my geojsonLayer.
In the MapView that works as expected (polygon is rendered using the shortest path between points) while in the GlobeView is like if the wrapLongitude option is not taken into consideration.
I know GlobeView is still experimental, so I would like to ask: is this behaviour already known?
Is there any workaround for this?
Attached there are two screenshots showing what I explained.
Thanks.
This is the geojson object used in the pictures, but it is the same with every polygon crossing the timeline. { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 180, 67.49538474561554 ], [ 178.32091511234617, 67.46009631583803 ], [ 178.11846829670665, 68.44150994437882 ], [ 180, 68.48132949834779 ], [ -179.20553686861643, 68.49814301654742 ], [ -179.12513055658002, 67.63615221687259 ], [ -179.24594977599162, 67.54955350621555 ], [ -179.30018664431762, 67.51009234893027 ], [ 180, 67.49538474561554 ] ] ] } }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I was reporting this as a Bug, but I couldn't... really I don't know why. Anyway...
I've an app in which some polygons are shown on a map, and I can switch from Mapview to GlobeView.
Some of the polygons I draw cross the dayline and I'm setting 'wrapLongitude: true' inside my geojsonLayer.
In the MapView that works as expected (polygon is rendered using the shortest path between points) while in the GlobeView is like if the wrapLongitude option is not taken into consideration.
I know GlobeView is still experimental, so I would like to ask: is this behaviour already known?
Is there any workaround for this?
Attached there are two screenshots showing what I explained.
Thanks.
This is the geojson object used in the pictures, but it is the same with every polygon crossing the timeline.
{ "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 180, 67.49538474561554 ], [ 178.32091511234617, 67.46009631583803 ], [ 178.11846829670665, 68.44150994437882 ], [ 180, 68.48132949834779 ], [ -179.20553686861643, 68.49814301654742 ], [ -179.12513055658002, 67.63615221687259 ], [ -179.24594977599162, 67.54955350621555 ], [ -179.30018664431762, 67.51009234893027 ], [ 180, 67.49538474561554 ] ] ] } }
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions