On Sep 29, 9:50 am, Rahul Mehta <mehta.rahu...@googlemail.com> wrote: > Hi Andrew, > That was really helpful. > > 1 more question. How to stop pan. > Pan : so that user cannot move around the map and i have to make him > look in selected area only
That's also covered in that example. http://econym.org.uk/gmap/range.htm // Add a move listener to restrict the bounds range GEvent.addListener(map, "move", function() { checkBounds(); }); // The allowed region which the whole map must be within var allowedBounds = new GLatLngBounds(new GLatLng(49.5,-10), new GLatLng(59,2.6)); // If the map position is out of range, move it back function checkBounds() { // Perform the check and return if OK .... -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.