leaflet-blurred-location icon indicating copy to clipboard operation
leaflet-blurred-location copied to clipboard

Grid box selection not working between 1W and 0 degrees longitude

Open ebarry opened this issue 5 years ago • 0 comments

Continued from https://github.com/publiclab/plots2/issues/6697#issuecomment-555565550

The Problem

In the map picker, i was unable to choose the square for London, see gif below. The problem with the red highlight "skipping" over certain areas seems to be happening to certain longitudes, namely between 1W and 0 degrees longitude. Is there perhaps a math error involved? @jywarren observed that:

the algorithm to draw the boxes is probably is not set up for the special case of a box where one longitude is ~359 and the other ~0. Thanks!

68313983-7745cb80-0083-11ea-9acf-27df6351117d

ebarry avatar Nov 26 '19 19:11 ebarry