woosmap_flutter 2.9.1
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 andMapTypeId.fromStringrejected 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
Markercreated with noiconnow draws the Woosmap built-in red drop-pin, and one created with an empty-stringicon(icon: '') draws nothing at all. Both are Maps JS changes rather than plugin ones — the map page loads the unpinnedmap.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()andAdvancedMarker.getPosition()now returnFuture<LatLng?>instead ofFuture<LatLng>. They used to answer0, 0when 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.Markeris the only pre-existing API affected. - Feature: Added four
MapOptionsflagsdisableTiltto disable both tilt and rotation gesturesenableMarkerAccessibleNavigationfor keyboard (tab/arrow) marker selectionmapTypeControlto show or hide the map type control; left unset, the map keeps attaching it automatically for styles that support satellitevisualRefresh(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 aMapCapabilitiesobject that reportsisAdvancedMarkersAvailable. - Feature: Added
WoosSymbol, a vector marker icon accepted byMarkerOptions.iconalongside a URL string andWoosIcon. Itspathis SVG path notation. - Feature: Added
AdvancedMarker, a binding forAdvancedMarkerElement, as a separate class fromMarkerbecause the two wrap unrelated JavaScript types. It takesAdvancedMarkerOptions, emits onlyclick,mouseover,mouseout,dragstart,draganddragend, and has no icon, label, opacity, rotation or alignment. It requires themarkerlibrary — checkgetMapCapabilities().isAdvancedMarkersAvailablefirst. - Feature: Added
PinOptions, the structuredPinElementvisual for anAdvancedMarker(background,borderColor,glyphColor,glyphText,glyphSrc,scale). The pin is built page-side from plain values, so no markup crosses the WebView bridge. The upstreamglyphoption, which also accepts an arbitrary DOM element, is not exposed. - Feature: Added
AdvancedMarker.content, an HTML visual for an advanced marker, withsetContent()andgetContent(). The markup is sanitised in the map page, against the same allowlistInfoWindowOptions.contentgoes through, because the element'scontentis a DOM node and parsing the string into one is aninnerHTMLsink. The allowlist has nostyleattribute and the page carries no stylesheet of yours, so size the content through the markup itself.contentandpinboth set the element's visual and are mutually exclusive: passing both throws anArgumentError. - Feature: Added
AdvancedMarkerOptions.anchorLeft/anchorTop, withAdvancedMarker.setAnchorLeft()andsetAnchorTop(), to move a marker relative to its point. They are CSS lengths or percentages, since the element renders attranslate(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
CollisionBehaviorandAdvancedMarkerOptions.collisionBehavior, withAdvancedMarker.setCollisionBehavior()andgetCollisionBehavior(). Note the current SDK stores the option without acting on it, so markers still draw over one another whatever it is set to; usezIndexfor stacking that works. - Feature: Added an optional
altitudeonLatLng, serialised for marker positions. OnlyAdvancedMarkerreads it, and only on a tilted map; the classicMarkerdrops it. - Feature: Added
InfoWindowandInfoWindowOptions(content,disableAutoPan,maxWidth,pixelOffset), withopen({anchor, position}),close(),setContent(),getContent(),setPosition()andsetOffset(). An info window anchors to aMarker, anAdvancedMarkeror a bare position. Content is HTML and is sanitised in the map page before it reaches the SDK, which otherwise assigns it straight toinnerHTML: a small allowlist of formatting, lists, tables, links and images survives, everyon*handler and every non-http(s)URL is stripped, and anything else is dropped whole. A non-zeropixelOffsetis not applied when the anchor is anAdvancedMarker. Events (closeclick,domready) are not bound yet. - Fix:
Marker.add()andAdvancedMarker.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 thesatellitecapability, 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
compileSdkdefault to 36 (Android 16); now overridable by the app viarootProject.ext.compileSdkVersion. Consuming apps need Android Gradle Plugin 8.9.1+ for the default, or can pinext.compileSdkVersion = 35to stay on an older AGP. - Fix: Resolve
unawaited_return_in_try_blockanalyzer warnings in the API service (return values directly instead ofFuture.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
compileSdkdefault to 36 (Android 16); now overridable by the app viarootProject.ext.compileSdkVersion. Consuming apps need Android Gradle Plugin 8.9.1+ for the default, or can pinext.compileSdkVersion = 35to 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
mapTypeIdsupport- New
MapTypeIdenum (roadmap,hybrid) for switching between map views - Added
getMapTypeId()andsetMapTypeId()methods - Added
mapTypeIdproperty toMapOptionsfor setting the initial map type - Added
mapTypeId_changedevent callback.
- New
2.5.0 #
- Enhancement:
- Improved pub.dev score
- Removed localities/search
2.4.0 #
- Enhancement: Allow to customize
gestureRecognizerswith 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
- Implement
searchendpoint - Implement
nearbyendpoint - Locality autocomplete response added new property
typesto associate various locality types. - Filter Locality geocode response by
excluded_types. - Implement Distance
tollsendpoint - Implement Distance
routeendpoint - Implement Distance
matrixendpoint - Implement Distance
isochroneendpoint - Implement Transit
routeendpoint
1.5.6 #
- Enhancement: Locality autocomplete response added new property
typesto associate various locality types.
1.5.5 #
- Enhancement - Allow
FlyTowith 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
- Added
geometricCenterandunknowninLocalitiesDetailsAccuracyenum to avoid crashes reported by clients. - Kept the default value of
LocalitiesRequestDataasstandard - Kept the detault value of
CountryCodeFormatenum asalpha3 - Added
unknowntype inLocalitiesGeocodeLocationTypeto avoid crashes.
1.5.2 #
- Bug fix - Avoid raising
Invalid LocalitiesTypeserror. AddedunknownLocality type inLocalitiesTypesenum along with typestown,village,hamlet,borough,suburb,quarter,neighbourhoodamdcity
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()andgetLevel() - Enhancement: Expose new IndoorWidget function
showItinerary(origin?: IndoorPosition | string | null, destination?: IndoorPosition | string | null) - Enhancement :
setUserLocationto allowbearingandforcefocusoptional
1.3.0 #
- Enhancement - Upgrade plugin to use Android Gradle 8.6
1.2.4 #
- Enhancement - Customize map loader
1.2.3 #
- Fixed
getBoundsandgetCenteron android platform
1.2.1 #
- Added support for Woosmap private keys
- Added new types
geometricCenter,rangeInterpolatedandapproximateinLocalitiesGeocodeLocationType
1.1.1 #
-
Removed the following deprecated fields from
LocalitiesPredictionsnameadmin0admin1viewpointpostalCodeslocation
-
Added the following field in
LocalitiesPredictionshasAddresses
-
Added the following field in
LocalitiesDetailsstatus
-
Added the following field in
LocalitiesGeocodeResultstatus
-
Added a new parameter
listSubBuildingsinLocalitiesGeocodeRequest. -
Added new field
subBuildingsinLocalitiesGeocodeResultwhich is a list ofSubBuildingthat hasplaceIdanddescriptionof the every sub building. -
Added new field
distanceinLocalitiesGeocodeResult.
1.0.0 #
- Exposed methods to faciliate
StoresAPI callssearch- Encapsulates Store Search queryautocomplete- Encapsulates Stores Autocomplete request
- Exposed methods to facilitate
LocaltiesAPI callsautocomplete- Encapsulates Localities Autocomplete requestdetails- Encapsulates Localities Details requestgeocode- Encapsulates Localities Geocode request
0.3.0 #
- Exposed two additional methods
startNavigation- Triggers the navigation experience.exitNavigation- Exits the navigation experience.
- Exposed to additional callbacks.
indoor_navigation_started- Invoked when indoor navigation experience is triggered.indoor_navigation_exited- Invoked when indoor navigation experience is exited.
setDirectionsmethod will no longer trigger navigation. MethodstartNavigationshould explicitly be called.
0.2.0 #
- Exposes two additional optional params to the
Marker.setPositionmethod.animate- Defaults to false.duration- Animation duration.
0.1.1 #
- Bug fix: Format code to bump up the score.
0.1.0 #
-
Exposed
IndoorDirectionRequestclass to make indoor directions request. -
Exposed
IndoorRendererOptionclass to create indoor map configuration. -
Exposed
IndoorWidgetOptionclass to create indoor widget configuration. -
Exposed
IndoorWidgetOptionsUIclass to configure indoor widget UI. -
Exposed
MapOptionsclass to configure the map. -
Exposed
MarkerOptionsclass to configure marker object. -
Exposed
Styleclass to configure store overlay style. -
Exposed new optional parameter
ignoreZoomRulesto methodfilterPois. -
Deprecated default constructors of
Marker,StoreOverlay,WoosmapMapViewWidgetandWoosmapControllerclasses. Exposed new constructorsMarker.create,StoreOverlay.create,WoosmapMapViewWidget.createandWoosmapController.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.routeand_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
DirectionRequestto capture poiId and poiRef while fetching direction
0.0.13 #
highlightFeatureandhighlightFeatureRefexpose 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
setLocationtosetUserLocation
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.