Skip to content

Type alias: CameraOptions

Ƭ CameraOptions: CenterZoomBearing & { around?: LngLatLike ; pitch?: number }

Options common to Map#jumpTo, Map#easeTo, and Map#flyTo, controlling the desired location, zoom, bearing, and pitch of the camera. All properties are optional, and when a property is omitted, the current camera value for that property will remain unchanged.


Set the map's initial perspective with CameraOptions

let map = new Map({
  container: 'map',
  style: '',
  center: [-73.5804, 45.53483],
  pitch: 60,
  bearing: -60,
  zoom: 10


Defined in