NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×74
×59
×14

question asked: 01 Oct '18, 21:52

question was seen: 1,904 times

last updated: 02 Oct '18, 08:55

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum