VMVectorWalkingPathOverlay
Objective-C
@interface VMVectorWalkingPathOverlay : VMWalkingPathOverlay
Swift
class VMVectorWalkingPathOverlay : VMWalkingPathOverlay
Concrete class for enabling wayfinding visualization w/ vector maps
Since
1.1-
Default initializer
Declaration
Objective-C
- (nonnull instancetype)initWithMap:(nonnull VMWayfindingMapView *)map;
Swift
init(map: VMWayfindingMapView)
Parameters
map
reference to a VMMapView object to draw on
Return Value
reference to object
-
Add’s start/end map annotations
Since
1.2
Declaration
Objective-C
- (nonnull VMPointAnnotation *)addMarkerForWaypoint:(nonnull VMMSWaypoint *)wp isStart:(BOOL)isStarting;
Swift
func addMarker(for wp: VMMSWaypoint, isStart isStarting: Bool) -> VMPointAnnotation
Parameters
wp
the waypoint
isStarting
true if it’s the starting waypoint
Return Value
the map annotation
-
Current map annotations in the waypath
Since
1.2Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<VMPointAnnotation *> *_Nonnull currentMarkers;
Swift
var currentMarkers: NSMutableArray { get set }