LocationIndicatorLayer class

Location Indicator layer.

Inheritance

Constructors

LocationIndicatorLayer({required String id, Visibility? visibility, double? minZoom, double? maxZoom, String? slot, String? bearingImage, String? shadowImage, String? topImage, double? accuracyRadius, int? accuracyRadiusBorderColor, int? accuracyRadiusColor, double? bearing, double? bearingImageSize, int? emphasisCircleColor, double? emphasisCircleRadius, double? imagePitchDisplacement, List<double?>? location, double? locationIndicatorOpacity, double? perspectiveCompensation, double? shadowImageSize, double? topImageSize})

Properties

accuracyRadius double?
The accuracy, in meters, of the position source used to retrieve the position of the location indicator.
read / write
accuracyRadiusBorderColor int?
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly.
read / write
accuracyRadiusColor int?
The color for drawing the accuracy radius, as a circle. To adjust transparency, set the alpha component of the color accordingly.
read / write
bearing double?
The bearing of the location indicator.
read / write
bearingImage String?
Name of image in sprite to use as the middle of the location indicator.
read / write
bearingImageSize double?
The size of the bearing image, as a scale factor applied to the size of the specified image.
read / write
emphasisCircleColor int?
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly.
read / write
emphasisCircleRadius double?
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String
The ID of the Layer.
read / writeinherited
imagePitchDisplacement double?
The displacement off the center of the top image and the shadow image when the pitch of the map is greater than 0. This helps producing a three-dimensional appearence.
read / write
location List<double?>?
An array of latitude, longitude, altitude position of the location indicator.
read / write
locationIndicatorOpacity double?
The opacity of the entire location indicator layer.
read / write
maxZoom double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
read / writeinherited
minZoom double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
read / writeinherited
perspectiveCompensation double?
The amount of the perspective compensation, between 0 and 1. A value of 1 produces a location indicator of constant width across the screen. A value of 0 makes it scale naturally according to the viewing projection.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shadowImage String?
Name of image in sprite to use as the background of the location indicator.
read / write
shadowImageSize double?
The size of the shadow image, as a scale factor applied to the size of the specified image.
read / write
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.
read / writeinherited
topImage String?
Name of image in sprite to use as the top of the location indicator.
read / write
topImageSize double?
The size of the top image, as a scale factor applied to the size of the specified image.
read / write
visibility Visibility?
The visibility of the layer.
read / writeinherited

Methods

getType() String
Get the type of current layer as a String.
override
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.
inherited

Static Methods

decode(String properties) LocationIndicatorLayer