HERE iOS SDK Developer's Guide

NMAClusterLayer

Class Summary

class NMAClusterLayer

Derived from: NSObject

NMAClusterLayer is a container of NMAMapMarker.

Include: NMAKit.framework/headers/NMAClusterLayer.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAClusterLayer

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSArray *  markers

Array of NMAMapMarker instances stored in this layer

[readable, writable, assign] NMAClusterTheme theme

Theme used during cluster markers rendering

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(BOOL) addMarker:( NMAMapMarker *) marker

Adds a marker to this layer

-(BOOL) addMarkers:(NSArray *) markers

Adds an array of markers to this layer

-(BOOL) removeMarker:( NMAMapMarker *) marker

Removes a marker from this layer

-(BOOL) removeMarkers:(NSArray *) markers

Removes an array of markers from this layer

Class Method Summary

Table 3. Class Methods
Class Methods

+(instancetype) clusterLayer

Constructs an empty NMAClusterLayer

Class Details

NMAClusterLayer is a container of NMAMapMarker. Once added to the layer markers will start to cluster when the layer is attached to the map.

Public Property Details

[readable, assign] NSArray * markers

Array of NMAMapMarker instances stored in this layer.

[readable, writable, assign] NMAClusterThemetheme

Theme used during cluster markers rendering.

Instance Method Details

-(BOOL) addMarker:( NMAMapMarker *) marker

Adds a marker to this layer.

Parameters:

  • marker

    NMAMapMarker to be added.

Returns:

YES if the marker was successfully added.

-(BOOL) addMarkers:(NSArray *) markers

Adds an array of markers to this layer.

Parameters:

  • markers

    Array of NMAMapMaker instances.

Returns:

YES if at least one marker was successfully added.

-(BOOL) removeMarker:( NMAMapMarker *) marker

Removes a marker from this layer.

Parameters:

  • marker

    NMAMapMarker to be removed.

Returns:

YES if the marker was successfully removed.

-(BOOL) removeMarkers:(NSArray *) markers

Removes an array of markers from this layer.

Parameters:

  • markers

    Array of NMAMapMaker instances.

Returns:

YES if at least one marker was successfully removed.

Class Method Details

+(instancetype) clusterLayer

Constructs an empty NMAClusterLayer.

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.