panorama.Base.getMarkerPositionFromDirection
Static function.
Calculates marker coordinates based on two values: the direction of view to the marker and the distance to it. The coordinates are calculated in the same coordinate system that is used in the panorama.
Returns the position of the marker in the coordinate system used in the panorama. Set in the format [lon, lat, height]
, [lat, lon, height]
or [x, y, height]
depending on the coordinate system and order. height
is the height of the marker in meters, set relative to the same level as the height of the panorama.
{ Number[] } panorama.Base.getMarkerPositionFromDirection(panorama, direction, distance)
Parameters:
Parameter |
Default value |
Description |
— |
Type: IPanorama Object describing the panorama. |
|
— |
Type: Number[] The direction of view to the marker in the
|
|
— |
Type: Number Distance to the marker. |
* Mandatory parameter/option.
Mandatory parameter/option.