Thank you very much

Regards
Rahul M

On Sep 29, 9:55 am, Andrew Leach <[email protected]> wrote:
> On Sep 29, 9:50 am, Rahul Mehta <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to