Hi Andrew,

Sorry to open thread again
Its throwing an exception.
when i try to zoom in after i set the  to following latitude and
longitude.

 var allowedBounds = new GLatLngBounds(new GLatLng(52.696361,
-1.098633), new GLatLng(50.597186, 0.35));


is there any criteria to set the bounds.

Regadrs,
Rahul M


















On Sep 29, 10:05 am, Rahul Mehta <mehta.rahu...@googlemail.com> wrote:
> Thank you very much
>
> Regards
> Rahul M
>
> On Sep 29, 9:55 am, Andrew Leach <andrew.leac...@gmail.com> wrote:
>
>
>
> > 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
> >         ....- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to