sharemap_maplib_flutter 1.1.0
sharemap_maplib_flutter: ^1.1.0 copied to clipboard
A MapLibre-based map widget for Flutter integrating ShareMap APIs, supporting dynamic POI layer toggling, HMAC-signed requests, and custom style loading.
1.1.0 #
- Layers token: with
xApiKey+secretKey, the SDK now exchanges them for a short-lived token atPOST https://geomesh.sharemap.live/layer/tokenand attaches it as?t=tolayers.sharemap.livetile URLs. Tiles and layers use separate token sources and separate endpoints; a tiles token is rejected by layers. New optionallayersTokenUrloverrides the layers endpoint (dev/staging). - Breaking default:
enableTilesTokennow defaults totrue. Apps without keys keep using the free tier with no extra network calls; apps that set only one ofxApiKey/secretKeyget a configuration warning. - Mobile client identification: every request carries
X-Sharemap-Clientand aSharemapSDK/<version> (...)User-Agent with package name, OS, OS version and device model. Seedoc/mobile_client_identification.md. - Add POI models,
ShareMapPoiService, map controller POI extension, sprite service andShareMapSpriteIconwidget. - Add min zoom for business layers.
- Style requests authenticate with the
x-api-keyheader. - Debug panel logs transformed map requests.
- Warn when a layer or POI call has
xApiKeybut nosecretKey.
1.0.1 #
- Upgrade
sharemap_maplibre_glto0.26.2+sharemap.2, including the corrected iOS CocoaPods and Swift Package identities.
1.0.0 #
- Map requests use MapLibre
transformRequestto resolve authentication for each resource URL. HMAC credentials are sent through thex-api-keyheader; the style loader no longer inserts them into source, tile, or glyph URLs. - Add opt-in
enableTilesToken: acquire and refresh short-lived tiles tokens, attach them as?t=on supported tile hosts, and keep HMAC authentication for business layers and Geomesh APIs. The option remains disabled by default. - Fix Android MapLibre initialization before HTTP client/platform-view setup.
- Fix Dart web compilation by removing an unsupported 64-bit integer literal.
- Pin the hosted
sharemap_maplibre_gldependency to0.26.2+sharemap.1. Known iOS limitation: this dependency still uses the old CocoaPods package identity; iOS integration is not verified for this release. - Android hosts require JDK 21, Android SDK 36, and NDK 28; the pinned MapLibre
dependency specifies NDK
28.1.13356709. - Background Location remains experimental in this release. This version does not certify its stability; see the existing device-test checklist and limits.
- Upgrade from 0.0.5: resolve the new package/dependency versions and perform a full rebuild after the native dependency changes (hot reload is insufficient).
0.0.5 #
- Fix: Switch to published
sharemap_maplibre_gldependency and remove obsoletemaplibre_glgit overrides. - Fix: Restore
ShareMapLibre.isShareMapLayersHoststatic helper. - Fix: Repair missing or empty Android background-location disclosure strings during
setup.
0.1.0-dev.1 #
- Thêm vị trí nền native dạng chủ động bật cho Android và iOS.
- Thêm model vị trí, trạng thái và lỗi đã chuẩn hóa cùng broadcast stream.
- Thêm public options trực tiếp cho bốn tham số Android LocationRequest và năm tham số iOS CLLocationManager; không dùng profile hoặc tracking mode.
- Hợp nhất public entry point: background location được gọi trực tiếp qua
ShareMapLibre.start(),stop(),getStatus()và các stream liên quan. - Breaking: xóa
ShareMapTrackingModevà fieldmodekhỏiShareMapLocationStatus;start()không truyền options vẫn dùng bộ giá trị mặc định tương đương cấu hìnhnormaltrước đây. - Thêm
ShareMapTrackingOptions.maxDurationđể ứng dụng host tùy chọn mốc tự dừng tổng thời lượng phiên; status bổ sungsessionStartedAtvàexpiresAt. - Thêm lệnh setup chạy lặp an toàn và lệnh doctor chỉ đọc cấu hình.
- Thêm example tester tối giản, chỉ dùng public API để tích hợp foreground service Android và Core Location iOS.
- Giữ nguyên API MapLibre hiện có; networking và lưu trữ dữ liệu nằm ngoài plugin.
0.0.3 #
- Fix: Update street style URL path to correct sharemap-streets.json resource endpoint.
0.0.2 #
- Fix: Resolve type compilation error by refactoring class inheritance with createState override.
0.0.1 #
- Bản phát hành đầu tiên của widget ShareMap MapLibre.