Fit MapView to these boundaries.
If specified, zoomLevel
and distance
parameters are ignored and lookAt
calculates best
zoomLevel
to fit given bounds.
if bounds
is @xyzmaps/harp-geoutils#GeoBox, then lookAt
use target or bounds.target
and
ensure whole box is visible
if bounds
is @xyzmaps/harp-geoutils#GeoPolygon, then lookAt
use bounds.getCentroid()
and ensure whole polygon is visible
if bounds
is @xyzmaps/harp-geoutils#GeoBoxExtentLike,
then lookAt
will use target or
current target and ensure whole extents are visible
if bounds
is [[GeoCoordLike]][], then lookAt
will use target or
calculated target
as center of world box covering given points and ensure all points are
visible
Note in sphere projection some points are not visible if you specify bounds that span more than 180 degrees in any direction.
(MapView.lookAt:WITH_PARAMS) for details on how bounds
interact with target
parameter
Camera distance to the target point in world units.
zoomLevel defaults will be used if not set.
Heading angle in degrees and clockwise. 0 is north-up.
0 in {@link MapView.constructor} context.
{@link MapView.heading} in {@link (MapView.lookAt:WITH_PARAMS)} context.
Target/look at point of the MapView.
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.
new GeoCoordinates(25, 0)
in constructor context.
{@link MapView.target} in {@link (MapView.lookAt:WITH_PARAMS)} context.
Tilt angle in degrees. 0 is top down view.
0 in {@link MapView.constructor} context.
{@link MapView.tilt} in {@link (MapView.lookAt:WITH_PARAMS)} context.
Maximum supported tilt is 89°
Zoomlevel of the MapView.
Takes precedence over distance.
5 in {@link MapView.constructor} context.
{@link MapView.zoomLevel} in {@link (MapView.lookAt:WITH_PARAMS)} context.
Generated using TypeDoc
Parameters for (MapView.lookAt:WITH_PARAMS).