UserLocationLayer class

Inheritance

Constructors

UserLocationLayer({Key? key, Widget? locationIcon, Widget? bearingIcon, required VietmapController mapController, bool? ignorePointer, double pulseOpacity = 0.3, double iconSize = 50, Color pulseColor = Colors.blue})
The markers to be placed on the map. use UserLocationLayer inside a Stack, that contain VietmapGL and UserLocationLayer to work properly VietmapGL.trackCameraPosition must be set to true to work properly
const

Properties

bearingIcon → Widget?
The icon that will be used to represent the user's bearing on the map.
final
hashCode → int
The hash code for this object.
no setterinherited
iconSize → double
The size of the icon that will be used to represent the user's location on the map. This will apply for icon only, not for pulse size.
final
ignorePointer → bool?
Set this value to true to ignore pointer events on the markers. If you using a marker like a button and have a GestureDetector inside it, set this value to false to prevent the map from receiving the gesture.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locationIcon → Widget?
The icon that will be used to represent the user's location on the map.
final
mapController → VietmapController
The controller of the map.
final
pulseColor → Color
final
pulseOpacity → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<UserLocationLayer>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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