This is straight from Mike William's Site - put this block of code
after you have already created your GMap2 object.
var mt = map.getMapTypes();
for (var i=0; i<mt.length; i++)
{
mt[i].getMinimumResolution = function() {return 7;}
mt[i].getMaximumResolution = function() {return 11;}
}
On Dec 4, 1:16 pm, justing <[email protected]> wrote:
> hi,
>
> I'm struggling to find out how to set a minimum / maximum zoom for a
> map i am testing/creating here:http://www.candyspacemedia.com/maptest/
>
> What i cannot seem to grasp from the documentation is how to add this
> functionality to what I currently have so it includes the
> getMinimumResolution() & getMaximumResolution() methods.
>
> Sorry my scripting skills are VERY limited!!!
>
> There doesn't seem to be any examples anywhere of this being utilised
> so I am struggling with this.
>
> Any help would be hugely appreciated!
>
> Justin
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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.