I have created a custom map (fantasy map) with google map api V3 and, by default, the panning is unlimited. My map beeing very limited, I don't want the user to be able to pan outside it, whatever the zoom.
I read a thread about it here: How do I limit panning in Google maps API V3?
It's good but, somehow, it doesn't work well for every zoom level.
You can see the problem very clearly here with the same code: http://econym.org.uk/gmap/example_range.htm
On this example, at the default zoom level, you can see some lands on the extreme top right of the map ("Bergen"). But the more you zoom, the more these lands get out of the map and become unreachable. That's exactly what I get with my own map with the same script... If I set boudaries at my default zoom level, the more I zoom, the more the edges of the map get out of reach.
Is there any workaround in order to keep the exact same boudaries, whatever the zoom level?
Thank you.