Modificar el nivel de zoom máximo de un tipo de mapa de Google
Necesito configurar elmaxZoom
nivel degoogle.maps.MapTypeId.HYBRID
a 21. En realidad, está configurado a 14 (inspeccionado con la consola Firebug).
Establecer la propiedad de lagoogle.maps
El objeto 'maxZoom' no funciona en este caso, y ya trato de modificar elgoogle.maps.mapTypes
Objeto, pero sin éxito.
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);
Y
google.maps.event.addListener(map, 'tilesloaded', function(event){
var mapTypeRegistry = map.mapTypes;
var currentMapTypeId = map.getMapTypeId();
var mapType = mapTypeRegistry.get(currentMapTypeId);
mapType.maxZoom = 21;
});
Entonces, ¿hay alguna manera de aumentar el nivel de zoom del mapType HYBRID?
Gracias.