LocationIndicatorLayer class
Location Indicator layer.
Constructors
-
LocationIndicatorLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, 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? 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.
getter/setter pair
- accuracyRadiusBorderColor ↔ int?
-
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly.
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.
getter/setter pair
- bearing ↔ double?
-
The bearing of the location indicator.
getter/setter pair
- bearingImage ↔ String?
-
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.
getter/setter pair
- emphasisCircleColor ↔ int?
-
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly.
getter/setter pair
- emphasisCircleRadius ↔ double?
-
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow.
getter/setter pair
- 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.
getter/setter pair
-
location
↔ List<
double?> ? -
An array of
latitude, longitude, altitude
position of the location indicator.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.
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
- shadowImageSize ↔ double?
-
The size of the shadow image, as a scale factor applied to the size of the specified image.
getter/setter pair
- topImage ↔ String?
-
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.
getter/setter pair
- visibility ↔ Visibility?
-
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