mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

[Compose] Cannot add several SymbolLayers at the same locations

Open JulienNevo opened this issue 1 year ago • 2 comments

Environment

  • Android OS version: 11.0
  • Devices affected: Xiaomi MI 11 and emulators
  • Maps SDK Version: 11.4.0

Observed behavior and steps to reproduce

Adding two SymbolLayer with icon/and images will not stack up, items of one or another layer being chosen seemingly randomly.

SymbolLayer(
        layerId = "layer1",
        sourceState = displayedItems,
        iconImage = IconImage("mb_image1"),
        iconAnchor = IconAnchor.BOTTOM,
)
SymbolLayer(
        layerId = "layer2",
        sourceState = displayedItems,
        iconImage = IconImage("mb_image2"),
        iconAnchor = IconAnchor.CENTER,
)

I would like to show (or not) parts of items according to business rules, but I cannot currently do that, as it seems items located at the same locations are visually exclusive.

Expected behavior

All items at one location should show.

JulienNevo avatar Jun 06 '24 14:06 JulienNevo