bardiyamap_flutter 0.1.0
bardiyamap_flutter: ^0.1.0 copied to clipboard
MapLibre map widget for Bardiya Map with backend-proxied styles, route and marker overlays, and no API keys in the application bundle.
Changelog #
0.1.0 — 2026-11-29 #
- Initial Flutter integration.
BardiyaMapwidget backed bymaplibre_gl0.27.1.- Re-exports
bardiyamap_sdkso a single import provides Maps, Tracking, device ingest, SSE streaming, and webhook verification. BardiyaMapControllercamera control (moveCamera,animateCamera,fitCoordinates,fitRoute,boundsForCoordinates, and safedispose).BardiyaLocation/locationGeoJsonoverlay layer andBardiyaRoute.fromDirectionsResponse/fromGeoJsonCoordinates.assertSafeStyleguard rejecting embeddedbdy_live_*,bdy_test_*, andapi_key=style strings.BardiyaRealtimeControllerlifecycle-aware SSE subscription manager with background pause/resume, bounded reconnects, event-id deduplication, and safe disposal.- Key-free design: the style must be a public or customer-backend-proxied URL or inline JSON; the widget accepts no API key and registers no native credential.
BardiyaRouteandBardiyaMarkeroverlays as GeoJSON line and circle layers.- Style reload and overlay removal are handled idempotently.
Changed:
HistoryPoint.event_idis an integer (tracking_location_events.id, a PostgreSQL BIGINT) as of contract 1.1.0. Contract 1.0.0 declared it as a string while the server always returned a JSON number, so strict decoders rejected a populated history page.
Fixed:
- Harden
BardiyaMapstyle validation againstapi_key%3d,x-api-key=, and URL userinfo credentials; addBardiyaRealtimeController.forViewerwith token renewal and reconnect snapshot resync clearing seen event IDs.