Layer that automatically renders current user position (arrow and accuracy circle) on the map. Provides visibility and anchoring controls. Referenced from LocationView. More...
#include <com/navigine/idl/objc/NCUserLocationLayer.h>
Inherits NSObject.
Instance Methods | |
| (void) | - setVisible: |
| Shows or hides user location layer. | |
| (BOOL) | - isVisible |
| Returns true if user location layer is visible. | |
| (void) | - setAnchor: |
| Sets anchor point for user indicator in screen pixels. | |
| (void) | - resetAnchor |
| Resets anchor to default (center). | |
| (BOOL) | - anchorEnabled |
| Returns true if custom anchor is enabled. | |
Properties | |
| BOOL | valid |
Layer that automatically renders current user position (arrow and accuracy circle) on the map. Provides visibility and anchoring controls. Referenced from LocationView.
Definition at line 21 of file NCUserLocationLayer.h.
| - (BOOL) anchorEnabled |
Returns true if custom anchor is enabled.
Swift code snippet:
Objective C code snippet:
| - (BOOL) isVisible |
Returns true if user location layer is visible.
Swift code snippet:
Objective C code snippet:
| - (void) resetAnchor |
Resets anchor to default (center).
Swift code snippet:
Objective C code snippet:
| - (void) setAnchor: | (CGPoint) | anchor |
Sets anchor point for user indicator in screen pixels.
Swift code snippet:
Objective C code snippet:
| - (void) setVisible: | (BOOL) | visible |
Shows or hides user location layer.
Swift code snippet:
Objective C code snippet:
|
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 104 of file NCUserLocationLayer.h.