WRLDMarker Class Reference
A Marker is an icon placed at a point on or above the map’s surface. They can have some title text attached to them, and can additionally be placed indoors.
+ markerAtCoordinate:
+ markerAtCoordinate:inIndoorMap:onFloor:
Instantiate a marker at a given location, optionally indoors.
Returns:A WRLDMarker instance.
Argument | Description |
---|---|
coordinate | The coordinate to place this marker at. |
indoorMapId | The ID of an indoor map this marker should be inside. (See WRLDIndoorMap). |
floorId | An index specifying which floor of the indoor map this marker should be on. (See WRLDIndoorMap). |
@property coordinate
The location of the marker.
@property elevation
The height of the marker above either the ground, or sea-level, depending on the elevationMode property.
@property elevationMode
Specifies how the elevation property of this marker is interpreted:
WRLDElevationModeHeightAboveSeaLevel
: The elevation is an absolute altitude above mean sea level, in meters.WRLDElevationModeHeightAboveGround
: The elevation is a height relative to the map’s terrain, in meters.
@property drawOrder
When markers overlap, this property determines which one appears on top of the other.
@property title
The text label to display next to the marker.
@property styleName
The name of the label style to use. The list of supported styles has not been stabilized yet and this can be left as the default value.
@property userData
Optional JSON user data associated with this marker.
@property iconKey
A string used to determine which icon is displayed for this marker.
@property indoorMapId
The ID of the indoor map this marker is associated with - if any.
@property indoorFloorId
The index of the floor this marker is associated with - if any.