WRLDPolyline Class Reference

A shape comprising one or more connected line segments. Points are connected in the order of supplied coordinates. The first and last point are not automatically connected. A Polyine’s lineWidth and color can be modified.

+ polylineWithCoordinates:count:

+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count

Instantiate a polyline with coordinates.

Returns:

A WRLDPolyline instance.

Argument Description
coords

The array of coordinates that define the polyline. The data in this array is copied to the new object.

count

The number of items in the coordinates array.

+ polylineWithCoordinates:count:onIndoorMap:onFloor:

+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count onIndoorMap:(NSString *)indoorMapId onFloor:(NSInteger)floorId

Instantiate a polyline with coordinates on an indoor map

Returns:

A WRLDPolyline instance.

Argument Description
coords

The array of coordinates that define the polyline. The data in this array is copied to the new object.

count

The number of items in the coordinates array.

indoorMapId

The id of the indoor map on which the polyline will be displayed.

floorId

The id of the indoor map floor on which the polyline will be displayed.

– setPerPointElevations:count:

- (void)setPerPointElevations:(CGFloat *)perPointElevations count:(NSUInteger)count

Sets the perPointElevations on a polyline

Argument Description
perPointElevations

The array of CGFloats that define a polyline’s perPointElevations. These are used to create vertical polylines.

count

The number of perPointElevations for the polyline.

@property color

@property (nonatomic, copy) UIColor *color

The color of the polyline. The default value is opaque black.

@property lineWidth

@property (nonatomic) CGFloat lineWidth

The thickness in pixels of the polyline. The default value is 10.

@property miterLimit

@property (nonatomic) CGFloat miterLimit

A value used to limit the extent of spikes where line segments join at small (acute) angles. The value of miterLimit represents the maximum ratio between the length of the miter join diagonal, and lineWidth. The default value is 10, which results in clamping of the miter diagonal when the join angle is less than approximately 11 degrees.

@property scalesWithMap

@property (nonatomic) Boolean scalesWithMap

If YES, line width scales with perspective as the map viewpoint zooms in and out (default NO)

@property elevation

@property (nonatomic) CLLocationDistance elevation

The height of the polyline above either the ground, or sea-level, depending on the elevationMode property. The default value is 0

@property elevationMode

@property (nonatomic) WRLDElevationMode elevationMode

Specifies how the elevation property of this polyline 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.

The default value is WRLDElevationModeHeightAboveGround

@property indoorMapId

@property (nonatomic, copy) NSString *indoorMapId

For a polyline to be displayed on an indoor map, the id of the indoor map (else nil).

@property indoorFloorId

@property (nonatomic) NSInteger indoorFloorId

For an indoor map polyline, the floor id of the floor on which the polyline will be displayed

v0.0.1209