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
When panning the world east or westwards the map repeats itself to imitate a turning globe. However, the longitude coordinate does not reset at 180 or 0 degrees (expected behaviour in Leaflet). Thus, the after one panning to the east the longitude will be 180< deg and to the west <-180 deg. Apart from weird-looking coordinates (e.g. long==-129381723) it gives problems on e.g. getFeature requests to WMS/WFS services.
When panning the world east or westwards the map repeats itself to imitate a turning globe. However, the longitude coordinate does not reset at 180 or 0 degrees (expected behaviour in Leaflet). Thus, the after one panning to the east the longitude will be 180< deg and to the west <-180 deg. Apart from weird-looking coordinates (e.g. long==-129381723) it gives problems on e.g. getFeature requests to WMS/WFS services.
The solution is to call
.wrap()
on allLatLng
objects before handling them: http://leafletjs.com/reference.html#latlng-wrapThe text was updated successfully, but these errors were encountered: