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

How to know the layerId when using cluster ?

Open tristan-garaud opened this issue 1 year ago • 3 comments

Environment

  • Android OS version: 13
  • Devices affected:
  • Maps SDK Version: 10.10.0

Observed behavior and steps to reproduce

I put this as a bug as I don't know if it's possible to get the layerid when creating a cluster. When clicking on a feature using queryRenderedFeatures. I'm supposed to pass a layerId in a list but how to get this layerId as at is autogenerated. Thanks

tristan-garaud avatar Dec 21 '23 16:12 tristan-garaud

I did this waiting for better solution: val clusterId = "mapbox-android-pointAnnotation-layer-${PointAnnotationManager.ID_GENERATOR}" But now Im strugling to passe data to the feature and retreive it in queryRenderedFeatures.

tristan-garaud avatar Dec 21 '23 16:12 tristan-garaud

Ok, I managed to pass the data. Not cristal clear from the doc how to achived that.

tristan-garaud avatar Dec 21 '23 17:12 tristan-garaud

Thanks, which part of the documentation did you use and what did you feel was missing?

baleboy avatar Jan 08 '24 11:01 baleboy