LocationIndicatorLayer class
Location Indicator layer.
Constructors
-
LocationIndicatorLayer({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, 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.
read / write
- accuracyRadiusBorderColor ↔ int?
-
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly.
Default value: "#ffffff".
read / write
-
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".
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.
Default value: "#ffffff".
read / write
-
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".
read / write
-
accuracyRadiusExpression
↔ List<
Object> ? -
The accuracy, in meters, of the position source used to retrieve the position of the location indicator.
Default value: 0.
read / write
- bearing ↔ double?
-
The bearing of the location indicator.
Default value: 0.
read / write
-
bearingExpression
↔ List<
Object> ? -
The bearing of the location indicator.
Default value: 0.
read / write
- bearingImage ↔ String?
-
Name of image in sprite to use as the middle of the location indicator.
read / write
-
bearingImageExpression
↔ List<
Object> ? -
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.
Default value: 1.
read / write
-
bearingImageSizeExpression
↔ List<
Object> ? -
The size of the bearing image, as a scale factor applied to the size of the specified image.
Default value: 1.
read / write
- emphasisCircleColor ↔ int?
-
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly.
Default value: "#ffffff".
read / write
-
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".
read / write
- emphasisCircleRadius ↔ double?
-
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow.
Default value: 0.
read / write
-
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.
read / write
-
filter
↔ List<
Object> ? -
An expression specifying conditions on source features.
Only features that match the filter are displayed.
read / writeinherited
- 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.
Default value: "0".
read / write
-
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".
read / write
-
location
↔ List<
double?> ? -
An array of
latitude, longitude, altitudeposition of the location indicator. Default value:0,0,0.read / write -
locationExpression
↔ List<
Object> ? -
An array of
latitude, longitude, altitudeposition of the location indicator. Default value:0,0,0.read / write - locationIndicatorOpacity ↔ double?
-
The opacity of the entire location indicator layer.
Default value: 1. Value range:
0, 1read / write -
locationIndicatorOpacityExpression
↔ List<
Object> ? -
The opacity of the entire location indicator layer.
Default value: 1. Value range:
0, 1read / 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.
Default value: "0.85".
read / write
-
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".
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
-
shadowImageExpression
↔ List<
Object> ? -
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.
Default value: 1.
read / write
-
shadowImageSizeExpression
↔ List<
Object> ? -
The size of the shadow image, as a scale factor applied to the size of the specified image.
Default value: 1.
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
-
topImageExpression
↔ List<
Object> ? -
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.
Default value: 1.
read / write
-
topImageSizeExpression
↔ List<
Object> ? -
The size of the top image, as a scale factor applied to the size of the specified image.
Default value: 1.
read / write
- visibility ↔ Visibility?
-
The visibility of the layer.
read / writeinherited
-
visibilityExpression
↔ List<
Object> ? -
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