Hi all, I'm a GIS student working on a web mapping class. I'm new new to Google API and need help in adding a map type to my web script. I assume the following script is what sets the map type and type options for the page but can't figure out what the option is to add the terrain map as the default or as an option. Any help is appreciated.
theMap = new GMap2 (document.getElementById ("myMap")); theMap.enableContinuousZoom (); theMap.addControl(new GMapTypeControl()); theMap.addControl (new GLargeMapControl); theMapTypes = theMap.getMapTypes (); numTypes = theMapTypes.length; theSatelliteMapType = ""; for (i = 0; i < theMapTypes.length; i++) { if (theMapTypes [i].getName () == "Hybrid") { theSatelliteMapType = theMapTypes [i]; } } David -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.