views:

98

answers:

1

Hi, I"m trying to set limits to the map view so the user won't be able to pan it cyclic. (when panning to the right, instead of the map will cycle, I want it to stop).

is it possible?

Ori

+3  A: 

See this tutorial for v2: http://econym.org.uk/gmap/range.htm - basically, you add a listener for the move event, and abort the move if it goes outside the range. This should be applicable in v3 as well.

Piskvor
That's great if I was using Google maps api via web. but I'm using the API that android is providing which doesn't have the move event.
oriharel