mapbox / mapbox/mapbox-maps-flutter
Is there a way to show different marker-point pictures within one cluster layer when use clusters scheme?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Dart
- Sterne
- 380
- Forks
- 204
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Cluster-Dokumentation und die beiden verlinkten Gists zu prüfen, und verfolge anschließend, wie mapbox_maps_flutter geclusterte und nicht geclusterte Punkt-Layer bereitstellt. Als erledigt gilt die Aufgabe, wenn geklärt ist, ob ein einziger geclusterter Layer für jeden nicht geclusterten Punkt ein anderes Bild anzeigen kann, und, falls nicht, die erforderliche API-Änderung definiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- mobile-dev
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 28/100