I had my map working with
worldCopyJump set to
true, but then it stopped working. I'm not sure exactly what broke it (the original form of this question said there was a connection to a plugin, but that doesn't seem to be the case), but it might be that I updated to Leaflet 0.62.
In any case, this is the problem: when the map loads, dragging the map would throw a bunch of errors claiming to have invalid LatLong objects (with a
NaN instead of the longitude), and the map would freeze.
Oddly enough, if before dragging the map I zoomed in or out, and then dragged, everything would work fine. Whatever the map is doing during
onzoom seems to be somehow fixing whatever problem it had.
Also peculiar is the LatLongs that are reported to be invalid: they are nowhere in the code. I have no idea where those numbers might be coming from.
I traced the error back to the
worldCopyJump option. If this is set to
false then the map works from the get go. But I need that option turned on. Can anybody think of what might be going on?
You can find a (non-)functional version of the map online here.
In case that does not last, here's the code: