This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Map leaflet with wrapping GPS points

0

Hi,

I am using the map leaflet via Observium. I have posted this on the mailing list but I suspect this will be something for you guys rather than them :)

When using the leaflet and one point is on the other side of the GPS wrap around line, so something like:

(lat long) -16 -179 -16 179

The leaflet will display the entire world - is it possible to make it zoom in on only that area ? Something like using the absolute value rather than the true value of the long ?

Thanks !

asked 01 Oct '18, 21:52

dewitpj's gravatar image

dewitpj
21112
accept rate: 0%

This question is really about Leaflet, not OpenStreetMap. Try asking at http://stackoverflow.com/ or http://gis.stackexchange.com/.

(02 Oct '18, 07:48) scai ♦

Oh sorry - I thought the leaflet is part of OSM - thanks !

(02 Oct '18, 08:21) dewitpj

Nope, Leaflet is a third-party library and completely independent from OSM :)

(02 Oct '18, 08:55) scai ♦

Source code available on GitHub .