HERE iOS SDK Developer's Guide

NMALineAttributes

Class Summary

class NMALineAttributes

Derived from: NSObject

Line/Shape outline attributes. Specifies the drawing attributes of a line or the outline of a shape.

Include: NMAKit.framework/headers/NMALineAttributes.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMALineAttributes

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, assign] NMALineCapStyle   capStyle

Line end rendering cap style

[readable, writable, assign] NSUInteger  dashPrimaryLength

Sets a length for the primary dash segment of a dashed line

[readable, writable, assign] NSUInteger  dashSecondaryLength

Sets a length for the secondary (empty) dash segments of a dashed line

[readable, writable, assign] BOOL  dashed

Sets the appearance as either a dashed or solid line

[readable, writable, assign] UIColor *  lineColor

Line color

[readable, writable, assign] NSUInteger  lineWidth

Line width, in pixels, an int value within the [0

[readable, writable, assign] BOOL  renderedWithPerspective

Perspective

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(id) init

Constructs a default LineAttributes object having 1 px line width, BLUE color, ROUND_CAP Line ending styles and false perspective.

-(id) initWithWidth:(NSUInteger) widthInPixel color:(UIColor *) color capStyle:( NMALineCapStyle ) capStyle perspective:(BOOL) perspective

Constructs a LineAttributes object from passed parameters.

Class Details

Line/Shape outline attributes. Specifies the drawing attributes of a line or the outline of a shape.

 

Public Property Details

[readable, writable, assign] NMALineCapStyle  capStyle

Line end rendering cap style.

[readable, writable, assign] NSUInteger dashPrimaryLength

Sets a length for the primary dash segment of a dashed line. By default, the primary dash length is 1.

[readable, writable, assign] NSUInteger dashSecondaryLength

Sets a length for the secondary (empty) dash segments of a dashed line. By default, the secondary dash length is 1.

[readable, writable, assign] BOOL dashed

Sets the appearance as either a dashed or solid line. By default, line is solid.

Note:

The getter is isDashed.

[readable, writable, assign] UIColor * lineColor

Line color. The default line color is BLUE.

[readable, writable, assign] NSUInteger lineWidth

Line width, in pixels, an int value within the [0..100] range. By default, the line width is 1.

[readable, writable, assign] BOOL renderedWithPerspective

Perspective. if YES, The line looks thinner further away when the map is tilted.

Instance Method Details

-(id) init

Constructs a default LineAttributes object having 1 px line width, BLUE color, ROUND_CAP Line ending styles and false perspective.

-(id) initWithWidth:(NSUInteger) widthInPixel color:(UIColor *) color capStyle:( NMALineCapStyle ) capStyle perspective:(BOOL) perspective

Constructs a LineAttributes object from passed parameters.

Parameters:

  • widthInPixel

    Width in pixels of the line. The value will be clipped to the valid range [0,100].

  • color

    Color of the line.

  • capStyle

    The line ending styles.

  • perspective

    if true, the line looks thinner further away when the map is tilted.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.