maimaps_flutter 0.1.2
maimaps_flutter: ^0.1.2 copied to clipboard
Official Maimaps SDK for Flutter — place search, routing, reverse geocoding, point details, Loccode resolution, and a MapLibre-powered map widget.
Changelog #
0.1.2 #
- The map wordmark is now the Maimaps pin icon + wordmark lockup, replacing the text-only mark. Art is bundled in the package and renders with no network access, in light and dark variants.
- The lockup is adaptive: it scales with the map's width and is always kept inside the map's bounds, so it stays whole on wide banner maps, narrow columns, card previews, and thumbnails alike. The icon and the wordmark always appear together — the mark is never reduced to the pin alone.
MaimapsWordmarkcan now pick up updated branding from the map host at runtime, so future brand changes reach apps already shipped to the App Store and Play Store without a rebuild. This is strictly an override: if the fetch fails for any reason — offline, blocked host, no branding service deployed — the bundled lockup stays on screen with no error and no layout shift.- New
MaimapsWordmark.optionsfor map shells built on a rawMapLibreMapthat render the wordmark beforeMaimaps.initialize. MaimapsWordmark.scaleFor(BoxConstraints)is deprecated in favour ofWordmarkLayout.scaleForViewport(width:, height:), which honors geometry served by the map host. The old call still works — now returning the adaptive scale — and will be removed in 0.2.0.showWordmark,wordmarkPosition, andwordmarkPaddingare unchanged.
0.1.1 #
- The
MaimapsWordmarkoverlay now scales with the map viewport: full size on screen-sized maps, proportionally smaller text and edge padding on compact surfaces such as card previews. - New
MaimapsMap.showWordmarkflag (defaulttrue) to render an unbranded map, e.g. for first-party embeds. - New
MaimapsMap.wordmarkPaddingto inset the wordmark from the map edges, lifting it above UI chrome overlaying the map (bottom sheets, buttons).
0.1.0 #
Initial release.
- REST clients for the Maimaps
/sdk/v1API: search, routing, reverse geocoding, point details, place categories, and Loccode resolve/nearest. MaimapsMap: MapLibre GL map widget rendering the keyed Maimaps published style, with declarative layers and overlay children.- User location on
MaimapsMap:myLocationEnabledshows the native location puck (requesting runtime permission when needed) andfollowUserLocationmakes the camera track the user, turning with the GPS course; both can be toggled at runtime (Android/iOS; ignored on web). - Always-on
MaimapsWordmarkoverlay, movable between corners viawordmarkPosition. - Typed exceptions for invalid keys, rate limits (with
retryAfter), and exceeded quotas; precision-5 polyline decoder for route geometry.