Layer that automatically renders current user position (arrow and accuracy circle) on the map. Provides visibility and anchoring controls. Referenced from LocationView.
More...
|
| 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.
|
| |
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 16 of file UserLocationLayer.java.
◆ anchorEnabled()
| abstract boolean com.navigine.idl.java.UserLocationLayer.anchorEnabled |
( |
| ) |
|
|
abstract |
Returns true if custom anchor is enabled.
Java code snippet:
boolean anchorEnabled = userLocationLayer.anchorEnabled();
System.out.println("Anchor enabled: " + anchorEnabled);
Kotlin code snippet:
val anchorEnabled = userLocationLayer!!.anchorEnabled
println("Anchor enabled: $anchorEnabled")
◆ isVisible()
| abstract boolean com.navigine.idl.java.UserLocationLayer.isVisible |
( |
| ) |
|
|
abstract |
Returns true if user location layer is visible.
Java code snippet:
boolean visible = userLocationLayer.isVisible();
System.out.println("User location layer is visible: " + visible);
Kotlin code snippet:
val visible = userLocationLayer!!.isVisible
println("User location layer is visible: $visible")
◆ resetAnchor()
| abstract void com.navigine.idl.java.UserLocationLayer.resetAnchor |
( |
| ) |
|
|
abstract |
Resets anchor to default (center).
Java code snippet:
userLocationLayer.resetAnchor();
System.out.println("Anchor reset to default");
Kotlin code snippet:
userLocationLayer!!.resetAnchor()
println("Anchor reset to default")
◆ setAnchor()
| abstract void com.navigine.idl.java.UserLocationLayer.setAnchor |
( |
android.graphics.PointF | anchor | ) |
|
|
abstract |
Sets anchor point for user indicator in screen pixels.
Java code snippet:
ScreenPoint anchor = new ScreenPoint(100.0f, 200.0f);
userLocationLayer.setAnchor(anchor);
System.out.println("Set user location anchor to: (" + anchor.getX() + ", " + anchor.getY() + ")");
Kotlin code snippet:
val anchor = ScreenPoint(100.0f, 200.0f)
userLocationLayer!!.setAnchor(anchor)
println("Set user location anchor to: (${anchor.x}, ${anchor.y})")
◆ setVisible()
| abstract void com.navigine.idl.java.UserLocationLayer.setVisible |
( |
boolean | visible | ) |
|
|
abstract |
Shows or hides user location layer.
Java code snippet:
userLocationLayer.setVisible(true);
System.out.println("User location layer set visible");
Kotlin code snippet:
userLocationLayer!!.setVisible(true)
println("User location layer set visible")
The documentation for this class was generated from the following file: