@yarrow-uz/yarrow-map-web-sdk 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/main.umd.js +835 -0
- package/dist/module.d.ts +16599 -0
- package/dist/module.js +834 -4
- package/dist/react/index.d.ts +342 -4
- package/dist/react/index.js +83 -2
- package/package.json +7 -14
- package/dist/config/main.d.ts +0 -6
- package/dist/main.d.ts +0 -3
- package/dist/main.js +0 -5
- package/dist/maps/brandBadge.d.ts +0 -24
- package/dist/maps/cache.d.ts +0 -17
- package/dist/maps/config.d.ts +0 -18
- package/dist/maps/events.d.ts +0 -13
- package/dist/maps/layers.d.ts +0 -21
- package/dist/maps/markers.d.ts +0 -12
- package/dist/maps/navigation.d.ts +0 -15
- package/dist/maps/routing/builder.d.ts +0 -34
- package/dist/maps/routing/helpers.d.ts +0 -15
- package/dist/maps/routing/renderer.d.ts +0 -8
- package/dist/maps/routing/types.d.ts +0 -41
- package/dist/maps/search.d.ts +0 -23
- package/dist/maps/styles.d.ts +0 -29
- package/dist/maps/types.d.ts +0 -111
- package/dist/maps/yarrow.d.ts +0 -92
- package/dist/maps/yarrowControls.d.ts +0 -51
- package/dist/react/YarrowMapView.d.ts +0 -12
- package/dist/react/useYarrowMap.d.ts +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.0.48] - 2026-06-12
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `onRouteClick` and `onRouteHover` callbacks on `buildRoute()` for custom route interaction handling. Callbacks receive a `RouteEventContext` with `feature`, `index`, `isBest`, `layerId`, `lngLat`, and `originalEvent`.
|
|
9
|
+
- `routeLineCap` and `routeLineJoin` options on `buildRoute()` for line styling.
|
|
10
|
+
- Migrated bundler from rollup to tsdown.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- **Breaking:** `buildRoute()` `coordinates` now expects `[longitude, latitude]` tuples (consistent with the rest of the SDK and maplibre-gl). Previously the values were swapped internally before being sent to the routing API.
|
|
14
|
+
- **Breaking:** `buildRoute()` now throws on network or API failures instead of silently returning an empty `BuildRouteResult`.
|
|
15
|
+
- **Breaking:** `addMarker()` now correctly places the marker at the provided `[longitude, latitude]`. Previously the coordinates were swapped internally; callers that compensated by passing `[lat, lng]` must update to `[lng, lat]`.
|
|
16
|
+
- Search requests are now cancelled via `AbortController` when the map moves or the highlight is cleared, preventing stale results from rendering.
|
|
17
|
+
- Map event handlers (icon click, layer click, background color) now detach previous listeners before re-attaching, preventing duplicate handler buildup on repeated calls.
|
|
18
|
+
- `removeLayer()` now keeps a shared source alive if other layers still reference it.
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
- **Breaking:** `buildRoute()` no longer renders built-in hover popups showing route duration and distance. Use `onRouteHover` to implement your own.
|
|
22
|
+
- **Breaking:** `buildRoute()` label options removed: `showLabels`, `labelFont`, `labelSize`, `labelOffset`, `labelAnchor`.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- Marker placement using the documented `[longitude, latitude]` order.
|
|
26
|
+
- `changeBackgroundColor()` no longer leaks `styledata` listeners or relies on `setInterval` polling.
|
|
27
|
+
- `clearAllRoutes()` now clears routes under any `layerPrefix` previously used, not just the default `custom-route` prefix.
|
|
28
|
+
|
|
5
29
|
## [1.0.47] - 2026-04-14
|
|
6
30
|
|
|
7
31
|
### Added
|