CameraPosition interface
September 29, 2018 ยท View on GitHub
[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. |