MapMarker.withImageAndElevationTarget constructor

MapMarker.withImageAndElevationTarget(
  1. GeoCoordinates coordinates,
  2. MapImage image,
  3. ElevationTarget elevationTarget
)

Creates an instance of a marker at given coordinates, represented by specified image with specified elevation target.

With ElevationTargetFactory.roadTarget marker will be placed at road's elevation only if elevation data is available and marker coordinates are within the road area, otherwise altitude from a ground level elevation will be used. When there's a number of overlapping elevated roads, the marker will be placed on the top most road with the highest elevation.

The altitude component of the coordinates is ignored.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • coordinates The marker's geographical coordinates.

  • image The image to draw on the map.

  • elevationTarget An elevation target the marker should be elevated to.

Implementation

factory MapMarker.withImageAndElevationTarget(GeoCoordinates coordinates, MapImage image, ElevationTarget elevationTarget) => $prototype.withImageAndElevationTarget(coordinates, image, elevationTarget);