Base interface for handling objects on the location view. More...
#include <com/navigine/idl/objc/NCMapObject.h>
Inheritance diagram for NCMapObject:Instance Methods | |
| (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. | |
Base interface for handling objects on the location view.
Used to manage objects in LocationWindow. Can be handled in the pickMapObjectAt method LocationWindow.
Referenced from CircleMapObject, IconMapObject, PolylineMapObject, PolygonMapObject, DottedPolylineMapObject.
Definition at line 23 of file NCMapObject.h.
| - (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:
| - (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:
| - (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: