Skip to main content

woosmap_flutter 2.9.1 copy "woosmap_flutter: ^2.9.1" to clipboard
woosmap_flutter: ^2.9.1 copied to clipboard

Add rich location intelligence to your Flutter app with Woosmap — interactive and indoor maps, store locator, address autocomplete, geocoding, and routing.

2.9.1 #

  • Fix: WoosmapController.getMapTypeId() now works on Android, where it threw on every call. The bridge undoes Android's encoding for a stringified object but not for a bare JSON string, so the value arrived as "roadmap" with its quotes and MapTypeId.fromString rejected it; the future then never completed, leaving the failure visible only in the device log. The read is wrapped in an object now, as the other cross-platform reads already are. iOS was unaffected.
  • Docs: Noted two marker behaviours that reached existing apps without a plugin release. A classic Marker created with no icon now draws the Woosmap built-in red drop-pin, and one created with an empty-string icon (icon: '') draws nothing at all. Both are Maps JS changes rather than plugin ones — the map page loads the unpinned map.js, so they arrived when production moved to the v1.39 line — and both are verified against the live bundle and demonstrated in the example app's Add Marker menu.

2.9.0 #

  • Breaking: Marker.getPosition() and AdvancedMarker.getPosition() now return Future<LatLng?> instead of Future<LatLng>. They used to answer 0, 0 when the page had no position to give, which is a real position and indistinguishable from one a marker genuinely holds; they also threw inside the page for a marker that had been removed, and now return null for it. Callers need a null check. Marker is the only pre-existing API affected.
  • Feature: Added four MapOptions flags
    1. disableTilt to disable both tilt and rotation gestures
    2. enableMarkerAccessibleNavigation for keyboard (tab/arrow) marker selection
    3. mapTypeControl to show or hide the map type control; left unset, the map keeps attaching it automatically for styles that support satellite
    4. visualRefresh (experimental) to opt into the refreshed basemap
  • Feature: Added WoosmapController.moveCamera() to apply any combination of center, zoom, tilt and heading in a single, non-animated call. Properties left null are not sent, so the map keeps its current value for them.
  • Feature: Added WoosmapController.getMapCapabilities(), returning a MapCapabilities object that reports isAdvancedMarkersAvailable.
  • Feature: Added WoosSymbol, a vector marker icon accepted by MarkerOptions.icon alongside a URL string and WoosIcon. Its path is SVG path notation.
  • Feature: Added AdvancedMarker, a binding for AdvancedMarkerElement, as a separate class from Marker because the two wrap unrelated JavaScript types. It takes AdvancedMarkerOptions, emits only click, mouseover, mouseout, dragstart, drag and dragend, and has no icon, label, opacity, rotation or alignment. It requires the marker library — check getMapCapabilities().isAdvancedMarkersAvailable first.
  • Feature: Added PinOptions, the structured PinElement visual for an AdvancedMarker (background, borderColor, glyphColor, glyphText, glyphSrc, scale). The pin is built page-side from plain values, so no markup crosses the WebView bridge. The upstream glyph option, which also accepts an arbitrary DOM element, is not exposed.
  • Feature: Added AdvancedMarker.content, an HTML visual for an advanced marker, with setContent() and getContent(). The markup is sanitised in the map page, against the same allowlist InfoWindowOptions.content goes through, because the element's content is a DOM node and parsing the string into one is an innerHTML sink. The allowlist has no style attribute and the page carries no stylesheet of yours, so size the content through the markup itself. content and pin both set the element's visual and are mutually exclusive: passing both throws an ArgumentError.
  • Feature: Added AdvancedMarkerOptions.anchorLeft / anchorTop, with AdvancedMarker.setAnchorLeft() and setAnchorTop(), to move a marker relative to its point. They are CSS lengths or percentages, since the element renders at translate(anchorLeft, anchorTop); unset, the SDK uses -50% and -100%, which rests the marker's bottom edge on the point. A value that is not valid CSS is rejected in Dart, because the element would otherwise drop its transform and park the marker in the map's corner.
  • Feature: Added CollisionBehavior and AdvancedMarkerOptions.collisionBehavior, with AdvancedMarker.setCollisionBehavior() and getCollisionBehavior(). Note the current SDK stores the option without acting on it, so markers still draw over one another whatever it is set to; use zIndex for stacking that works.
  • Feature: Added an optional altitude on LatLng, serialised for marker positions. Only AdvancedMarker reads it, and only on a tilted map; the classic Marker drops it.
  • Feature: Added InfoWindow and InfoWindowOptions (content, disableAutoPan, maxWidth, pixelOffset), with open({anchor, position}), close(), setContent(), getContent(), setPosition() and setOffset(). An info window anchors to a Marker, an AdvancedMarker or a bare position. Content is HTML and is sanitised in the map page before it reaches the SDK, which otherwise assigns it straight to innerHTML: a small allowlist of formatting, lists, tables, links and images survives, every on* handler and every non-http(s) URL is stripped, and anything else is dropped whole. A non-zero pixelOffset is not applied when the anchor is an AdvancedMarker. Events (closeclick, domready) are not bound yet.
  • Fix: Marker.add() and AdvancedMarker.add() now wait for their event listeners to be attached before completing, and make no bridge call at all for a marker with no callbacks. Both previously fired the listener script without awaiting it, so a marker could be reported as added while its listeners were still attaching.
  • Docs: Documented that setMapTypeId(MapTypeId.hybrid) fails silently when the loaded style lacks the satellite capability, because the WebView bridge swallows the error.

