Skip to content

Latest commit

 

History

History
62 lines (56 loc) · 1.14 KB

File metadata and controls

62 lines (56 loc) · 1.14 KB

CameraPosition interface

[usage1] The center location of the camera view.

let cameraPos: CameraPosition<ILatLng> = {
  target: {lat: ..., lng: ...},
  zoom: 10
};

[usage2] The zoom property is ignored when you specify multiple position

let cameraPos: CameraPosition<ILatLng[]> = {
  target: [
    {lat: ..., lng: ...},
    {lat: ..., lng: ...},
    {lat: ..., lng: ...}
  ]
};

Interface members

Params Type Details
target ILatLng | ILatLng[] (optional)camera target
tilt number (optional)View angle
zoom number (optional)zoom level
bearing number (optional)Map orientation
padding number (optional)Camera padding in pixel
duration number (optional)The duration of animation in milliseconds. This property works only for `map.animateCamera()` method.