Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to show different marker-point pictures within one cluster layer when use clusters scheme? #652

Open
fufylev opened this issue Aug 14, 2024 · 0 comments

Comments

@fufylev
Copy link

fufylev commented Aug 14, 2024

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

Снимок экрана 2024-08-14 в 10 21 00
@fufylev fufylev changed the title Is there a way to show different marker-point pictures within one cluster layer? Is there a way to show different marker-point pictures within one cluster layer when use clusters scheme? Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant