openstreetmap / iD

🆔 The easy-to-use OpenStreetMap editor in JavaScript.
https://www.openstreetmap.org/edit?editor=id
ISC License
3.37k stars 1.21k forks source link

Prevent panning beyond the edge of the world #6655

Open quincylvania opened 5 years ago

quincylvania commented 5 years ago

iD shouldn't let you pan such that the imagery and data are off screen. It's disorienting.

Note that the Mercator projection extends infinitely along the y-axis, which means features like the north and south poles sit far beyond the extent of the imagery. I'm not sure how we should handle those.

pan demo

BjornRasmussen commented 5 years ago

Note that the Mercator projection extends infinitely along the y-axis, which means features like the north and south poles sit far beyond the extent of the imagery. I'm not sure how we should handle those.

I think that preventing people from editing the North/South Pole is fine.

quincylvania commented 5 years ago

I think that preventing people from editing the North/South Pole is fine.

We could still let people search and select them plus edit their tags, just not drag them around.

Ha I searched South Pole and iD took me to map=NaN/NaN/NaN.

DujaOSM commented 5 years ago

...lest one falls off from the turtle's back ;)