I just switched from v3.2 to v3.4.
The following code used to result in a horizontal menu with 3 buttons: Map,
Hybrid and Terrain. 3.4 changes it to a drop down with Terrain under Map
and with Hybrid missing from the control.
What do I need to do to get my 3 buttons back?
var mapTypes = new Array();
mapTypes.push(google.maps.MapTypeId.ROADMAP);
mapTypes.push(google.maps.MapTypeId.HYBRID);
mapTypes.push(google.maps.MapTypeId.TERRAIN);
var latlng = new google.maps.LatLng(cityLatitudeCenter,
cityLongitudeCenter);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.TERRAIN,
mapTypeControlOptions: { style:
google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
mapTypeIds: mapTypes },
disableDoubleClickZoom: 1,
streetViewControl: 0,
scrollwheel: false,
scaleControl: true
};
if (_googleMap != null) {
google.maps.event.clearInstanceListeners(_googleMap);
_googleMap = null;
}
_googleMap = new google.maps.Map(document.getElementById("map"), myOptions);
--
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.