UserLocationLayer class abstract

Use the UserLocationLayer interface to manage the location icon: its appearance, following mode, data source and so on.

Implemented types

Constructors

UserLocationLayer()

Properties

anchorEnabled bool
Returns true if anchor mode is set, and false otherwise.
no setter
autoZoomEnabled bool
Enables/disables auto zoom.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headingEnabled bool
Enables/disables heading mode. If heading mode is enabled, the map is rotated. If heading mode is disabled, the location icon is rotated.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cameraPosition() CameraPosition?
Calculates the camera position that projects the current location into view. If the current location is unknown, returns none. If the current location is known, returns the camera position that displays the location position.
isValid() bool
Usable only in runWithBlockUi or listener handlers.
isVisible() bool
Checks if user location is visible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetAnchor() → void
Resets anchor mode.
setAnchor(Point<double> anchorNormal, Point<double> anchorCourse) → void
Sets the anchor to the specified position in pixels and enables Anchor mode. (0, 0) denotes the top-left corner of the screen.
setDefaultSource() → void
Sets the data source with the global location manager
setObjectListener(UserLocationObjectListener? objectListener) → void
Sets/resets the object listener.
setSource(LocationViewSource? source) → void
Sets/gets the data source.
setTapListener(UserLocationTapListener? tapListener) → void
Sets/resets the tap listener.
setVisible(bool on) → void
Sets user location visibility.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited