Layer that automatically renders current user position (arrow and accuracy circle) on the map. Provides visibility and anchoring controls. Referenced from LocationView. More...
Inherits Finalizable.
Public Member Functions | |
| void | setVisible (bool visible) |
| Shows or hides user location layer. | |
| bool | isVisible () |
| Returns true if user location layer is visible. | |
| void | setAnchor (math.Point< double > anchor) |
| 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. | |
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 20 of file user_location_layer.dart.
| bool UserLocationLayer.anchorEnabled | ( | ) |
Returns true if custom anchor is enabled.
Dart code snippet:
| bool UserLocationLayer.isVisible | ( | ) |
Returns true if user location layer is visible.
Dart code snippet:
| void UserLocationLayer.resetAnchor | ( | ) |
Resets anchor to default (center).
Dart code snippet:
| void UserLocationLayer.setAnchor | ( | math.Point< double > | anchor | ) |
Sets anchor point for user indicator in screen pixels.
Dart code snippet:
| void UserLocationLayer.setVisible | ( | bool | visible | ) |
Shows or hides user location layer.
Dart code snippet: