Anchor
Declares where the layers should be anchored, i.e. positioned in the list of layers in the map style.
This allows for layers declared in Compose to be inserted at any location of the layers defined in the base style JSON rather than exclusively on top of these.
Note: This mechanism can only be used to anchor layers at layerIds from the base map style referred to in the baseStyle parameter of the MapLibreMap composable. Anchoring layers defined in the composition to other layers defined in the composition is not possible.
See Anchor.Companion for Composable functions to use in the layers composition.
Inheritors
Types
Layer(s) are anchored at the bottom, i.e. in behind of all other layers. See Anchor.Companion.Bottom to use this in the layers composition.
Layer(s) are anchored at the top, i.e. in front of all other layers. See Anchor.Companion.Top to use this in the layers composition.