Interface MapViewCameraConfig

Camera configuration parameters

Hierarchy

  • MapViewCameraConfig

Properties

bearing?: number

the bearing of the camera. Defaults to 0.0

center?: Location

position of the camera

enableBoxZoom?: boolean

enable zooming the map in/out via dragging a box around the zoom area. Defaults to true.

enableDoubleClickZoom?: boolean

enable zooming IN the map by double-clicking. Defaults to true.

enableDragRotate?: boolean

enable rotating the map by dragging with the mouse. Defaults to true.

enableHash?: boolean

enable syncing the camera position with a URL hash. Defaults to true.

enableKeyboardShortcuts?: boolean

enable manipulating the camera via keyboard controls. Defaults to true.

enableScrollZoom?: boolean

enable zooming the map in/out via the mouse scroll wheel. Defaults to true.

maxZoom?: number

the maximum zoom level of the camera. Defaults to 21.0

minZoom?: number

the minimum zoom level of the camera. Defaults to 1.0s

pitch?: number

the camera pitch. Defaults to 0.0

zoomLevel?: number

the current zoom level of the camera. Defaults to 17.0

Generated using TypeDoc