mapbox / mapbox/mapbox-maps-flutter
Heatmap Layer works incorrect in mapbox_maps_flutter package
まだ誰も着手していません。
- 主要言語
- Dart
- スター
- 380
- フォーク
- 204
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I'm trying to add HeatmapLayer using .geojson file and instead of showing heatmap it's just filling in all map with the color that is set as "heatmapColor". However, if I add LineLayer(or any other layer) with same .geojson file it works perfect.
What's wrong with the code below?
```
final data = await rootBundle.loadString(GeojsonFiles.heatmap);
await _controller?.style
.addSource(GeoJsonSource(id: 'heatmap', data: data));
await _controller?.style.addLayer(
HeatmapLayer(
id: 'heatmap_layer',
sourceId: 'heatmap',
heatmapColor: 0xff00ff00,
heatmapOpacity: 0.2,
),
);
await _controller?.style.addLayer(
LineLayer(
id: 'line_layer',
sourceId: 'heatmap',
lineColor: 0xffff0000,
),
);
```
I've tried to change properties of HeatmapLayer class, but nothing changed
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、GeojsonFiles.heatmap のデータを使用し、mapbox_maps_flutter で示されている GeoJsonSource、HeatmapLayer、LineLayer の設定を使って問題を再現します。ヒートマップのレンダリングとラインのレンダリングを比較し、HeatmapLayer のソース要件を確認します。同じ GeoJSON がマップ全体を 1 色で塗りつぶすのではなく、ヒートマップを表示すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- dart, flutter
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100