一個 Flutter 插件,可於 iOS 與 Android 應用中整合 Google 地圖,並內建熱力圖視覺化支援。此插件允許開發者使用資料點在地圖上顯示基於密度的熱力圖,進而增強地理空間資料的呈現。該插件專為在 Flutter 應用中順暢運作而設計,並利用原生 Google 地圖 SDK 以達成最佳效能。熱力圖適用於視覺化如交通密度、使用者活動或事件群聚等模式。此套件由 GitHub 維護,可透過 pub 加入。
適用情境
可視化地理資料密度
顯示使用者活動熱點
分析交通或移動模式
映射事件集中
增強基於位置的分析
主要特色
支援熱力圖層渲染
與 Google 地圖 SDK 集成
即時熱力圖更新
可自訂熱力圖顏色和強度
輕量且容易實現
適合對象
基於位置的應用程式中的資料視覺化
需要空間分析的移動應用
具有高密度點資料的應用程式
使用 Google Maps 的 Flutter 開發人員
需要互動式地圖圖層的專案
使用建議
需要 Google Maps API 金鑰
僅限iOS和Android平台
熱圖效能可能在資料量極大時下降
依賴外部 Google 地圖 SDK
可能需要額外設定才能用於生產部署
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Google Maps for Flutter (Developers Preview)
A Flutter plugin that provides a Google Maps widget with heatmap support.
Developers Preview Status
The plugin relies on Flutter's new mechanism for embedding Android and iOS views.
As that mechanism is currently in a developers preview, this plugin should also be
considered a developers preview.
To use this plugin on iOS you need to opt-in for the embedded views preview by
adding a boolean property to the app's Info.plist file, with the key io.flutter.embedded_views_preview
and the value YES.
The API exposed by this plugin is not yet stable, and we expect some breaking changes to land soon.
Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file
with the key io.flutter.embedded_views_preview and the value YES.
Both
You can now add a GoogleMap widget to your widget tree.
The map view can be controlled with the GoogleMapController that is passed to
the GoogleMap's onMapCreated callback.