Google Maps just made the API exactly like the real thing. So now I want the map to display the hybrid map by default, I looked all over Google's Documentation, but I can't seem to find a way to do this.
Thanks in advance!
Google Maps just made the API exactly like the real thing. So now I want the map to display the hybrid map by default, I looked all over Google's Documentation, but I can't seem to find a way to do this.
Thanks in advance!
Did you try the constructor?
map = new GMap2(document.getElementById("map_canvas"), { mapTypes:[G_HYBRID_MAP] });
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
setMapType() allows you to change the map type. You call it immediately after creating the google map object.
To make hybrid the default map, try this:
map = new GMap2(document.getElementById("map_canvas"));
map.setUIToDefault();
map.setMapType(G_HYBRID_MAP);
Here's the documentation.