<iframe src="https://developers.devsite.google/frame/maps/documentation/javascript/reference/max-zoom_a6b82b85bc5d9c930651c74cb2877812df2730d3371c9d1d3e3698e7517aa9cc.frame" class="framebox inherit-locale redirect-iframe" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## [MaxZoomService](https://developers.google.com/maps/documentation/javascript/reference/max-zoom.md.txt#MaxZoomService)
class


class
`google.maps.MaxZoomService`

library `"maps"`

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

```javascript
const {MaxZoomService} = await google.maps.importLibrary("maps");
```

| ### Constructor ||
|---|---|
| `MaxZoomService` | `MaxZoomService()` **Parameters:** None Creates a new instance of a `MaxZoomService` that can be used to send queries about the maximum zoom level available for satellite imagery. |

| ### Methods ||
|---|---|
| `getMaxZoomAtLatLng` | `getMaxZoomAtLatLng(latlng[, callback])` **Parameters:** - `latlng: LatLng|LatLngLiteral` - `callback: function(MaxZoomResult): void optional` **Return Value:** `Promise<MaxZoomResult>` Returns the maximum zoom level for which detailed imagery is available at a particular `LatLng` for the `satellite` map type. As this request is asynchronous, you must pass a `callback` function which will be executed upon completion of the request, being passed a `MaxZoomResult`. |

## [MaxZoomResult](https://developers.google.com/maps/documentation/javascript/reference/max-zoom.md.txt#MaxZoomResult)
interface


interface
`google.maps.MaxZoomResult`

A MaxZoom result in JSON format retrieved from the MaxZoomService.

| ### Properties ||
|---|---|
| `zoom` | **Type:** `number` The maximum zoom level found at the given `LatLng`. |
| `status` optional | **Type:** `MaxZoomStatus optional` Status of the request. This property is only defined when using callbacks with `MaxZoomService.getMaxZoomAtLatLng` (it is not defined when using Promises). |

## [MaxZoomStatus](https://developers.google.com/maps/documentation/javascript/reference/max-zoom.md.txt#MaxZoomStatus)
constants


constants
`google.maps.MaxZoomStatus`

library `"maps"`

The status returned by the `MaxZoomService` on the completion of a call to `getMaxZoomAtLatLng()`. Specify these by value, or by using the constant's name. For example, `'OK'` or `google.maps.MaxZoomStatus.OK`.

These constants are also usable as strings. In TypeScript, the string literals are defined by the `MaxZoomStatusString` type.

```javascript
const {MaxZoomStatus} = await google.maps.importLibrary("maps");
```

| ### Constants ||
|---|---|
| `ERROR` | An unknown error occurred. |
| `OK` | The response contains a valid `MaxZoomResult`. |