Hi Andrew,

It works but it zooms out and in at some other location not the area
selected.
Sorry i cannot supply link as i dont have server to upload.

Regards,
Rahul M

On Sep 29, 10:53 am, Andrew Leach <andrew.leac...@gmail.com> wrote:
> On Sep 29, 10:46 am, Rahul Mehta <mehta.rahu...@googlemail.com> wrote:
>
>
>
>
>
> > i changed the values and its working fine
>
> > var allowedBounds = new GLatLngBounds(new GLatLng(50.597186, 0.35 ),
> > new GLatLng(52.696361,
> >  -1.098633));
>
> > find code below...its not working fine on zoom in and zoom out..pls
> > help whats going wrong
>
> >                 // ====== Restricting the range of Zoom Levels =====
> >                 // Get the list of map types
> >                 var mt = map.getMapTypes();
> >                 // Overwrite the getMinimumResolution() and
> > getMaximumResolution() methods
> >                 for (var i = 0; i < mt.length; i++) {
> >                     mt[i].getMinimumResolution = function() { return
> > 12; }
> >                     mt[i].getMaximumResolution = function() { return
> > 20; }
>
> That should work. If it isn't, you must supply a link, not a code
> listing. I've lost count of how many times that phrase has appeared in
> the Group.- 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