Max Zoom

MaxZoomService class

google.maps.MaxZoomService class

A service for obtaining the highest zoom level at which satellite imagery is available for a given location.

Access by callingconst {MaxZoomService} = await google.maps.importLibrary( "maps" ).SeeLibraries in the Maps JavaScript API.

MaxZoomService
MaxZoomService()
Parameters:None
Creates a new instance of aMaxZoomServicethat can be used to send queries about the maximum zoom level available for satellite imagery.
getMaxZoomAtLatLng
getMaxZoomAtLatLng(latlng[, callback])
Parameters:
Return Value:Promise<MaxZoomResult>
Returns the maximum zoom level for which detailed imagery is available at a particularLatLngfor thesatellitemap type. As this request is asynchronous, you must pass acallbackfunction which will be executed upon completion of the request, being passed aMaxZoomResult.

MaxZoomResult interface

google.maps.MaxZoomResult interface

A MaxZoom result in JSON format retrieved from the MaxZoomService.

zoom
Type:number
The maximum zoom level found at the givenLatLng.
statusoptional
Type:MaxZoomStatusoptional
Status of the request. This property is only defined when using callbacks withMaxZoomService.getMaxZoomAtLatLng(it is not defined when using Promises).

MaxZoomStatus constants

google.maps.MaxZoomStatus constants

The status returned by theMaxZoomServiceon the completion of a call togetMaxZoomAtLatLng().Specify these by value, or by using the constant's name. For example,'OK'orgoogle.maps.MaxZoomStatus.OK.

Access by callingconst {MaxZoomStatus} = await google.maps.importLibrary( "maps" ).SeeLibraries in the Maps JavaScript API.

ERROR An unknown error occurred.
OK The response contains a validMaxZoomResult.