Is there a way to include Hybrid, Satellite, Terrain, and Physical View Modes in a Google Map created using the Gmap JavaScript API v3?
This is what my current code looks like:
var myLatlng = new google.maps.LatLng(47.283902, 11.526825);
var mapOptions = {
zoom: 14,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControlOptions: {
mapTypes: [google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.HYBRID, google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.TERRAIN]
}
};
directionsService = new google.maps.DirectionsService();
directionsDisplay = new google.maps.DirectionsRenderer();
map = new google.maps.Map(document.getElementById("gmap"), mapOptions);
directionsDisplay.setMap(map);
However, it doesn't appear to be working as expected.