HERE iOS SDK Developer's Guide

NMAMapRoute

Class Summary

class NMAMapRoute

Derived from: NMAMapObject

Represents a NMAMapObject in the shape of a route that can be displayed on a map.

Include: NMAKit.framework/headers/NMAMapRoute.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAMapRoute

[For complete information, see the section Class Details]

See also:

NMARoute

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, strong] UIColor *  color

The UIColor representing the color of the NMAMapRoute

[readable, writable, assign] BOOL  maneuverNumberDisplayed

Indicates whether the maneuver number is displayed on the NMAMapRoute

[readable, writable, strong] NMARoute route

The NMARoute represented by the NMAMapRoute

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(instancetype) UNAVAILABLE_ATTRIBUTE

Use mapRouteWithRoute to instantiate a NMAMapRoute

Class Method Summary

Table 3. Class Methods
Class Methods

+(instancetype) mapRouteWithRoute:( NMARoute *) route

A convenience constructor for NMAMapRoute

Class Details

Represents a NMAMapObject in the shape of a route that can be displayed on a map.

In order to display the route object on the map, the route object needs to be added to an NMAMapView using its addMapObject: method. The NMAViewObject location property for a NMAMapRoute returns the coordinates of the first waypoint.

See also:

NMARoute

Public Property Details

[readable, writable, strong] UIColor * color

The UIColor representing the color of the NMAMapRoute.

Note:

Alpha-value transparency is supported and will also be set when setting this property.

[readable, writable, assign] BOOL maneuverNumberDisplayed

Indicates whether the maneuver number is displayed on the NMAMapRoute.

[readable, writable, strong] NMARouteroute

The NMARoute represented by the NMAMapRoute.

Instance Method Details

-(instancetype) UNAVAILABLE_ATTRIBUTE

Use mapRouteWithRoute to instantiate a NMAMapRoute.

Class Method Details

+(instancetype) mapRouteWithRoute:( NMARoute *) route

A convenience constructor for NMAMapRoute.

Parameters:

  • route

    The route object from which to construct the NMAMapRoute.