LocationIndicatorLayer class

Location Indicator layer.

Inheritance

Constructors

LocationIndicatorLayer.new({required String id, Visibility? visibility, List<Object>? visibilityExpression, List<Object>? filter, double? minZoom, double? maxZoom, String? slot, String? bearingImage, List<Object>? bearingImageExpression, String? shadowImage, List<Object>? shadowImageExpression, String? topImage, List<Object>? topImageExpression, double? accuracyRadius, List<Object>? accuracyRadiusExpression, int? accuracyRadiusBorderColor, List<Object>? accuracyRadiusBorderColorExpression, int? accuracyRadiusColor, List<Object>? accuracyRadiusColorExpression, double? bearing, List<Object>? bearingExpression, double? bearingImageSize, List<Object>? bearingImageSizeExpression, int? emphasisCircleColor, List<Object>? emphasisCircleColorExpression, List<double?>? emphasisCircleGlowRange, List<Object>? emphasisCircleGlowRangeExpression, double? emphasisCircleRadius, List<Object>? emphasisCircleRadiusExpression, double? imagePitchDisplacement, List<Object>? imagePitchDisplacementExpression, List<double?>? location, List<Object>? locationExpression, double? locationIndicatorOpacity, List<Object>? locationIndicatorOpacityExpression, double? perspectiveCompensation, List<Object>? perspectiveCompensationExpression, double? shadowImageSize, List<Object>? shadowImageSizeExpression, double? topImageSize, List<Object>? topImageSizeExpression})

Properties

accuracyRadius double?
The accuracy, in meters, of the position source used to retrieve the position of the location indicator. Default value: 0.
getter/setter pair
accuracyRadiusBorderColor int?
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
getter/setter pair
accuracyRadiusBorderColorExpression List<Object>?
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
getter/setter pair
accuracyRadiusColor int?
The color for drawing the accuracy radius, as a circle. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
getter/setter pair
accuracyRadiusColorExpression List<Object>?
The color for drawing the accuracy radius, as a circle. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
getter/setter pair
accuracyRadiusExpression List<Object>?
The accuracy, in meters, of the position source used to retrieve the position of the location indicator. Default value: 0.
getter/setter pair
bearing double?
The bearing of the location indicator. Values under 0.01 degree variation are ignored. Default value: 0.
getter/setter pair
bearingExpression List<Object>?
The bearing of the location indicator. Values under 0.01 degree variation are ignored. Default value: 0.
getter/setter pair
bearingImage String?
Name of image in sprite to use as the middle of the location indicator.
getter/setter pair
bearingImageExpression List<Object>?
Name of image in sprite to use as the middle of the location indicator.
getter/setter pair
bearingImageSize double?
The size of the bearing image, as a scale factor applied to the size of the specified image. Default value: 1.
getter/setter pair
bearingImageSizeExpression List<Object>?
The size of the bearing image, as a scale factor applied to the size of the specified image. Default value: 1.
getter/setter pair
emphasisCircleColor int?
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
getter/setter pair
emphasisCircleColorExpression List<Object>?
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
getter/setter pair
emphasisCircleGlowRange List<double?>?
Specifies a glow effect range of the emphasis circle, in pixels. If 0,0 values are provided, it renders the circle as a solid color. The first value specifies the start of the glow effect where it is equal to the circle's color, the second is the end, where it's fully transparent. Between the two values the effect is linearly faded out. Default value: 0,0.
getter/setter pair
emphasisCircleGlowRangeExpression List<Object>?
Specifies a glow effect range of the emphasis circle, in pixels. If 0,0 values are provided, it renders the circle as a solid color. The first value specifies the start of the glow effect where it is equal to the circle's color, the second is the end, where it's fully transparent. Between the two values the effect is linearly faded out. Default value: 0,0.
getter/setter pair
emphasisCircleRadius double?
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow. Default value: 0.
getter/setter pair
emphasisCircleRadiusExpression List<Object>?
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow. Default value: 0.
getter/setter pair
filter List<Object>?
An expression specifying conditions on source features. Only features that match the filter are displayed.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the Layer.
getter/setter pairinherited
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. Default value: "0".
getter/setter pair
imagePitchDisplacementExpression List<Object>?
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. Default value: "0".
getter/setter pair
location List<double?>?
An array of latitude, longitude, altitude position of the location indicator. Values under 0.000001 variation are ignored. Default value: 0,0,0.
getter/setter pair
locationExpression List<Object>?
An array of latitude, longitude, altitude position of the location indicator. Values under 0.000001 variation are ignored. Default value: 0,0,0.
getter/setter pair
locationIndicatorOpacity double?
The opacity of the entire location indicator layer. Default value: 1. Value range: 0, 1
getter/setter pair
locationIndicatorOpacityExpression List<Object>?
The opacity of the entire location indicator layer. Default value: 1. Value range: 0, 1
getter/setter pair
maxZoom double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
minZoom double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
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. Default value: "0.85".
getter/setter pair
perspectiveCompensationExpression List<Object>?
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. Default value: "0.85".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowImage String?
Name of image in sprite to use as the background of the location indicator.
getter/setter pair
shadowImageExpression List<Object>?
Name of image in sprite to use as the background of the location indicator.
getter/setter pair
shadowImageSize double?
The size of the shadow image, as a scale factor applied to the size of the specified image. Default value: 1.
getter/setter pair
shadowImageSizeExpression List<Object>?
The size of the shadow image, as a scale factor applied to the size of the specified image. Default value: 1.
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 pairinherited
topImage String?
Name of image in sprite to use as the top of the location indicator.
getter/setter pair
topImageExpression List<Object>?
Name of image in sprite to use as the top of the location indicator.
getter/setter pair
topImageSize double?
The size of the top image, as a scale factor applied to the size of the specified image. Default value: 1.
getter/setter pair
topImageSizeExpression List<Object>?
The size of the top image, as a scale factor applied to the size of the specified image. Default value: 1.
getter/setter pair
visibility Visibility?
The visibility of the layer.
getter/setter pairinherited
visibilityExpression List<Object>?
The visibility of the layer.
getter/setter pairinherited

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