MapMarker.withImageAndElevationTarget constructor
- GeoCoordinates coordinates,
- MapImage image,
- 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.
-
coordinatesThe marker's geographical coordinates. -
imageThe image to draw on the map. -
elevationTargetAn elevation target the marker should be elevated to.
Implementation
factory MapMarker.withImageAndElevationTarget(GeoCoordinates coordinates, MapImage image, ElevationTarget elevationTarget) => $prototype.withImageAndElevationTarget(coordinates, image, elevationTarget);