Location Indicator Layer
Location Indicator layer.
See also
Parameters
the ID of the layer, by default, a random id will be generated with UUID.
Name of image in sprite to use as the middle of the location indicator.
Name of image in sprite to use as the background of the location indicator.
Name of image in sprite to use as the top of the location indicator.
The accuracy, in meters, of the position source used to retrieve the position of the location indicator. Default value: 0.
Defines the transition of accuracyRadius. Default value: 0.
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
Defines the transition of accuracyRadiusBorderColor. Default value: "#ffffff".
The color for drawing the accuracy radius, as a circle. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
Defines the transition of accuracyRadiusColor. Default value: "#ffffff".
The bearing of the location indicator. Default value: 0.
Defines the transition of bearing. Default value: 0.
The size of the bearing image, as a scale factor applied to the size of the specified image. Default value: 1.
Defines the transition of bearingImageSize. Default value: 1.
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly. Default value: "#ffffff".
Defines the transition of emphasisCircleColor. Default value: "#ffffff".
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow. Default value: 0.
Defines the transition of emphasisCircleRadius. Default value: 0.
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".
An array of latitude, longitude, altitude position of the location indicator. Default value: 0,0,0.
Defines the transition of location. Default value: 0,0,0.
The opacity of the entire location indicator layer. Default value: 1. Value range: 0, 1
Defines the transition of locationIndicatorOpacity. Default value: 1. Value range: 0, 1
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".
The size of the shadow image, as a scale factor applied to the size of the specified image. Default value: 1.
Defines the transition of shadowImageSize. Default value: 1.
The size of the top image, as a scale factor applied to the size of the specified image. Default value: 1.
Defines the transition of topImageSize. Default value: 1.
Whether this layer is displayed. Default value: "visible".
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden. Value range: 0, 24
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden. Value range: 0, 24
Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.
An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The ["feature-state", ...]
expression is not supported in filter expressions. The ["pitch"]
and ["distance-from-center"]
expressions are supported only for filter expressions on the symbol layer.