-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
If you configure the map's bounds to the world bounds ([[-90.0,-180.0],[90.0,180.0]]), you can infinitly move the map on the vertical axis.
In my opinion, it's because the default projection tends to zero with the worlds bounds.
I wrote this example : http://jsfiddle.net/gxzhc/1/, where the bounds are a little smaller so you can see a very short animation (around 3 pixels) when you release your mouse click.
The problem seems to be in the panInsideBounds function, but i don't know how to fix it properly. Maybe we have to work with latitude and longitude instead of pixels.
Can you give me advices for fixing it ?
Metadata
Metadata
Assignees
Labels
No labels