Skip to content

TransformConstrainFunction

TransformConstrainFunction = (lngLat: LngLat, zoom: number) => object

Defined in: camera/camera_types.ts:9

The callback defining how the camera constrains the viewport's lnglat and zoom to respect the longitude and latitude bounds.

Parameters

Parameter Type
lngLat LngLat
zoom number

Returns

object

center

center: LngLat

zoom

zoom: number

See

Customize the map transform constrain