2.8.5 #

  • Chore: corrected GitHub Actions permission for OIDC automated publishing.

2.8.4 #

  • Chore: Publish to pub.dev via GitHub Actions OIDC automated publishing (dart pub publish) instead of a stored-token publisher action.

2.8.3 #

  • Enhancement: Update Android compileSdk default to 36 (Android 16); now overridable by the app via rootProject.ext.compileSdkVersion. Consuming apps need Android Gradle Plugin 8.9.1+ for the default, or can pin ext.compileSdkVersion = 35 to stay on an older AGP.
  • Fix: Resolve unawaited_return_in_try_block analyzer warnings in the API service (return values directly instead of Future.value) so the package publishes cleanly on current Dart SDKs.
  • Chore: Align CI Flutter to 3.47.7 to match the publisher toolchain, so PR checks catch the same analyzer lints as the pub.dev publish step.

2.8.2 #

  • Enhancement: Update Android compileSdk default to 36 (Android 16); now overridable by the app via rootProject.ext.compileSdkVersion. Consuming apps need Android Gradle Plugin 8.9.1+ for the default, or can pin ext.compileSdkVersion = 35 to stay on an older AGP.

2.8.1 #

  • Fix: Open map footer attribution links (Woosmap & OpenStreetMap credits) in the device's external browser instead of the in-app WebView.
  • (CI): Regenerate README.md

2.8.0 #

  • Fix: Open map footer attribution links (Woosmap & OpenStreetMap credits) in the device's external browser instead of the in-app WebView.

2.7.0 #

  • Feature: Add support for localities admin_level subtypes (admin_level_1, 2 and 3)

2.6.0 #

  • Feature: Added mapTypeId support
    1. New MapTypeId enum (roadmap, hybrid) for switching between map views
    2. Added getMapTypeId() and setMapTypeId() methods
    3. Added mapTypeId property to MapOptions for setting the initial map type
    4. Added mapTypeId_changed event callback.

2.5.0 #

  • Enhancement:
    1. Improved pub.dev score
    2. Removed localities/search

2.4.0 #

  • Enhancement: Allow to customize gestureRecognizers with WoosmapView

2.3.1 #

  • Enhancement: Updated plugin dependency

2.3.0 #

  • Enhancement: Computing session for localities API Update Locality API Types locality.nearby api:- Rename ExcludedCategory to ExcludedTypes

2.2.1 #

  • Enhancement: New Localities Categeory enum -business.car_repair -business.car_rental -beach -park.national -sports.winter -sports.golf -business.shop.doityourself -business.shop.craft

2.2.0 #

  • Enhancement: Localities Search API - Allow the user to search by categories and excluded categories

2.1.0 #

  • Enhancement: Added support to swift package manager

2.0.0 #

  • Enhancements
  1. Implement search endpoint
  2. Implement nearby endpoint
  3. Locality autocomplete response added new property types to associate various locality types.
  4. Filter Locality geocode response by excluded_types.
  5. Implement Distance tolls endpoint
  6. Implement Distance route endpoint
  7. Implement Distance matrix endpoint
  8. Implement Distance isochrone endpoint
  9. Implement Transit route endpoint

1.5.6 #

  • Enhancement: Locality autocomplete response added new property types to associate various locality types.

1.5.5 #

  • Enhancement - Allow FlyTo with animation

1.5.4 #

  • Bug fix - Special characters were not appearing in their original format. Decode API response using UTF-8.

1.5.3 #

  • Bug fixes
  1. Added geometricCenter and unknown in LocalitiesDetailsAccuracy enum to avoid crashes reported by clients.
  2. Kept the default value of LocalitiesRequestData as standard
  3. Kept the detault value of CountryCodeFormat enum as alpha3
  4. Added unknown type in LocalitiesGeocodeLocationType to avoid crashes.

1.5.2 #

  • Bug fix - Avoid raising Invalid LocalitiesTypes error. Added unknown Locality type in LocalitiesTypes enum along with types town, village, hamlet, borough, suburb, quarter, neighbourhood amd city

1.5.1 #

  • Documentation: Update pub.dev doc

1.5.0 #

  • Enhancement: Update map-js service typescript class definition

