WRLDBlueSphere Class Reference

A Blue Sphere is a model that is used to visualize a user on a map. The blue sphere can change location and rotate and can also be place in indoor maps.

@property coordinate

@property (nonatomic) CLLocationCoordinate2D coordinate

The location of the blue sphere.

@property heading

@property (nonatomic) CLLocationDirection heading

The heading the blue sphere is facing in degrees from north.

@property indoorMapId

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

The ID of the indoor map the blue sphere is associated with - if any.

@property indoorFloorId

@property (nonatomic) NSInteger indoorFloorId

The index of the floor the blue sphere is associated with - if any.

@property elevation

@property (nonatomic) CLLocationDistance elevation

For outdoor maps, the height above ground of the sphere model’s center, in meters. For indoor maps, the height above the floor of the base of the leader-line, in meters.

@property enabled

@property (nonatomic) bool enabled

The property that determines if the blue sphere should be displayed and assets loaded.

@property accuracyRingEnabled

@property (nonatomic) bool accuracyRingEnabled

The property that determines if the accracy ring should be displayed.

@property accuracyInMeters

@property (nonatomic) float accuracyInMeters

The property that determines radius of accuracy ring in meters.

– setIndoorMap:withIndoorMapFloorId:

- (void)setIndoorMap:(NSString *_Nonnull)indoorMapId withIndoorMapFloorId:(NSInteger)indoorMapFloorId

Place the blue sphere inside an indoor map on a specific floor.

Argument Description
indoorMapId

The ID of an indoor map the bue sphere should be inside. (See WRLDIndoorMap).

indoorMapFloorId

An index specifying which floor of the indoor map the blue sphere should be on. (See WRLDIndoorMap).

– setCoordinate:heading:

- (void)setCoordinate:(CLLocationCoordinate2D)coordinate heading:(CLLocationDirection)heading

Set the location of the blue sphere and the heading it is facing.

Argument Description
coordinate

The location of the blue sphere.

heading

The heading the blue sphere is facing in degrees from north.

@property showOrientation

@property (nonatomic) bool showOrientation

The property that determines if the blue sphere should display orientation information.

v0.0.1600