I have read throughout the documentation and searched these forums. I
found several posts pertaining to this but when I follow the
instructions I do not get the solution. I am trying to simply add
TERRAIN to the controls of my map
http://staging.nybg.org/science/geographic-area-programs.php
But no matter what I try I still only get the default roadmap and
satellite. Below is my code any ideas?
P.S. I know that you have altered the documentation already regarding
this implementation as there was a typo but I suggest an example would
be clearer. Just my 2 sense.
<code>
var mapmulti = new
google.maps.Map(document.getElementById('mapmulti'), {
zoom: 2,
center: new google.maps.LatLng(40.847265, -73.893876),
mapTypeId: google.maps.MapTypeId.SATELLITE,
//mapTypeControl: true,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.ROADMAP,
google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.TERRAIN],
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
position: google.maps.ControlPosition.TOP_CENTER
}
});
</code>
--
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.