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.
The color for drawing the accuracy radius border. To adjust transparency, set the alpha component of the color accordingly.
The color for drawing the accuracy radius, as a circle. To adjust transparency, set the alpha component of the color accordingly.
The bearing of the location indicator.
The size of the bearing image, as a scale factor applied to the size of the specified image.
The color of the circle emphasizing the indicator. To adjust transparency, set the alpha component of the color accordingly.
The radius, in pixel, of the circle emphasizing the indicator, drawn between the accuracy radius and the indicator shadow.
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.
An array of latitude, longitude, altitude position of the location indicator.
The opacity of the entire location indicator layer.
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.
The size of the shadow image, as a scale factor applied to the size of the specified image.
The size of the top image, as a scale factor applied to the size of the specified image.
Whether this layer is displayed.
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
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.