mapbox / mapbox/mapbox-maps-flutter

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

オープン
#652 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Dart
スター
380
フォーク
204
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まずクラスタのドキュメントとリンクされた2つのgistを確認し、その後、mapbox_maps_flutterがクラスタ化されたポイントレイヤーとクラスタ化されていないポイントレイヤーをどのように公開しているかを追跡します。完了条件は、1つのクラスタ化されたレイヤーでクラスタ化されていない各ポイントに異なる画像を表示できるかどうかを判断し、できない場合は、その動作をサポートするために必要なAPI変更を定義することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
mobile-dev
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。