LocationComponentSettings class

Shows a location puck on the map.

Constructors

LocationComponentSettings({bool? enabled, bool? pulsingEnabled, int? pulsingColor, double? pulsingMaxRadius, bool? showAccuracyRing, int? accuracyRingColor, int? accuracyRingBorderColor, String? layerAbove, String? layerBelow, bool? puckBearingEnabled, PuckBearing? puckBearing, String? slot, LocationPuck? locationPuck})

Properties

accuracyRingBorderColor ↔ int?
The color of the accuracy ring border. Works for 2D location puck only. Default value: "#4d89cff0".
getter/setter pair
accuracyRingColor ↔ int?
The color of the accuracy ring. Works for 2D location puck only. Default value: "#4d89cff0".
getter/setter pair
enabled ↔ bool?
Whether the user location is visible on the map. Default value: false.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
layerAbove ↔ String?
Sets the id of the layer that's added above to when placing the component on the map.
getter/setter pair
layerBelow ↔ String?
Sets the id of the layer that's added below to when placing the component on the map.
getter/setter pair
locationPuck ↔ LocationPuck?
Defines what the customised look of the location puck. Note that direct changes to the puck variables won't have any effect, a new puck needs to be set every time.
getter/setter pair
puckBearing ↔ PuckBearing?
The enum controls how the puck is oriented Default value: "heading".
getter/setter pair
puckBearingEnabled ↔ bool?
Whether the puck rotates to track the bearing source. Default value: false.
getter/setter pair
pulsingColor ↔ int?
The color of the pulsing circle. Works for 2D location puck only. Default value: "#4A90E2".
getter/setter pair
pulsingEnabled ↔ bool?
Whether the location puck is pulsing on the map. Works for 2D location puck only. Default value: false.
getter/setter pair
pulsingMaxRadius ↔ double?
The maximum radius of the pulsing circle. Works for 2D location puck only. Note: Setting pulsingMaxRadius to LocationComponentConstants.PULSING_MAX_RADIUS_FOLLOW_ACCURACY will set the pulsing circle's maximum radius to follow location accuracy circle. Default value: 10.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showAccuracyRing ↔ bool?
Whether show accuracy ring with location puck. Works for 2D location puck only. Default value: false.
getter/setter pair
slot ↔ String?
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
getter/setter pair

Methods

encode() → Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Object result) → LocationComponentSettings