Interface LookAtParams

Hierarchy

  • LookAtParams

Properties

bounds: GeoBoxExtentLike | GeoBox | GeoCoordLike[] | GeoPolygon

Fit MapView to these boundaries.

If specified, zoomLevel and distance parameters are ignored and lookAt calculates best zoomLevel to fit given bounds.

Note in sphere projection some points are not visible if you specify bounds that span more than 180 degrees in any direction.

See

(MapView.lookAt:WITH_PARAMS) for details on how bounds interact with target parameter

distance: number

Camera distance to the target point in world units.

Default

zoomLevel defaults will be used if not set.
heading: number

Heading angle in degrees and clockwise. 0 is north-up.

Default

0 in {@link MapView.constructor} context.

Default

{@link MapView.heading} in {@link (MapView.lookAt:WITH_PARAMS)} context.
target: GeoCoordLike

Target/look at point of the MapView.

Note

If the given point is not on the ground (altitude != 0) MapView will do a raycasting internally to find a target on the ground.

As a consequence target and zoomLevel will not match the values that were passed into the (MapView.lookAt:WITH_PARAMS) method.

Default

new GeoCoordinates(25, 0) in constructor context.

Default

{@link MapView.target} in {@link (MapView.lookAt:WITH_PARAMS)} context.
tilt: number

Tilt angle in degrees. 0 is top down view.

Default

0 in {@link MapView.constructor} context.

Default

{@link MapView.tilt} in {@link (MapView.lookAt:WITH_PARAMS)} context.

Note

Maximum supported tilt is 89°

zoomLevel: number

Zoomlevel of the MapView.

Note

Takes precedence over distance.

Default

5 in {@link MapView.constructor} context.

Default

{@link MapView.zoomLevel} in {@link (MapView.lookAt:WITH_PARAMS)} context.

Generated using TypeDoc