1.4.0 #

  • Enhancement: Expose new Indoor functions isUserInsideVenue(lat: number, lng: number) , getUserLocation() and getLevel()
  • Enhancement: Expose new IndoorWidget function showItinerary(origin?: IndoorPosition | string | null, destination?: IndoorPosition | string | null)
  • Enhancement : setUserLocation to allow bearing and forcefocus optional

1.3.0 #

  • Enhancement - Upgrade plugin to use Android Gradle 8.6

1.2.4 #

  • Enhancement - Customize map loader

1.2.3 #

  • Fixed getBounds and getCenter on android platform

1.2.1 #

  • Added support for Woosmap private keys
  • Added new types geometricCenter, rangeInterpolated and approximate in LocalitiesGeocodeLocationType

1.1.1 #

  • Removed the following deprecated fields from LocalitiesPredictions

    • name
    • admin0
    • admin1
    • viewpoint
    • postalCodes
    • location
  • Added the following field in LocalitiesPredictions

    • hasAddresses
  • Added the following field in LocalitiesDetails

    • status
  • Added the following field in LocalitiesGeocodeResult

    • status
  • Added a new parameter listSubBuildings in LocalitiesGeocodeRequest.

  • Added new field subBuildings in LocalitiesGeocodeResult which is a list of SubBuilding that has placeId and description of the every sub building.

  • Added new field distance in LocalitiesGeocodeResult.

1.0.0 #

0.3.0 #

  • Exposed two additional methods
    1. startNavigation - Triggers the navigation experience.
    2. exitNavigation - Exits the navigation experience.
  • Exposed to additional callbacks.
    1. indoor_navigation_started - Invoked when indoor navigation experience is triggered.
    2. indoor_navigation_exited - Invoked when indoor navigation experience is exited.
  • setDirections method will no longer trigger navigation. Method startNavigation should explicitly be called.

0.2.0 #

  • Exposes two additional optional params to the Marker.setPosition method.
    1. animate - Defaults to false.
    2. duration - Animation duration.

0.1.1 #

  • Bug fix: Format code to bump up the score.

0.1.0 #

  • Exposed IndoorDirectionRequest class to make indoor directions request.

  • Exposed IndoorRendererOption class to create indoor map configuration.

  • Exposed IndoorWidgetOption class to create indoor widget configuration.

  • Exposed IndoorWidgetOptionsUI class to configure indoor widget UI.

  • Exposed MapOptions class to configure the map.

  • Exposed MarkerOptions class to configure marker object.

  • Exposed Style class to configure store overlay style.

  • Exposed new optional parameter ignoreZoomRules to method filterPois.

  • Deprecated default constructors of Marker, StoreOverlay, WoosmapMapViewWidget and WoosmapController classes. Exposed new constructors Marker.create, StoreOverlay.create, WoosmapMapViewWidget.create and WoosmapController.create

  • Bug fix: Adding bulk markers creates duplicate marker id which results in a bug while deleting duplicate markers.

Bug fix: Adding bulk markers creates duplicate marker id which results in a bug while deleting duplicate markers.

0.0.17 #

  • Enable text-to-speech on the Android platform
  • Expose new event for indoor widget indoor_highlight_step
  • Improve pub.dev ranking.

0.0.16 #

  • Enable text-to-speech on the Android platform
  • Expose new event for indoor widget indoor_highlight_step

0.0.15 #

  • Expose Direction service methods _controller.route and _controller.setRoute

0.0.14 #

  • Expose new method filterPois(String advancedFilter) to Filter the map to display only labels and icons of POIs which are matching the filters
  • Update DirectionRequest to capture poiId and poiRef while fetching direction

0.0.13 #

  • highlightFeature and highlightFeatureRef expose new parameter to allow customize padding

0.0.12 #

  • Expose new method highlightFeature(String featureId, bool silent) to renders a map with a POI highlighted by pk or id

0.0.11 #

  • Handle Platfrom Exception

0.0.10 #

  • Get Bundle Id for app

0.0.9 #

  • Rename function call setLocation to setUserLocation

0.0.8 #

  • Marker Component expose with plugin Ref

0.0.7 #

  • Map Component expose with plugin Ref
  • Storeoverlay component expose with plugin Ref

0.0.5 #

  • Updated documentation

0.0.4 #

  • Updated documentation

0.0.3 #

  • Setup Woosmap as publisher.

0.0.2 #

  • Interface to interact with Woosmap Indoor JS.

0.0.1 #

  • Initial release.
8
likes
150
points
352
downloads

Documentation

API reference

Publisher

verified publisherwoosmap.com

Weekly Downloads

Add rich location intelligence to your Flutter app with Woosmap — interactive and indoor maps, store locator, address autocomplete, geocoding, and routing.

Homepage

License

BSD-3-Clause (license)

Dependencies

flutter, http, plugin_platform_interface, uuid, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on woosmap_flutter

Packages that implement woosmap_flutter