- Home >
- Documentation >
- Services >
- getmaxzoom
getmaxzoom
This function retrieves the maximum available zoom level from a given location.
Usage
Parameters
- latLng {latLng|google.maps.latLng}
Example
This example will display an alert box indicating the maximum available zoom level on a location that is selected by clicking on the map (click on the map).
$('#test').gmap3({ map:{ events:{ click: function(map, latLng){ $(this).gmap3({ getmaxzoom:{ latLng:latLng, callback:function(zoom){ alert('Max Zoom : ' + (zoom !== false ? zoom : 'not available')); } } }); } } } });