joergdietrich / Leaflet.Terminator

Night and day regions on Earth
MIT License
120 stars 20 forks source link

Terminator doesn't wrap infinitely #2

Closed ghost closed 8 years ago

ghost commented 10 years ago

Great plugin! I just tested it though, and it seems not to wrap if the map is zoomed all the way out, even if worldCopyJump is set to true (http://leafletjs.com/reference.html#map-options).

Is the current width of the polygon a workaround? It seems to cover about 2 earth circumferences.

joergdietrich commented 10 years ago

Thanks for reporting this. This seems to be a limitation of the Polygon object rather than a bug in Terminator. worldCopyJump works if you remain zoomed in and pan the map.