KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to set the maxZoom level of the google.maps.MapTypeId.HYBRID to 21. Actually, he's set to 14 (inspected with the firebug console). Set the property of the google.maps object 'maxZoom' doesn't work in this case, and I already try to modify the google.maps.mapTypes object, but without success. var options = { center: new google.maps.LatLng(lat_centre,lng_centre), zoom: 14, maxZoom: 21, mapTypeId: google.maps.MapTypeId.TERRAIN, panControl: true, zoomControl: true, mapTypeControl: false, scaleControl: false, streetViewControl: false, overviewMapControl: false, disableDoubleClickZoom: true, styles: [ {featureType: "poi", stylers: [{visibility: "off"}]} ] }; map = new google.maps.Map(document.getElementById("map_container"),options); AND google.maps.event.addListener(map, 'tilesloaded', function(event){ var mapTypeRegistry = map.mapTypes; var currentMapTypeId = map.getMapTypeId(); var mapType = mapTypeRegistry.get(currentMapTypeId); mapType.maxZoom = 21; }); So, is there a way to increase the zoom level of the mapType HYBRID ? Thanks.
Tags (comma-separated)
Save Edits
Cancel