kajic / leaflet-locationfilter

Leaflet location filter
MIT License
56 stars 38 forks source link

rendering problems at low zoom levels #6

Closed jfirebaugh closed 12 years ago

jfirebaugh commented 12 years ago

If you go to http://leaflet.apis.dev.openstreetmap.org/export and zoom out to the three lowest zoom levels, then click "Manually select a different area", you can see that the location filter has some strange effects:

Screenshot

kajic commented 12 years ago

That looks bad indeed. Wonder if it may have something to do with the fact that the filter seems to be spanning two latitude quadrants.

jfirebaugh commented 12 years ago

It turned out to be due to LatLng wrapping behavior.

kajic commented 12 years ago

Thanks för the fix!