Runtime snapshot of a visible icon cluster on the location view. More...
#include <com/navigine/idl/objc/NCClusterMapObject.h>
Inheritance diagram for NCClusterMapObject:Instance Methods | |
| (BOOL) | - setBitmap: |
| Method is used to specify the decoded raster for the cluster marker. | |
| (void) | - addListener: |
| Adds a listener for cluster state updates ClusterMapObjectListener. | |
| (void) | - removeListener: |
| Removes a previously added listener. | |
| (int32_t) | - getId |
| Gets the unique identifier of the map object. | |
| (NCMapObjectType) | - getType |
| Gets the type of the map object. | |
| (nonnull NSData *) | - getData |
| Gets the user-defined data associated with the map object. | |
| (BOOL) | - setVisible: |
| Method is used to specify the visibility of the map object. | |
| (BOOL) | - setInteractive: |
| Method is used to specify whether the map object can be interacted with. | |
| (void) | - setData: |
| Method is used to set user-defined data for the map object. | |
| (BOOL) | - setTitle: |
| Method is used to set the title of the map object. | |
| (BOOL) | - setAlpha: |
| Method is used to set the opacity of the map object. | |
Properties | |
| NCLocationPoint * | position |
| Cluster center in metrics coordinates. | |
| int32_t | count |
| Number of icon map objects in the cluster (at least 2 while the cluster is visible). | |
| NSArray< NCIconMapObject * > * | iconMapObjects |
| Icon map objects currently grouped into this cluster. | |
| BOOL | valid |
Runtime snapshot of a visible icon cluster on the location view.
Created and updated by ClusterMapObjectController. Member IconMapObject instances are hidden while grouped; the cluster marker is shown instead.
onClusterChanged) to refresh a custom cluster bitmap when the member count changes. Definition at line 28 of file NCClusterMapObject.h.
| - (void) addListener: | (nullable id< NCClusterMapObjectListener >) | listener |
Adds a listener for cluster state updates ClusterMapObjectListener.
| listener | Listener instance. |
Swift code snippet:
Objective C code snippet:
| - (nonnull NSData *) getData |
Gets the user-defined data associated with the map object.
Swift code snippet:
Objective C code snippet:
| - (int32_t) getId |
Gets the unique identifier of the map object.
Swift code snippet:
Objective C code snippet:
| - (NCMapObjectType) getType |
Gets the type of the map object.
Swift code snippet:
Objective C code snippet:
| - (void) removeListener: | (nullable id< NCClusterMapObjectListener >) | listener |
Removes a previously added listener.
| listener | Listener instance to remove. |
Swift code snippet:
Objective C code snippet:
| - (BOOL) setAlpha: | (float) | alpha |
Method is used to set the opacity of the map object.
| alpha | Opacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1. |
Swift code snippet:
Objective C code snippet:
| - (BOOL) setBitmap: | (nullable UIImage *) | bitmap |
Method is used to specify the decoded raster for the cluster marker.
| bitmap | Image provider: Android com.navigine.image.ImageProvider; iOS UIImage via binding; Flutter navigine_sdk ImageProvider. |
Swift code snippet:
Objective C code snippet:
| - (void) setData: | (nonnull NSData *) | data |
Method is used to set user-defined data for the map object.
| data | Data to store in the map object. |
Swift code snippet:
Objective C code snippet:
| - (BOOL) setInteractive: | (BOOL) | interactive |
Method is used to specify whether the map object can be interacted with.
| interactive | Specifies whether the object can be picked in the pickMapObjectAt method (true) or not (false). Default: false. |
Swift code snippet:
Objective C code snippet:
| - (BOOL) setTitle: | (nonnull NSString *) | title |
Method is used to set the title of the map object.
| title | The title to display on the location view. |
Swift code snippet:
Objective C code snippet:
| - (BOOL) setVisible: | (BOOL) | visible |
Method is used to specify the visibility of the map object.
| visible | Specifies whether the object is visible (true) or hidden (false). Default: true. |
Swift code snippet:
Objective C code snippet:
|
readnonatomicassign |
Number of icon map objects in the cluster (at least 2 while the cluster is visible).
Definition at line 89 of file NCClusterMapObject.h.
|
readnonatomicassign |
Icon map objects currently grouped into this cluster.
Definition at line 95 of file NCClusterMapObject.h.
|
readnonatomicassign |
Cluster center in metrics coordinates.
Definition at line 83 of file NCClusterMapObject.h.
|
readnonatomicassign |
Tells if this object is valid or not. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now.
Definition at line 103 of file NCClusterMapObject.h.