Can I get a map to load with the Terrain layer showing by default ?
The map isn't public yet, but I have the following code, and it opens
OK but with just the Map layer showing. I can click and switch on the
Terrain, but I'd like it to show by default.
function loadsmallmap() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map1"));
map.addMapType(G_PHYSICAL_MAP);
var center = new GLatLng(56.4500, -6.0300);
map.setCenter(center, 8);
// Set up map type menu relationships
var mapControl = new GHierarchicalMapTypeControl();
mapControl.clearRelationships();
mapControl.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP,
"Labels",
false);
// controls are set here (small and scale)
}
}
Thanks,
Tim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---