HERE iOS SDK Developer's Guide

NMAMapContainer

Class Summary

class NMAMapContainer

Derived from: NMAMapObject

A container of NMAMapObject instances, containers can be added to a NMAMapView instance.

Include: NMAKit.framework/headers/NMAMapContainer.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAMapContainer

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, copy] NSArray< __kindof NMAMapObject * > *  mapObjects

The NSArray of NMAMapObject objects within the NMAMapContainer

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(BOOL) addMapObject:( NMAMapObject *) aMapObject

Adds a NMAMapObject to the NMAMapContainer.

-(BOOL) removeAllMapObjects

Removes all NMAMapObject objects from the NMAMapContainer

-(BOOL) removeMapObject:( NMAMapObject *) aMapObject

Removes the specified NMAMapObject from the NMAMapContainer

Class Details

A container of NMAMapObject instances, containers can be added to a NMAMapView instance.

Applications can, as necessary, add or remove certain types of NMAMapObject objects to or from a NMAMapContainer (refer to addMapObject: for details). A NMAMapContainer is also useful for grouping together NMAMapObject objects to allow application operations on entire groups of map objects without requiring an iterative approach to inspecting or changing the state of each individual NMAMapObject (e.g. for changing their visibility).

You can use the visible property to control whether the objects in the container are visible. If it's set to YES, then the visibility settings of each map object in the container are used. But unlike other map objects, NMAMapContainer does not support the use of visibility masks, so you cannot set container visibility on a zoom level basis.

Note:

The zOrder of an NMAMapObject instance in a container is relative only to other NMAMapObject instances within the same container. Note that containers are derived from NMAMapObject also have zOrder.

Public Property Details

[readable, copy] NSArray< __kindof NMAMapObject * > * mapObjects

The NSArray of NMAMapObject objects within the NMAMapContainer.

Instance Method Details

-(BOOL) addMapObject:( NMAMapObject *) aMapObject

Adds a NMAMapObject to the NMAMapContainer.

NMAMapObject types that can be added to a NMAMapContainer are:

Note:

Attempts to add an object twice to the same container will be ignored.

Parameters:

  • aMapObject

    A NMAMapObject to be added to the NMAMapContainer.

Returns:

YES if the NMAMapObject was added successfully, NO otherwise.

See also:

removeMapObject:

-(BOOL) removeAllMapObjects

Removes all NMAMapObject objects from the NMAMapContainer.

Returns:

YES if all NMAMapObject objects were removed successfully, NO otherwise.

-(BOOL) removeMapObject:( NMAMapObject *) aMapObject

Removes the specified NMAMapObject from the NMAMapContainer.

Note:

If the specified NMAMapObject is not contained within the NMAMapContainer, the container will be unchanged.

Parameters:

  • aMapObject

    A NMAMapObject to remove from the NMAMapContainer.

Returns:

YES if the NMAMapObject was removed successfully, NO otherwise.

See also:

removeAllMapObjects

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.