lookToMatchGeoPointToViewPointWithOrientationMapMeasure static method

MapCameraUpdate lookToMatchGeoPointToViewPointWithOrientationMapMeasure(
  1. GeoCoordinates geoPoint,
  2. Point2D viewPoint,
  3. GeoOrientationUpdate orientation,
  4. MapMeasure measure,
)

Creates an update to position the map camera to look at the map with the given orientation and map measure and with the given geo point located at the given view point.

The altitude of the target point is ignored. Any subsequent camera updates and animations will consider the target point as being located on the ground.

Note that this is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • geoPoint The geo point that will be matched to the given view point. Note: the geo point will differ from the look at target of the camera. After this update the camera will still look at the principal point and therefore the look at target will be different from the geo point, since the geo point will correspond to the given view point and the look at target will correspond to the principal point. Look at target and the geo point will be identical only if the given view point is identical to the principal point.

  • viewPoint View point coordinates in pixels.

  • orientation Geodetic orientation at look-at target.

  • measure The desired map measure.

Returns MapCameraUpdate. MapCameraUpdate instance.

Implementation

static MapCameraUpdate lookToMatchGeoPointToViewPointWithOrientationMapMeasure(GeoCoordinates geoPoint, Point2D viewPoint, GeoOrientationUpdate orientation, MapMeasure measure) => $prototype.lookToMatchGeoPointToViewPointWithOrientationMapMeasure(geoPoint, viewPoint, orientation, measure);