ts-maps

02 · Camera

Three ways to move the camera. flyTo arcs out and back in for a long hop, easeTo glides any of centre, zoom, bearing and pitch, and jumpTo sets them at once.

Open it full screen · Edit and run it · Full source: 02-camera.ts

map.flyTo([51.5074, -0.1278], 13)
map.easeTo({ bearing: 30, pitch: 50, duration: 900 })
map.jumpTo({ center: [48.8566, 2.3522], zoom: 14, bearing: 20, pitch: 40 })

← Basic map · Vector tiles, styled from scratch →