Closed johnd0e closed 4 years ago
Problem is raised by this part:
panTo fires another "moveend" event with an unchanged (?) mapCenter.
Main question: why do we ever need this manual 'clamping'?
Isn't it the same as maxBounds
in map options?
maxBoundsViscosity
looks interesting too.
And perhaps map option worldCopyJump
should perform better than manual wrap-n-pan.
Edit: it fixes also issue similar to described in title message, but with longitude (e.g. if open https://intel.ingress.com?ll=0,180)
or
or some other similar variable stack trace.