Hello All-
I found no clear mention of this on the forum so far. I'm able to
display my custom tiles using the following portions of JS code:
// ...etc
customlayer = map.overlayMapTypes.insertAt(0, new
google.maps.ImageMapType({
getTileUrl: function(coord,zoom) {
var baseURL = 'maptiles/';
baseURL += 'preciprelief/' + zoom + '/' + coord.x + '/' +
(Math.pow(2,zoom)-coord.y-1) + ".png";
return baseURL;
},
tileSize: new google.maps.Size(256, 256),
isPng: true,
minZoom: 7,
maxZoom: 12
})
)
//...etc
customlayer.setMap(map);
But how do I toggle between the default Google road map and my
customer tiles so that only mine are visible? Or, in other words, how
do I turn off the Google tiles, perhaps using a variable linked to a
custom drop-down menu?
Thanks in advance. I hope this helps someone else in the future.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.