theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
111 stars 8 forks source link

Handle polygons that wrap the antimeridian in leaflet (oceana + polynesia) #3348

Open brendanheywood opened 5 years ago

brendanheywood commented 5 years ago

What happened?

This gps coord is in the middle of the Indian ocean but gets labeled as part of Polynesia:

https://www.thecrag.com/climbing/pacific-islands/area/753841053/maps#-23.91,80.49,5.0,,auto

The inverse is wrong too, ie at the node for polynesia it's bbox contains the whole world:

https://www.thecrag.com/climbing/pacific-islands/area/753841053

What you expected:

Mdemaillard commented 4 years ago

probably related to #2091 & #3567