Change zoomMax of built-in Map Type

32 views
Skip to first unread message

NoRyb

unread,
Jan 19, 2012, 10:43:34 AM1/19/12
to google-map...@googlegroups.com
Hello!

I would like to change the zoomMax-Property of a built-in Map Type (Satellite). I found a post in a googlegroup in September 2011 where a google employee reported that this was possible again. Now it seems that it's not.

The reason I need to do this is because I create an own Base Map Type. It should start right at zoomlevel 21. So you have the satellite map until 20 and if you zoom in, it switches to my own map type. The thing is, that because of maxZoom on Satellite I'm not able to go over this border.

Any suggestions how I could solve that?

Thank you very much

Enoch Lau (Google Employee)

unread,
Jan 19, 2012, 9:41:21 PM1/19/12
to google-map...@googlegroups.com
This isn't possible currently. If you'd like the ability to create map types that intersperse your tiles with Google's tiles, consider filing a feature request here: http://code.google.com/p/gmaps-api-issues/issues/list . In the feature request, consider explaining your use case in some detail.

Enoch

Martin™

unread,
Jan 20, 2012, 4:30:07 AM1/20/12
to Google Maps JavaScript API v3
Could you listen for the Map 'zoom_changed' event.

If the map is zoomed to 21 or more then change to your custom map, if
zoom changes to less than 21 display the satellite map type.

Martin.

NoRyb

unread,
Jan 20, 2012, 4:41:21 AM1/20/12
to google-map...@googlegroups.com
I am doing that at the moment. But I have to do it on Level 20 otherwise the zoom-control is at its limit and I'm not able to zoom "over" the border of the satellite map. This way I lose 1 zoomlevel of the satellite map.

Another ugly thing is that I have to configure it to look for zoom level 20... instead I would like to be able to ask for the maxZoomLevel of the current map type in case in the future anything changes. But that's just aesthetics.
Reply all
Reply to author
Forward
0 new messages