1. Home >
  2. Documentation >
  3. Services >
  4. getmaxzoom
 

getmaxzoom

This function retrieves the maximum available zoom level from a given location.

Usage

Parameters

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'));
            }
          }
        });
      }
    }
  }
});
Close