Layer that automatically renders current user position (arrow and accuracy circle) on the map. Provides visibility and anchoring controls. Referenced from LocationView. More...
Inheritance diagram for com.navigine.idl.java.UserLocationLayer:Public Member Functions | |
| abstract void | setVisible (boolean visible) |
| Shows or hides user location layer. | |
| abstract boolean | isVisible () |
| Returns true if user location layer is visible. | |
| abstract void | setAnchor (android.graphics.PointF anchor) |
| Sets anchor point for user indicator in screen pixels. | |
| abstract void | resetAnchor () |
| Resets anchor to default (center). | |
| abstract boolean | anchorEnabled () |
| Returns true if custom anchor is enabled. | |
| abstract void | setHeadingModeActive (boolean active) |
| Enables or disables heading-up mode while the user location layer is anchored. | |
| abstract boolean | headingModeActive () |
| Returns true if heading-up mode is enabled. Same as followMode() == HEADING. | |
| abstract void | setFollowMode (UserLocationFollowMode mode) |
| Sets how the camera follows the user. NONE stops following and keeps a previously set anchor point. POSITION, HEADING and COURSE follow even without setAnchor (screen center). setAnchor() from NONE switches to POSITION. resetAnchor() switches to NONE. setHeadingModeActive(true) switches to HEADING. | |
| abstract UserLocationFollowMode | followMode () |
| Returns the current follow mode. | |
| abstract void | setArrowBitmap (com.navigine.image.ImageProvider bitmap) |
| Replaces the heading arrow bitmap. Null restores the built-in heading fan. | |
| abstract void | setAccuracyColor (int color) |
| Sets the accuracy-circle fill. Default is a translucent blue. | |
| abstract boolean | isValid () |
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 17 of file UserLocationLayer.java.
|
abstract |
Returns true if custom anchor is enabled.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Returns the current follow mode.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Returns true if heading-up mode is enabled. Same as followMode() == HEADING.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Tells if this UserLocationLayer is valid or not. Any other method (except for this one) called on an invalid UserLocationLayer will throw java.lang.RuntimeException.
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Returns true if user location layer is visible.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Resets anchor to default (center).
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Sets the accuracy-circle fill. Default is a translucent blue.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Sets anchor point for user indicator in screen pixels.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Replaces the heading arrow bitmap. Null restores the built-in heading fan.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Sets how the camera follows the user. NONE stops following and keeps a previously set anchor point. POSITION, HEADING and COURSE follow even without setAnchor (screen center). setAnchor() from NONE switches to POSITION. resetAnchor() switches to NONE. setHeadingModeActive(true) switches to HEADING.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Enables or disables heading-up mode while the user location layer is anchored.
When enabled and a location heading is available, the map camera rotates to keep the user's heading pointed toward the top of the screen. Without an anchor the location icon keeps rotating independently.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.
|
abstract |
Shows or hides user location layer.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.UserLocationLayerBinding.