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:

+ (instancetype)markerAtCoordinate:(CLLocationCoordinate2D)coordinate

+ markerAtCoordinate:inIndoorMap:onFloor:

+ (instancetype)markerAtCoordinate:(CLLocationCoordinate2D)coordinate inIndoorMap:(NSString *)indoorMapId onFloor:(NSInteger)floorId

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

@property (nonatomic) CLLocationCoordinate2D coordinate

The location of the marker.

@property elevation

@property (nonatomic) CLLocationDistance elevation

The height of the marker above either the ground, or sea-level, depending on the elevationMode property.

@property elevationMode

@property (nonatomic) WRLDElevationMode 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

@property (nonatomic) NSInteger drawOrder

When markers overlap, this property determines which one appears on top of the other.

@property title

@property (nonatomic, copy) NSString *title

The text label to display next to the marker.

@property styleName

@property (nonatomic, readonly, copy) NSString *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

@property (nonatomic, copy) NSString *userData

Optional JSON user data associated with this marker.

@property iconKey

@property (nonatomic, copy) NSString *iconKey

A string used to determine which icon is displayed for this marker.

@property indoorMapId

@property (nonatomic, readonly, copy) NSString *indoorMapId

The ID of the indoor map this marker is associated with - if any.

@property indoorFloorId

@property (nonatomic, readonly) NSInteger indoorFloorId

The index of the floor this marker is associated with - if any.

v0.0.1271