mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
Is there a way to show different marker-point pictures within one cluster layer when use clusters scheme?
mapbox_maps_flutter: ^2.1.0 Flutter 3.22.2
I wonder if there any way on how can I render point markers with custom pictures when use clusters scheme. According to your "cluster" documentation I see that I can add only one collection of points inside one layer and I can attach a cluster view (a circle for instance) and an "unclustered" view to this particular layer. In order to show exactly a custom picture from local source as an "unclustered" view I can assing a picture to this layer and this picture attaches to the all "unclustered" points and this applies to the whole layer. Throughout all your documentation I did not find any way on how to assing a custom picture to the particular point to be shown within a one clustered layer.
I want to point that I've already tried to use different layers to use different "unclustered" pictures where I had to use different points collections, but in this case I faced a different clusters views stacked on each other and this looks ugly and user experience is the worst. Here is my code
In order to clarify my thoughts here is a gist on how it is implemented in the Yandex map-kit in my other project. Everything is clear and very easy to use. No any JSON or dynamic object with totally unclear to programmers parematers.
Here is how we desire that this looks like