@tomtom-org/maps-sdk 1.0.0-rc.5 → 1.0.0-rc.7
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 +812 -787
- package/README.md +2 -2
- package/core/dist/core.es.js +1 -1
- package/core/dist/index.d.ts +1339 -1556
- package/map/dist/index.d.ts +1110 -566
- package/map/dist/map.es.js +5 -3
- package/map/package.json +1 -1
- package/package.json +2 -1
- package/services/dist/index.d.ts +111 -197
- package/services/dist/services.es.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,101 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- services: a call that adds its own `apiKey` to a request for the configured proxy sends the proxy's session cookie with it, so `trafficAreaAnalytics` with a Move Portal key works from a page on a site other than the proxy's. A call that changes `commonBaseURL` decides on its own merged config ([#2852](https://github.com/tomtom-internal/maps-sdk-js/pull/2852))
|
|
8
|
+
|
|
9
|
+
## 1.0.0-rc.6
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- **Breaking:** map: The attribution shows the TomTom and OpenStreetMap credits as logos, each keeping its credit's link, with any other credit after them as text. ([#2045](https://github.com/tomtom-internal/maps-sdk-js/pull/2045))
|
|
14
|
+
|
|
15
|
+
- `attribution` takes `position` (the corner) and `padding` to place the logos. It only places them: no value turns them off or swaps them for plain text
|
|
16
|
+
- The logos are black with a white outline on every style, light and dark
|
|
17
|
+
- A soft, blurred backdrop sits behind the logos so they stand out from map labels. It follows the style's theme across `setStyle`. `backdrop: false` removes it, and the logos stay
|
|
18
|
+
- Your own `credits` follow the logos
|
|
19
|
+
- **Breaking:** CSS or layout code aimed at `.maplibregl-ctrl-attrib` no longer finds the attribution: place the logos clear of your layout with `position` and `padding`
|
|
20
|
+
- examples: `attribution-playground` places the logos in each corner, over every standard style, with or without their backdrop
|
|
21
|
+
|
|
22
|
+
- **Breaking:** core, services, map: a refused API key reads the same on the map as on a service call, so `PrivatePreviewAccess`, which both errors now carry, is imported from `@tomtom-org/maps-sdk/core`, not `@tomtom-org/maps-sdk/services` ([#2811](https://github.com/tomtom-internal/maps-sdk-js/pull/2811))
|
|
23
|
+
- core: `APIErrorDetails` declares `apiErrorCode` and `privatePreviewAccess` once, for one function to read a service call's error and the map's alike
|
|
24
|
+
- map: `TomTomMapError` implements it, as `SDKServiceError` does
|
|
25
|
+
- map: a style, tile, sprite or glyph refused with a JSON body names the API's own code in `apiErrorCode`, `'InvalidReferer'` when the key's domain restriction refused the page and `'Forbidden'` when the API isn't enabled for the key, and adds the API's own message to `message`
|
|
26
|
+
- map: the message of a failed style, tile, sprite or glyph request shows the API key in its URL as `key=…`, so the message is safe to log
|
|
27
|
+
- map: a plugin's data that fails to load, such as the Landmarks 3D tiles, reaches `addErrorHandler` as a `TomTomMapError` under the plugin's source, coded by status like the map's own tiles
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- map: `BaseMapModule` lights up the style's own 3D buildings: `buildings3D.hover` and `buildings3D.click` set the colour a hovered or clicked building turns towards, and `setBuildingColors` gives the buildings you pick by id a colour of their own ([#2821](https://github.com/tomtom-internal/maps-sdk-js/pull/2821))
|
|
32
|
+
|
|
33
|
+
- A building reacts while a `BaseMapModule` handler reaches the `buildings3D` group, and stays as drawn while you leave both colours unset
|
|
34
|
+
- A building the map data splits into parts lights up and takes its colour whole, by the id of any of its parts
|
|
35
|
+
- `getBuildingIdAt` names the building standing at a position, to highlight buildings you know by place
|
|
36
|
+
- Features of the base map, the POIs and the traffic tiles now carry their `eventState` as a feature state, for your own `styling.layers` paint to read
|
|
37
|
+
- The 3D buildings' `fill-extrusion-color` is now an expression around the style's colour on every map, so `getPaintProperty` and an exported style return that expression; the style's own colour is its output at intensity 0
|
|
38
|
+
- The four settings are knobs of `baseMapKnobCatalogue`, `buildings3D.{hover,click}.{color,intensity}`
|
|
39
|
+
- The new `base-map-buildings-interaction` example hovers, selects and paints buildings over Midtown Manhattan
|
|
40
|
+
|
|
41
|
+
- map: `getMapLight` reads where the map's light comes from, as a compass direction and an altitude, so a layer of your own can light its surfaces from the same direction as the 3D buildings ([#2732](https://github.com/tomtom-internal/maps-sdk-js/pull/2732))
|
|
42
|
+
|
|
43
|
+
- With neither `view.light.direction` nor `view.light.altitude` set, the light knobs leave MapLibre's position unset, so a colour, intensity or alignment on its own, and a clean style switch, leave `getMapLight` `undefined` instead of writing the 210°/60° default
|
|
44
|
+
|
|
45
|
+
- services: an unknown POI category logs its id, not the name the service sent ([#2815](https://github.com/tomtom-internal/maps-sdk-js/pull/2815))
|
|
46
|
+
|
|
47
|
+
- core: geometry helpers handle routes, boxes and cells across the antimeridian, and a new stop slots into a round trip where it belongs ([#2813](https://github.com/tomtom-internal/maps-sdk-js/pull/2813))
|
|
48
|
+
|
|
49
|
+
- core: `bboxFromGeoJSON` gives the narrowest box around shapes on both sides of the antimeridian, and `undefined` for a geometry missing its coordinates
|
|
50
|
+
- core: route positions, owned polygons and hexagon cells wrap past ±180° instead of jumping across the map
|
|
51
|
+
- core: departure, arrival, waypoint, border and tollgate instructions carry no lanes
|
|
52
|
+
- core: `findBestWaypointInsertionIndex` and `withInsertedWaypoints` slot a new stop on a round trip between the right passes of its origin and destination
|
|
53
|
+
- core: `calculateProgressAtRoutePoint`, `getRouteProgressBetween` and `getRouteProgressForSection` return `undefined` for a path index that is no whole number, where they returned `NaN` values
|
|
54
|
+
- core: `formatDuration` rounds a half minute up, and `formatDistance` and `formatDuration` keep the global units for an option left `undefined`
|
|
55
|
+
- core: bundlers drop `TomTomConfig` from an app that never reads it
|
|
56
|
+
- core: a junction's instruction keeps its lanes where a waypoint instruction shares its path point
|
|
57
|
+
|
|
58
|
+
- map: `setLanguage` also translates style labels that read their name inside an expression, such as POIs, states, peaks and ferries ([#2813](https://github.com/tomtom-internal/maps-sdk-js/pull/2813))
|
|
59
|
+
|
|
60
|
+
- map: a sourceless map error is `STYLE_LOAD_FAILED` only while a style loads, and `INTERNAL` otherwise
|
|
61
|
+
- map: colour knobs refuse colour forms MapLibre can't paint, instead of drawing nothing
|
|
62
|
+
- map: `CustomGeoJSONModule.applyConfig` replaces a layer whose type changes instead of throwing
|
|
63
|
+
- map: a failed or superseded style switch finishes cleanly, and a switch to the same style resets knobs and raw edits
|
|
64
|
+
- map: route summary bubbles stay above their route on a rotated map, hidden sections stay hidden, and section icons follow their size knob
|
|
65
|
+
- map: places keep another module's config properties, draw a mapped category icon, and rebuild once per knob batch
|
|
66
|
+
- map: traffic incident icons keep their visibility across config changes, opacities clamp to 0–1, and area analytics grids take regions across the antimeridian
|
|
67
|
+
- map: `setLanguage` relabels only the map style's own labels, so module and app layers keep the text they were given
|
|
68
|
+
- map: `calculateFittingBBox` expands latitudes in Web Mercator, as `fitBounds` frames them, so its south and north move
|
|
69
|
+
- map: a custom `icon.default` image repositions the place labels, a hovered `base-map` place draws once, and a clicked `pin-clustered` micro dot stays drawn
|
|
70
|
+
- map: `invertFeature` shades a polygon's holes, a MultiPolygon's title sits on its outer ring, and an expression `fill.color` falls through to `color`
|
|
71
|
+
- map: shown-features handlers keep firing after one of them unsubscribes
|
|
72
|
+
- map: custom images load from an SVG file's URL, from SVG markup with text past Latin-1 and from another origin that allows CORS
|
|
73
|
+
- map: each `where()` scope over one source keeps its own hover and cursor, `off` also removes the handlers on a source a config change dropped, and an unsubscribe removes only the registration it came from
|
|
74
|
+
- map: routes, places, area analytics and traffic filters reload only the sources a change reaches
|
|
75
|
+
- map: a clean switch to the style already loaded removes the traffic flow and incident filters, as it does the POI ones
|
|
76
|
+
- map: the map look reads a page background the browser reports in `oklch()` as painted
|
|
77
|
+
- map: POI and place category icon offsets apply where the style's own icon offset is a zoom ramp
|
|
78
|
+
|
|
79
|
+
- services: a `geoBias` with both a point and a bounding box fails validation as `INVALID_REQUEST`, and error statuses survive bodies the SDK can't read ([#2813](https://github.com/tomtom-internal/maps-sdk-js/pull/2813))
|
|
80
|
+
|
|
81
|
+
- services: search results map their fields, opening hours and polygon boxes as the service sends them, and keep area-scoped brands
|
|
82
|
+
- services: an XML error over HTTP/2 names its status, and an unread error body is freed
|
|
83
|
+
- services: a zero `Retry-After` still backs off before the next try
|
|
84
|
+
- services: suggestions pick their concept independently of `limit`
|
|
85
|
+
- services: traffic area analytics checks its date rules before the request, rejecting a call that breaks them as `INVALID_REQUEST`
|
|
86
|
+
- services: an along-route search whose filters hold only keys it doesn't declare fails validation, as one with no filter does
|
|
87
|
+
- services: a route leaves out `vehicleRestricted` when it has none, as it does every other section type, and `sectionTypes: ['lanes']` without `guidance` requests no sections
|
|
88
|
+
- services: `geometryData` sends a footprint that several places share once, and gives it the first place's properties, where the last place's won
|
|
89
|
+
- services: an `INVALID_REQUEST` message lists its issues without the `Issues:` JSON, which stays in the error's `issues`
|
|
90
|
+
- services: fuzzy search drops a query intent it doesn't know, and reverse geocoding an area type it doesn't know, rather than returning `undefined`
|
|
91
|
+
- services: `trafficIncidentDetails` sends a polygon cut at 180° as one box across the antimeridian, not one around the world
|
|
92
|
+
- services: a cached `getPOICategories` call rejects an insecure base URL, as an uncached one does
|
|
93
|
+
|
|
3
94
|
## 1.0.0-rc.5
|
|
4
95
|
|
|
5
96
|
### Minor Changes
|
|
6
97
|
|
|
7
|
-
-
|
|
98
|
+
- **Breaking:** core: `formatDuration` returns a `string` for any `number`, so you can pass its result where a `string` is required with no fallback ([#2799](https://github.com/tomtom-internal/maps-sdk-js/pull/2799))
|
|
8
99
|
|
|
9
100
|
- **Breaking:** core: `0` gives `"0 min"` and any other duration under 30 seconds gives `"< 1 min"`, in your minute units, where it returned `undefined`. Only `undefined` still returns `undefined`, so where `undefined` hid a label for no delay or no wait, test the seconds before you format them
|
|
10
101
|
- map: `RoutingModule` still leaves out a traffic delay, a jam delay, a stop's wait and a duration difference that round to no minutes, and a summary bubble on a route under 30 seconds reads `"< 1 min"`
|
|
@@ -12,18 +103,18 @@
|
|
|
12
103
|
|
|
13
104
|
### Patch Changes
|
|
14
105
|
|
|
15
|
-
-
|
|
106
|
+
- map: `calculatePaddedBBox`, `calculatePaddedCenter` and `calculateFittingBBox` cut an element short of the map's full width and height from the side that leaves the most of the map visible, so a toolbar inset from the map edges leaves the area below it visible rather than none ([#2798](https://github.com/tomtom-internal/maps-sdk-js/pull/2798))
|
|
16
107
|
|
|
17
108
|
- map: this changes the result for any such element whose closest map edge is not that side, whether it floats, sits in a corner or touches one edge. A 600 × 150 px panel against the left edge of a 1280 × 720 px map cuts from the top, and a short panel in the top-right corner cuts from the top rather than the right
|
|
18
109
|
- map: an element spanning the map's full width or height cuts as before. If two sides leave the same area, the side nearest a map edge wins
|
|
19
110
|
|
|
20
|
-
-
|
|
111
|
+
- The README links the repository's security policy page, which sends a vulnerability report to TomTom's HackerOne program ([#2803](https://github.com/tomtom-internal/maps-sdk-js/pull/2803))
|
|
21
112
|
|
|
22
|
-
-
|
|
113
|
+
- map: waypoint labels win over the route's section icons, and the section focus ring outlines the route instead of crossing it ([#2807](https://github.com/tomtom-internal/maps-sdk-js/pull/2807))
|
|
23
114
|
- A tunnel, closed-to-vehicles, ferry, toll-road or traffic icon under a stop's name gives way to it, as it does to the pin, rather than pushing the name aside.
|
|
24
115
|
- `setSectionFocus` draws its ring under the route's own lines, so on a road that doubles back, or where focused sections meet end to end, the route covers the ring rather than the ring crossing it.
|
|
25
116
|
|
|
26
|
-
-
|
|
117
|
+
- services: `geocode` and `discoverPlaces` take a bare query string, the same as `{ query }`, as `geocodeOne` and `discoverOnePlace` already do ([#2797](https://github.com/tomtom-internal/maps-sdk-js/pull/2797))
|
|
27
118
|
|
|
28
119
|
- services: `discoverPlaces('coffee')` runs a fuzzy search and is typed as one
|
|
29
120
|
|
|
@@ -31,7 +122,7 @@
|
|
|
31
122
|
|
|
32
123
|
### Major Changes
|
|
33
124
|
|
|
34
|
-
-
|
|
125
|
+
- **Breaking:** core, services: a route or leg summary's `trafficDelayInSeconds` and `trafficLengthInMeters` are optional, present only when the routing service sends them, rather than `0` when it leaves them out ([#2748](https://github.com/tomtom-internal/maps-sdk-js/pull/2748))
|
|
35
126
|
|
|
36
127
|
- core: `trafficDelayInSeconds` is the delay of the traffic events along `trafficLengthInMeters`. For the gap to free-flow, use `Math.max(0, liveTrafficIncidentsTravelTimeInSeconds - noTrafficTravelTimeInSeconds)`, with `computeTravelTimeFor: 'all'`
|
|
37
128
|
- agent-toolkit: the route shape `analyseData`, `processData`, `clusterIncidents` and `createTracker` give the model says what `trafficDelayInSeconds` measures and how to work out the gap to free-flow
|
|
@@ -39,7 +130,7 @@
|
|
|
39
130
|
|
|
40
131
|
### Minor Changes
|
|
41
132
|
|
|
42
|
-
-
|
|
133
|
+
- **Breaking:** core: the bbox utilities read and return a box crossing the antimeridian as `west > east`, as RFC 7946 and the services do, so fitting the map to results around Fiji frames Fiji rather than the whole world ([#2724](https://github.com/tomtom-internal/maps-sdk-js/pull/2724))
|
|
43
134
|
|
|
44
135
|
- **Breaking:** core: `bboxFromCoordsArray`, and `bboxFromGeoJSON` on points, return the box across the antimeridian when it is narrower than the one from the lowest to the highest longitude. A tie, or input spanning -180 to 180, keeps the latter, so every country in the world still gives `[-180, …, 180]`
|
|
45
136
|
- **Breaking:** core: `bboxFromGeoJSON` reads a line or ring along its edges, which don't wrap, so a ring past 180 gives the box across the antimeridian and one from -100 to 100 stays `[-100, …, 100]`
|
|
@@ -49,7 +140,7 @@
|
|
|
49
140
|
- services: `geometrySearch` ranks a polygon across the antimeridian by its own width when it keeps the largest 50
|
|
50
141
|
- agent-toolkit: `getTrafficAreaAnalytics` reads a `bbox` across the antimeridian as the area it covers, and the tools describe a bbox as `[west, south, east, north]`. It needs SDK 1.0.0-rc.4
|
|
51
142
|
|
|
52
|
-
-
|
|
143
|
+
- **Breaking:** core: `Language` holds every language the map labels carry, so `map.setLanguage('hi-IN')` labels the map in Hindi, and the services send each API a code it takes ([#2752](https://github.com/tomtom-internal/maps-sdk-js/pull/2752))
|
|
53
144
|
|
|
54
145
|
- **Breaking:** core: `Language` and `languages` gain `ca-ES`, `et-EE`, `eu-ES`, `gl-ES`, `he-IL`, `hi-IN`, `hr-HR`, `ja-JP`, `kk-KZ`, `lv-LV`, `ro-RO`, `sr-RS` and `uk-UA`, so a `Record<Language, …>` of your own needs an entry for each
|
|
55
146
|
- map: the map labels in each of them, and the traffic incident descriptions in Catalan, Estonian, Hebrew, Japanese, Latvian and Romanian
|
|
@@ -58,13 +149,13 @@
|
|
|
58
149
|
- services: `trafficIncidentDetails` takes every `Language`, answering in the nearest language the incident tiles have, or in English, where it answered one it lacks, such as `en-AU` or `pt-BR`, with a 406
|
|
59
150
|
- examples: `map-language` offers Hebrew, Hindi, Japanese, Serbian and Ukrainian
|
|
60
151
|
|
|
61
|
-
-
|
|
152
|
+
- **Breaking:** core: `main-when-available` uses a place's first untyped entry point when none is typed `'main'`, so a reverse geocoded place routes to the road-snapped point the service returns rather than to the queried point ([#2738](https://github.com/tomtom-internal/maps-sdk-js/pull/2738))
|
|
62
153
|
|
|
63
154
|
- **Breaking:** core: `getPosition(place, { useEntryPoint: 'main-when-available' })` returns that entry point's position. A place whose entry points are all `'minor'` keeps its own position
|
|
64
155
|
- **Breaking:** services: `calculateRoute` with `useEntryPoints: 'main-when-available'` sends such a stop at that entry point
|
|
65
156
|
- **Breaking:** map: `RoutingModule` with `waypoints.entryPoints: 'main-when-available'` draws such a waypoint at that entry point
|
|
66
157
|
|
|
67
|
-
-
|
|
158
|
+
- **Breaking:** map: `styling.layers.query` selects style layers by exact id, derives a paint or layout value from the one beneath it, and narrows a layer's filter with one more clause, all kept across style switches; `POIsModule` hides or shows single POIs by id, which makes `filters.categories` optional ([#2729](https://github.com/tomtom-internal/maps-sdk-js/pull/2729))
|
|
68
159
|
|
|
69
160
|
- map: `LayerQuery` takes `ids`, the exact style layer ids to select
|
|
70
161
|
- map: `setPaint` and `setLayout` take a function `(valueUnder, layerId) => value` for any property, worked out from the style's own value, or the one a knob set, and again whenever that value changes
|
|
@@ -73,38 +164,38 @@
|
|
|
73
164
|
- **Breaking:** map: `POIsModuleConfig`'s `filters.categories` is optional, so `filters` can hold `ids` alone. Code reading `config.filters.categories` must handle `undefined`
|
|
74
165
|
- examples: `map-styling-playground` adds a motorway name halo derived from the one beneath it and a road name filter clause, and `poi-filters` hides a POI you click
|
|
75
166
|
|
|
76
|
-
-
|
|
167
|
+
- map: add a MapLibre custom layer with `map.addCustomLayer`, which keeps it in its place through style switches and lets its objects take clicks and hovers ([#2757](https://github.com/tomtom-internal/maps-sdk-js/pull/2757))
|
|
77
168
|
- `beforeLayerConfig` places it as on a module. The new `'lowest3D'` anchor, `mapStyleLayerIDs.lowest3D`, puts a 3D layer under the style's 3D buildings, otherwise under the POIs, and module layers placed before `lowestLabel` stay below it, even the ones added later. Module layers at `'poi'` or `'top'` stay above it, also where it falls back to the POIs or the top
|
|
78
169
|
- An id the map already has throws, until that layer's `remove()`
|
|
79
170
|
- After every `setStyle`, before the modules restore, the layer goes back to its place, added again if the switch dropped it, and the module layers go back over or under it as they were. `remove()` takes it off for good
|
|
80
171
|
- A `hitTest` returns the objects under the pointer, topmost first. They join the map's user events in layer order, so the layer's `events`, priority, the hover cursor and the event states work as on a module's features, with `setState` to draw the states
|
|
81
172
|
|
|
82
|
-
-
|
|
173
|
+
- **Breaking:** map: drag features on every module and scope with the new `dragstart`, `drag` and `dragend` events, such as a route's waypoints, its lines or a place's pin ([#2766](https://github.com/tomtom-internal/maps-sdk-js/pull/2766))
|
|
83
174
|
|
|
84
175
|
- map: a drag handler makes its features draggable with the mouse or one finger. They show the new `cursorOnDraggable` cursor, `'grab'` by default, the map doesn't pan under the drag, and the release fires no `click`
|
|
85
176
|
- map: `RoutingModule` reports the drag on `events.waypoints` and `events.mainLines` and plans nothing, so you call `calculateRoute` and `showRoutes` with the moved or inserted stop, or let the route dragging plugin do it
|
|
86
177
|
- **Breaking:** map: `EventType` also holds the three drag types, so a `switch` or a `Record` over it needs them. Event states keep to the click and hover types, as `EventState` and `SetEventStateOptions.state` now say on their own
|
|
87
178
|
- examples: `react-route-planner` drags stops on the map and pulls new ones onto the route line through the route dragging plugin, re-planning the route as you drag
|
|
88
179
|
|
|
89
|
-
-
|
|
180
|
+
- map: line up a custom layer's three.js or WebGL scene with the map, in metres around a place, with `localFrameMatrix` ([#2757](https://github.com/tomtom-internal/maps-sdk-js/pull/2757))
|
|
90
181
|
- It turns `defaultProjectionData.mainMatrix` into a `Float64Array`, composed in double precision, which a three.js camera or a WebGL uniform takes
|
|
91
182
|
- `centerLatitude` scales heights at the map centre's latitude, as MapLibre scales its 3D buildings and terrain, and `units: 'mercatorMeters'` takes geometry authored in EPSG:3857 metres
|
|
92
183
|
|
|
93
|
-
-
|
|
184
|
+
- **Breaking:** map: `SectionLinePattern`, deprecated in 1.0.0-rc.3, is removed. Use `LinePattern`, the same type, which geometries and reachable range borders share too ([#2775](https://github.com/tomtom-internal/maps-sdk-js/pull/2775))
|
|
94
185
|
|
|
95
|
-
-
|
|
186
|
+
- **Breaking:** map: `TomTomMap` takes a `transformRequest` that holds or rewrites each map request after the SDK's own, and may return a promise, so an app can wait for its proxy session or point tiles at its own cache ([#2756](https://github.com/tomtom-internal/maps-sdk-js/pull/2756))
|
|
96
187
|
|
|
97
188
|
- map: `transformRequest`, typed `MapRequestTransform`, gets the request the SDK built, with its URL, headers and credentials, and stays in place through `setLanguage` and `setGeopoliticalView`
|
|
98
189
|
- **Breaking:** map: the map no longer awaits `globalThis.__DEMOS_PROXY_ENSURE_SESSION__` before its requests. An app that set it passes the same function as `transformRequest` instead: `transformRequest: async (request) => { await ensureSession(); return request; }`
|
|
99
190
|
- examples: `map-request-transform` holds the map's tile requests behind a toggle and counts them
|
|
100
191
|
|
|
101
|
-
-
|
|
192
|
+
- **Breaking:** map: when the map's style fails to load, a module's `create()` or `get()` rejects with the style's `TomTomMapError`, the one the error handlers get, so an `await` on it lands in your `catch` instead of waiting forever ([#2726](https://github.com/tomtom-internal/maps-sdk-js/pull/2726))
|
|
102
193
|
|
|
103
194
|
- **Breaking:** map: after a style load fails, a module call that waits for the map, such as `showRoutes` or `show`, rejects with that error too, until a `setStyle` loads a style. Once one loads, create again only the modules whose `create()` or `get()` rejected: the others restore themselves
|
|
104
195
|
- map: a style, tile, sprite or glyph request that gets no response, offline or blocked, reaches the error handlers as `NETWORK_NOT_AVAILABLE`, which can be retried, instead of `STYLE_LOAD_FAILED` or `INTERNAL`
|
|
105
196
|
- examples: `multiple-maps-landmarks` logs a map whose style fails to load instead of leaving an unhandled rejection
|
|
106
197
|
|
|
107
|
-
-
|
|
198
|
+
- **Breaking:** services: `calculateRoute` returns the curves of each route as `sections.curve` and the winding stretches they make up as `sections.curvyStretch` when its `sectionTypes` names them, so you can keep a motion-sick passenger off winding roads or send a motorcyclist down them ([#2660](https://github.com/tomtom-internal/maps-sdk-js/pull/2660))
|
|
108
199
|
|
|
109
200
|
- **Breaking:** core: `SectionType`, `sectionTypes`, `inputSectionTypes` and `inputSectionTypesWithGuidance` include `'curve'` and `'curvyStretch'`. A `Record<SectionType, …>` needs an entry for each
|
|
110
201
|
- **Breaking:** services: `InputSectionType` includes them too
|
|
@@ -122,34 +213,34 @@
|
|
|
122
213
|
- examples: the new `route-curves` example ranks a mountain trip's routes by how winding they are and takes the straightest or the curviest. It shows all their curves, the open-road bends, the turns in towns, the curvy stretches each route has of its own, the curves in tunnels or the hairpins, with their speed limit signs, names how hard a curve you click is, and tells where a curvy stretch you click anywhere along starts, how long it takes and which towns it runs between. Its sliders, folded away under the picker, set what counts as a curve and a curvy stretch, and find them again on the routes shown. The `route-sections-playground` picker adds the Stelvio Pass, and `map-styling-playground` draws a route's curves over Twin Peaks
|
|
123
214
|
- examples: `react-route-planner` adds a Curvy roads lane and counts each alternative's curvy stretches of its own, and a Curvy route draws its curves and curvy stretches
|
|
124
215
|
|
|
125
|
-
-
|
|
216
|
+
- **Breaking:** map: the `maplibre-gl` peer dependency moves up to `^6.15.0` ([#2722](https://github.com/tomtom-internal/maps-sdk-js/pull/2722))
|
|
126
217
|
- **Breaking:** services: the `zod` peer dependency moves up to `^4.6.7`.
|
|
127
218
|
- services: `geometryData` reports a `geometries` list over 20 as one issue on that field, not as a union mismatch.
|
|
128
219
|
|
|
129
|
-
-
|
|
220
|
+
- **Breaking:** services: along-route results from `discoverPlaces({ route })` carry their detour as typed `AlongRoutePlaceProps`, `detourTimeInSeconds` and `detourDistanceInMeters`, so you read them without a cast ([#2786](https://github.com/tomtom-internal/maps-sdk-js/pull/2786))
|
|
130
221
|
|
|
131
222
|
- **Breaking:** services: the untyped `properties.detourTime`, `detourDistance` and `detourOffset` are now `detourTimeInSeconds`, `detourDistanceInMeters` and `detourOffsetInMeters`. Either detour can be negative, when the route through the place is faster or shorter than the original
|
|
132
223
|
- services: `detourOffsetInMeters` comes with results sorted by `'detourOffset'`
|
|
133
224
|
- examples: `nodejs-along-route-search` prints each charger's detour
|
|
134
225
|
|
|
135
|
-
-
|
|
226
|
+
- **Breaking:** services: `geocodeOne` and `discoverOnePlace` reject with an `SDKError` coded `NOT_FOUND` when nothing matches, naming the `'Geocode'` or `'FuzzySearch'` service, so you can branch on `error.code` as for any other failed call ([#2751](https://github.com/tomtom-internal/maps-sdk-js/pull/2751))
|
|
136
227
|
|
|
137
228
|
- The message is unchanged. A `catch` that filters on `instanceof SDKError` now receives a miss too, where it used to get a plain `Error`.
|
|
138
229
|
|
|
139
|
-
-
|
|
230
|
+
- **Breaking:** services: request validation rejects a parameter the service doesn't know, and names it, so a misplaced key such as a top-level `poiCategories` fails with `INVALID_REQUEST` instead of being dropped silently ([#2750](https://github.com/tomtom-internal/maps-sdk-js/pull/2750))
|
|
140
231
|
|
|
141
232
|
- **Breaking:** services: an unknown parameter rejects with an `unrecognized_keys` issue, and one the service takes inside an object parameter points there: `poiCategories is not a parameter of AlongRouteSearch. Did you mean filters.poiCategories?`. The check reads only the parameters you pass, not the global configuration, and a parameter set to `undefined` counts as absent. `validateRequest: false` skips it
|
|
142
233
|
- **Breaking:** services: an along-route `discoverPlaces` with neither a `query` nor a filter other than `indexes` rejects in validation, rather than with the API's `400 "The requested route cannot be calculated"`
|
|
143
234
|
- services: `calculateRoute` validates `useEntryPoints`, `extendedRouteRepresentations` and `guidance`
|
|
144
235
|
|
|
145
|
-
-
|
|
236
|
+
- **Breaking:** services: a request a service can't build, such as a geometry type geometry search doesn't take sent with `validateRequest: false`, rejects with an `SDKError` coded `INVALID_REQUEST` instead of a plain `Error`, so you can branch on `error.code` as for any other failed call ([#2777](https://github.com/tomtom-internal/maps-sdk-js/pull/2777))
|
|
146
237
|
|
|
147
238
|
- What the request builder threw is on `cause`, and the message is unchanged.
|
|
148
239
|
- If the parameters passed validation and the request still can't be built, the code is `INTERNAL`.
|
|
149
240
|
|
|
150
|
-
-
|
|
241
|
+
- **Breaking:** services: a rate-limited (`429`) call backs off 447 ms before its first retry by default instead of retrying at once, and each wait is drawn between half and all of the backoff, so clients rate-limited together don't retry together ([#2749](https://github.com/tomtom-internal/maps-sdk-js/pull/2749))
|
|
151
242
|
|
|
152
|
-
-
|
|
243
|
+
- **Breaking:** services: `when` takes a `localDateTime`, a wall-clock time such as `'2026-10-19T08:15:00'` that the routing API reads in the origin's time zone, so you can route at 08:15 in Tokyo from a browser anywhere without a UTC offset ([#2744](https://github.com/tomtom-internal/maps-sdk-js/pull/2744))
|
|
153
244
|
|
|
154
245
|
- With `arriveBy`, `calculateRoute` reads a `localDateTime` in the time zone of the route's final destination. `calculateReachableRange` takes it with `departAt`
|
|
155
246
|
- The format is `YYYY-MM-DDTHH:mm:ss`, typed as `LocalDateTime`. Request validation rejects a time without seconds, with an offset or a `Z`, a date that doesn't exist, and a `when` with both or neither of `date` and `localDateTime`
|
|
@@ -157,59 +248,59 @@
|
|
|
157
248
|
|
|
158
249
|
### Patch Changes
|
|
159
250
|
|
|
160
|
-
-
|
|
251
|
+
- map: the style's 3D buildings have softened corners, rounded over the last metre of their walls, and the new `buildings3D.roundedCornerDistanceMeters` knob of `StylingFoundationsModule` sets how far the rounding reaches ([#2697](https://github.com/tomtom-internal/maps-sdk-js/pull/2697))
|
|
161
252
|
|
|
162
253
|
- map: `0` gives the sharp corners back, and a few metres rounds the buildings. A style that sets its own `fill-extrusion-rounded-corner-distance` keeps it
|
|
163
254
|
- examples: `map-styling-playground` adds a 3D buildings section with the knob
|
|
164
255
|
|
|
165
|
-
-
|
|
256
|
+
- core: `aggregateIntoCells` groups your points into hexagons, squares or your own polygons, such as districts, and gives each cell the median, mean, count, sum, min or max of a value, as GeoJSON polygons any map module draws ([#2768](https://github.com/tomtom-internal/maps-sdk-js/pull/2768))
|
|
166
257
|
|
|
167
258
|
- core: each point's grid cell comes from its coordinates, so large data sets stay fast, and the cells across the antimeridian stay side by side. `minCount` leaves out the cells with too few points, and `gridOrigin` keeps the cells in place while your points change
|
|
168
259
|
- map: `TrafficAreaAnalyticsModule` finds each tile's hexagon or square from its coordinates on the same cell grid, instead of testing it against every cell, and draws the same cells as before
|
|
169
260
|
- examples: `byod-geojson-cells-custom-module` colours Berlin by the median asking price per square metre in each hexagon or square
|
|
170
261
|
|
|
171
|
-
-
|
|
262
|
+
- core: `servesGeopoliticalView(view, api)` tells whether the SDK sends a geopolitical view to an API, so you can label a result with the view its request carried ([#2746](https://github.com/tomtom-internal/maps-sdk-js/pull/2746))
|
|
172
263
|
|
|
173
264
|
- core: `GeopoliticalViewAPI` names the APIs it answers for: `'mapTiles'`, `'search'`, `'placeDetails'`, `'reverseGeocoding'` and `'geocoding'`
|
|
174
265
|
- map, services: the map's tiles and every search, place details, reverse geocoding and geocoding request decide which view to send from it, so your label and the request always agree
|
|
175
266
|
- examples: `geopolitical-views-playground` labels each address with the view its reverse geocoding request carried
|
|
176
267
|
|
|
177
|
-
-
|
|
268
|
+
- core, services, map: exported classes keep their names in the minified bundles, so `SDKError.name` is `'SDKError'`, `TomTomConfig.name` is `'TomTomConfig'` and `RoutingModule.name` is `'RoutingModule'` ([#2709](https://github.com/tomtom-internal/maps-sdk-js/pull/2709))
|
|
178
269
|
|
|
179
|
-
-
|
|
270
|
+
- map: Add your own credits to the map's attribution with `attribution: { credits }` on `TomTomMap`. They show next to TomTom's and stay across style switches. ([#2747](https://github.com/tomtom-internal/maps-sdk-js/pull/2747))
|
|
180
271
|
|
|
181
272
|
- examples: `byod-geojson-heatmap-custom-module` credits its listed-buildings dataset in the map's attribution
|
|
182
273
|
|
|
183
|
-
-
|
|
274
|
+
- map: `setMapColors` paints city parks and sport grounds with `park` on every standard style, where `streetDark` and the mono styles gave them `artificial`'s colour ([#2727](https://github.com/tomtom-internal/maps-sdk-js/pull/2727))
|
|
184
275
|
|
|
185
276
|
- map: with `park` left unset, the parks keep the style's own colour whatever `artificial` is set to
|
|
186
277
|
|
|
187
|
-
-
|
|
278
|
+
- map: `TrafficIncidentDetailsModule` fades every incident outside the focus set with the new `highlight.unfocusedOpacityFactor`, so the incidents you focus are the ones that stand out ([#2754](https://github.com/tomtom-internal/maps-sdk-js/pull/2754))
|
|
188
279
|
|
|
189
280
|
- map: it fades their lines, icons and delay text while a focus is set, multiplies `line.opacity`, leaves a hovered or clicked incident at full strength and survives a style change. It's `1` by default, which leaves them as they are, and the `highlight.unfocusedOpacityFactor` knob sets it by id
|
|
190
281
|
- examples: `traffic-incident-details` fades the other incidents when you click one
|
|
191
282
|
|
|
192
|
-
-
|
|
283
|
+
- map: the map language labels the map in `zh-Hant`, `zh-Hans`, `ko-Latn-KR`, `ru-Latn-RU`, `ngt-Latn` and `nb-NO` too, where those showed the local name or the wrong script ([#2716](https://github.com/tomtom-internal/maps-sdk-js/pull/2716))
|
|
193
284
|
|
|
194
285
|
- examples: `map-language` offers Simplified and Traditional Chinese
|
|
195
286
|
|
|
196
|
-
-
|
|
287
|
+
- map: with a proxy `commonBaseURL`, the map sends credentials and TomTom headers only to URLs on the proxy's own origin and under its path, not to a host or path that only starts with the same text ([#2736](https://github.com/tomtom-internal/maps-sdk-js/pull/2736))
|
|
197
288
|
|
|
198
|
-
-
|
|
289
|
+
- core, services, map: the `license` field reads `SEE LICENSE IN LICENSE.txt`, the form npm and license scanners recognise, so they point to the package's own `LICENSE.txt` instead of reporting an unknown license ([#2742](https://github.com/tomtom-internal/maps-sdk-js/pull/2742))
|
|
199
290
|
|
|
200
|
-
-
|
|
291
|
+
- services: `getSearchSuggestions` validates its own parameters before sending either request, so an invalid `filters.boundingBox` rejects under that name rather than `geoBias`, and an invalid call costs no request ([#2714](https://github.com/tomtom-internal/maps-sdk-js/pull/2714))
|
|
201
292
|
|
|
202
|
-
-
|
|
293
|
+
- services: geometry search sends a closed polygon ring of 50 vertices whole and samples a longer one to 50 evenly spaced vertices, where a ring just over a multiple of 50 sent as few as 26 ([#2717](https://github.com/tomtom-internal/maps-sdk-js/pull/2717))
|
|
203
294
|
|
|
204
|
-
-
|
|
295
|
+
- services: `createLatestRequest({ supersede: 'on-answer' })` shows each answer of requests that start faster than they answer, such as a route re-planned during a drag, and never an older answer after a newer one ([#2766](https://github.com/tomtom-internal/maps-sdk-js/pull/2766))
|
|
205
296
|
|
|
206
|
-
-
|
|
297
|
+
- services: along-route `discoverPlaces` rejects a `maxDetourTimeSeconds` above `3600`, the service's maximum, in request validation rather than after a round trip ([#2705](https://github.com/tomtom-internal/maps-sdk-js/pull/2705))
|
|
207
298
|
|
|
208
299
|
## 1.0.0-rc.3
|
|
209
300
|
|
|
210
301
|
### Minor Changes
|
|
211
302
|
|
|
212
|
-
-
|
|
303
|
+
- **Breaking:** core: ten plain POI sub-categories have codes of their own, such as `SCHOOL_GENERIC`, so a search can ask for plain schools without childcare or driving schools ([#2674](https://github.com/tomtom-internal/maps-sdk-js/pull/2674))
|
|
213
304
|
|
|
214
305
|
- **Breaking:** core: a place in one of them reads as its own code rather than its parent's. Where you match `SCHOOL`, `THEATER`, `SPORTS_CENTER`, `MARINA`, `WEIGH_STATION`, `OPEN_CAR_PARKING_AREA`, `COLLEGE_OR_UNIVERSITY`, `CAR_WASH`, `AMUSEMENT_PARK` or `TRAFFIC_CONTROL_DEPARTMENT` in `poi.categories`, match its `_GENERIC` code too
|
|
215
306
|
- **Breaking:** core: a `Record<POICategory, …>` needs an entry for each of the ten codes
|
|
@@ -217,25 +308,25 @@
|
|
|
217
308
|
- services: a word no longer spends one of its three codes on a sub-category of another code it already has, so `'medical'` and `'care'` also find `EMERGENCY_MEDICAL_SERVICE`
|
|
218
309
|
- map: a place with one of the new codes takes its parent's base-map icon, pin and `categoryIcons` entry
|
|
219
310
|
|
|
220
|
-
-
|
|
311
|
+
- **Breaking:** map: a route's border crossings stand in a bubble above the route, the summary bubble's shape with its tail on the border, instead of a plaque on the route line; `countryCrossings.alignment` is removed with its knob and the `CountryCrossingAlignment` type, and crossings no longer carry a `bearing` ([#2659](https://github.com/tomtom-internal/maps-sdk-js/pull/2659))
|
|
221
312
|
|
|
222
313
|
- The default bubble takes the selected summary bubble's default colours, so it follows the light or dark style, `setMapColors()` and the `colors.label` and `colors.labelHalo` knobs: white on a light style, dark grey on a dark one, the map's label halo lightened under a theme. `countryCrossings.color` and `countryCrossings.label.color` still override either.
|
|
223
314
|
- A crossing hides where a waypoint pin, a summary bubble, another symbol drawn above it or a crossing close by would cover it, and shows again once there's room.
|
|
224
315
|
- Migration: drop `alignment` from `countryCrossings`. A bubble stays level with the screen.
|
|
225
316
|
- examples: `route-sections-playground` drops its crossing alignment control and gains a map look picker, light, dark and an amber theme, that the crossings follow.
|
|
226
317
|
|
|
227
|
-
-
|
|
318
|
+
- services: an instruction's `pathPointIndex` is the route point at its maneuver, rather than the first point a few metres short of it, so it usually falls inside the `lanes` section leading to the maneuver ([#2659](https://github.com/tomtom-internal/maps-sdk-js/pull/2659))
|
|
228
319
|
|
|
229
320
|
- **Breaking:** a `lanes` section's `properties` read `IS_MANEUVER`, as documented, where they passed the API's `isManeuver` through. Match `'IS_MANEUVER'` instead.
|
|
230
321
|
|
|
231
|
-
-
|
|
322
|
+
- **Breaking:** map: the types of place events, traffic features and waypoint ids match what the map hands your code ([#2686](https://github.com/tomtom-internal/maps-sdk-js/pull/2686))
|
|
232
323
|
|
|
233
324
|
- **Breaking:** map: under `pin-clustered`, a cluster no longer reaches the `events.places` handlers, which are typed `Place`, nor takes their hover and click states. The module-wide `events` receive it, with `cluster: true`, `cluster_id` and `point_count` in its properties
|
|
234
325
|
- **Breaking:** map: `roadSubcategory` is optional on `TrafficIncidentsModuleFeature`, and absent off `street` and `service` roads, as on `TrafficFlowModuleFeature`
|
|
235
326
|
- **Breaking:** map: a `TrafficFlowModuleFeature`'s geometry is a `LineString` or a `MultiLineString`, so check `geometry.type` before you read its coordinates
|
|
236
327
|
- **Breaking:** map: a waypoint keeps the id you give it, a number included, so `WaypointDisplayProps.id` is `string | number`
|
|
237
328
|
|
|
238
|
-
-
|
|
329
|
+
- **Breaking:** core: `getDistinctSections` finds the stretches each route has to itself, and `calculateRoute` returns them as `sections.distinct` whenever it returns two or more routes. `getImportantRoads` names the main roads a route takes, by road number ([#2650](https://github.com/tomtom-internal/maps-sdk-js/pull/2650))
|
|
239
330
|
|
|
240
331
|
- **Breaking:** core: `SectionType` and `sectionTypes` include `'distinct'`, which a request's `sectionTypes` can't ask for: the SDK adds it. A `Record<SectionType, …>` needs an entry for it
|
|
241
332
|
- **Breaking:** services: `InputSectionType` is only the types a request can ask for, so `leg` and `distinct` no longer compile in `sectionTypes`; type a list as `InputSectionTypes` rather than `SectionType[]`. `InputSectionTypes` is read-only, so build a list whole rather than `push` onto one. `inputSectionTypes`, `inputSectionTypesWithGuidance` and `sectionTypes` are read-only lists of their exact types
|
|
@@ -248,14 +339,14 @@
|
|
|
248
339
|
- examples: the `route-with-alternatives` and `react-route-planner` examples name the main roads of the stretches each route has to itself, and highlight a route the same way from the map or its card
|
|
249
340
|
- examples: each card in `route-with-alternatives` says what its route adds and avoids against the selected route, or against the usual route a toggle draws: ferries, car trains, tolls, closures, roadworks, traffic and unpaved roads
|
|
250
341
|
|
|
251
|
-
-
|
|
342
|
+
- **Breaking:** map: a route you select with a click takes the selected style alone, and a feature an `events.where()` predicate rejects stays inert, so narrowing a click to the alternatives keeps the selected route from reacting to the pointer ([#2675](https://github.com/tomtom-internal/maps-sdk-js/pull/2675))
|
|
252
343
|
|
|
253
344
|
- **Breaking:** map: an `events.where()` predicate decides on the top-most feature under the pointer. One it rejects keeps the map cursor and takes no hover or click highlight, and the handler doesn't run, even with a matching feature beneath
|
|
254
345
|
- map: `selectRoute` clears the `click` state of the route lines and summary bubbles, so a route you select with a click no longer stays highlighted
|
|
255
346
|
- map: a long hover comes on the feature under the pointer when it comes due, so a still pointer no longer long-hovers a route as it was before a click selected it, which drew its wider outline
|
|
256
347
|
- examples: `route-summary-bubbles-playground` selects only alternatives on click
|
|
257
348
|
|
|
258
|
-
-
|
|
349
|
+
- services: **Breaking:** the service types say what each call returns and takes, from reverse geocoding and geometry data to the errors, and a call can set its own `retry` ([#2688](https://github.com/tomtom-internal/maps-sdk-js/pull/2688))
|
|
259
350
|
- services: **Breaking:** `reverseGeocode` resolves a `ReverseGeocodingResponse`, a `Place` or, where nothing matches, the queried point without `properties`; checking `properties` narrows it to a `Place`
|
|
260
351
|
- services: **Breaking:** `geometryData` given a `Places` collection types each polygon's properties as `PlaceGeometryProps`, its place's properties plus `placeCoordinates`, and gives a polygon that matches no place `null` properties; a `Place[]` or geometry IDs return plain `PolygonFeatures`
|
|
261
352
|
- services: a service call's `retry` overrides the global one field by field, and `retry: undefined` turns retrying off for that call
|
|
@@ -268,7 +359,7 @@
|
|
|
268
359
|
|
|
269
360
|
### Patch Changes
|
|
270
361
|
|
|
271
|
-
-
|
|
362
|
+
- core: `languages` is a runtime export, and the distance formatter, bounding-box and route helpers handle their edge cases ([#2680](https://github.com/tomtom-internal/maps-sdk-js/pull/2680))
|
|
272
363
|
|
|
273
364
|
- core: `formatDistance` rounds below 10 m to one decimal, rounds a negative distance to the same magnitude as its positive, rounds feet and yards once rather than twice, and takes `undefined`
|
|
274
365
|
- core: `bboxCenter` centres a box that crosses the antimeridian, and `bboxFromGeoJSON` reads the 2D edges of a 3D `bbox`
|
|
@@ -278,17 +369,17 @@
|
|
|
278
369
|
- core: `getRouteProgressForSection` and `getSectionBBox` take any `RouteSpan`, such as the one `getSectionOverlap` returns
|
|
279
370
|
- core: `TomTomConfig.instance.reset()` restores the retry defaults, even after a caller edited `get().retry`
|
|
280
371
|
|
|
281
|
-
-
|
|
372
|
+
- core: `getInstructionLanes(route, instruction)` finds the `lanes` section leading to an instruction's maneuver, so a directions panel can show the lanes to take under each step ([#2659](https://github.com/tomtom-internal/maps-sdk-js/pull/2659))
|
|
282
373
|
|
|
283
374
|
- examples: `route-with-guidance` lists its instructions in a Directions panel, and both it and `react-route-planner` draw the lanes to take under each instruction that has them, as a small SVG sign of their own.
|
|
284
375
|
|
|
285
|
-
-
|
|
376
|
+
- map: images without a DOM, base-map places under offset POI icons and a module's `events.off()` handle their edge cases ([#2687](https://github.com/tomtom-internal/maps-sdk-js/pull/2687))
|
|
286
377
|
|
|
287
378
|
- map: a module given an SVG image where there is no DOM, as in a server render or a Node.js test, adds no image rather than throwing a `TypeError`
|
|
288
379
|
- map: a `base-map` place keeps the style's icon offset when `POIsModule` offsets its own `categoryIcons` entry for the same category, rather than drawing its sprite that many pixels away
|
|
289
380
|
- map: `events.off('shown-features')` stops compiling on a module with no `show` method, which never emits that event, as `events.on('shown-features', …)` already did
|
|
290
381
|
|
|
291
|
-
-
|
|
382
|
+
- map: geometries and reachable ranges can blend `fill.palette` from its first colour to its last, fade the bands away from the origin, and dash or dot their borders ([#2695](https://github.com/tomtom-internal/maps-sdk-js/pull/2695))
|
|
292
383
|
|
|
293
384
|
- map: `fill.paletteMode: 'ramp'` shades the features, or the bands, evenly from the palette's first colour to its last, blended in OKLCH. `'cycle'`, the default, takes the colours in turn as before
|
|
294
385
|
- map: `ReachableRangesModule`'s `fill.outermostOpacityFactor` multiplies the outermost band's fill opacity, and steps the bands between evenly from the innermost one. A lone range takes the factor
|
|
@@ -297,7 +388,7 @@
|
|
|
297
388
|
- map: `LinePattern` now types every line pattern; `SectionLinePattern` is deprecated in its favour
|
|
298
389
|
- examples: `geometry-config-playground` sets the border pattern, `multiple-geometries` swaps palettes and switches them between cycling and ramping, and `reachable-ranges-playground` offers two- and five-colour palettes to ramp
|
|
299
390
|
|
|
300
|
-
-
|
|
391
|
+
- map: light the 3D buildings with the `view.light` knobs of `StylingFoundationsModule`, kept across style switches ([#2698](https://github.com/tomtom-internal/maps-sdk-js/pull/2698))
|
|
301
392
|
|
|
302
393
|
- `view.light.direction`, `view.light.altitude`, `view.light.alignment`, `view.light.color` and `view.light.intensity` set MapLibre's light. A part you leave unset takes the style's own light, otherwise MapLibre's default
|
|
303
394
|
- `stylingFoundationsKnobKinds` gains `number`, the kind of the direction, altitude and intensity
|
|
@@ -305,9 +396,9 @@
|
|
|
305
396
|
- Once a light knob has been set, a clean `setStyle(…, { resetState: true })` draws the new style's light, rather than keeping the one the knobs had set
|
|
306
397
|
- examples: `map-styling-playground` shows the light knobs in a View light section
|
|
307
398
|
|
|
308
|
-
-
|
|
399
|
+
- map: road shields, POI icons and road patterns no longer go missing when the map's own sprite loads more slowly than the place pins' sprite ([#2658](https://github.com/tomtom-internal/maps-sdk-js/pull/2658))
|
|
309
400
|
|
|
310
|
-
-
|
|
401
|
+
- map: modules keep their state across style switches, routes draw with a traffic halo, and events, images and knobs handle their edge cases ([#2685](https://github.com/tomtom-internal/maps-sdk-js/pull/2685))
|
|
311
402
|
|
|
312
403
|
- map: `RoutingModule` draws its routes when `sections.traffic.style` is `'halo'`, at creation, after a style switch and when switched at runtime
|
|
313
404
|
- map: `routeIndex` on route sections, summary bubbles and border crossings is the route's position among the shown routes, so `selectRoute` and clicks work when only some routes are shown
|
|
@@ -355,11 +446,11 @@
|
|
|
355
446
|
- map: `CustomGeoJSONModule.applyConfig` throws a clear error before changing anything when the config names other sources or `sourceID`s than the module was created with, where it used to apply half of it
|
|
356
447
|
- map: area analytics hover and click highlights stay off the cells a layer filter hides
|
|
357
448
|
|
|
358
|
-
-
|
|
449
|
+
- core, services, map: the package now installs on Node.js 22 with any package manager ([#2692](https://github.com/tomtom-internal/maps-sdk-js/pull/2692))
|
|
359
450
|
|
|
360
451
|
- The `engines` field asks for Node.js 22 or newer instead of 24, and no longer names a pnpm version, so npm and pnpm stop warning about it on Node.js 22 and `engine-strict` installs succeed
|
|
361
452
|
|
|
362
|
-
-
|
|
453
|
+
- map: Fade a route, the traffic overlays, the incidents you show and your place icons, each with one opacity setting ([#2676](https://github.com/tomtom-internal/maps-sdk-js/pull/2676))
|
|
363
454
|
|
|
364
455
|
- `RoutingModule` `opacity` fades the route lines and their outlines, selected and deselected; sections keep `sections.<type>.opacity`
|
|
365
456
|
- `TrafficFlowModule` and `TrafficIncidentsModule` `opacityFactor` multiply the style's own line opacity, its zoom ramp kept; the incident icons stay opaque
|
|
@@ -368,9 +459,9 @@
|
|
|
368
459
|
- Each is a knob in its module's catalogue
|
|
369
460
|
- `route-styling-playground` fades the route through `opacity`, `places-customize-playground` gains an icon opacity slider, and `traffic-incident-focus` fades the flow through `opacityFactor`
|
|
370
461
|
|
|
371
|
-
-
|
|
462
|
+
- services: `calculateReachableRange` rejects an arrival time with a message that shows the `when` shape to use instead, `when: { option: 'departAt', date }` ([#2681](https://github.com/tomtom-internal/maps-sdk-js/pull/2681))
|
|
372
463
|
|
|
373
|
-
-
|
|
464
|
+
- map: Choose what a route's summary bubble says, its colour, typeface and the zooms it shows at, or write your own text per route ([#2642](https://github.com/tomtom-internal/maps-sdk-js/pull/2642))
|
|
374
465
|
|
|
375
466
|
- `summaryBubbles.fields` lists `duration`, `distance` and `trafficDelay` in the order shown; a bubble with nothing to say isn't drawn, so `['trafficDelay']` shows bubbles on delayed routes alone
|
|
376
467
|
- `summaryBubbles.minZoom`, `maxZoom`, `color` and `label` (`color`, `size`, `opacity`, `typeface`, `customTypeface`) are knobs in `routingKnobCatalogue`, all but `customTypeface`
|
|
@@ -378,14 +469,14 @@
|
|
|
378
469
|
- The bubbles now follow the map: a theme's `labelHalo` and `label` colours once one sets them, else dark bubbles and light text on a dark style
|
|
379
470
|
- New `route-summary-bubbles-playground` example, its panel built from the catalogue
|
|
380
471
|
|
|
381
|
-
-
|
|
472
|
+
- map: Summary bubbles keep clear of each other, show on the routes you choose and give each alternative's time against the selected route ([#2643](https://github.com/tomtom-internal/maps-sdk-js/pull/2643))
|
|
382
473
|
|
|
383
474
|
- Each bubble sits on a stretch of road its route has to itself, so routes sharing a motorway no longer hide each other's bubble, and it stays put when another route is selected
|
|
384
475
|
- `summaryBubbles.routes` shows the bubbles on `all` routes, the `selected` one alone or its `alternatives`
|
|
385
476
|
- The `durationDifference` field writes each other route's time against the selected one, such as `+6 min`, and `selectRoute` re-times the bubbles
|
|
386
477
|
- The `route-summary-bubbles-playground` example opens with bubbles timed against the selected route
|
|
387
478
|
|
|
388
|
-
-
|
|
479
|
+
- services: validation catches the inputs that used to crash or reach the API, and routing, search suggestions and the shared pipeline handle their edge cases ([#2684](https://github.com/tomtom-internal/maps-sdk-js/pull/2684))
|
|
389
480
|
|
|
390
481
|
- services: validation rejects, as `INVALID_REQUEST`, what used to throw a plain `Error` or come back as a 400: an empty Polygon or a Point in `geometrySearch`, an impossible date such as `'2024-02-30'` in `trafficAreaAnalytics`, more than 100 incident ids, a non-integer fuzzy level or a `minFuzzyLevel` above `maxFuzzyLevel`, a routing avoid area with no bounding box, a one-point path, a non-integer `maxAlternatives`, an along-route search route under two positions, a zero reachable-range budget, a non-integer or out-of-range `limit` or `heading`, and an undefined `commonBaseURL`
|
|
391
482
|
- services: validation also rejects an empty array as a route location, a stop's `candidateEntryPoints` off the globe or `preferredEntryPointIndex` past them, an empty `geometrySearch` geometry list or ring, `days` beside an `endDate` in `trafficAreaAnalytics`, and a bare bbox of other than four numbers; it now accepts a GeometryCollection where a bounding box is read, bare or inside a Feature or FeatureCollection, and the documented `weightKG: 0`
|
|
@@ -407,14 +498,14 @@
|
|
|
407
498
|
- services: `VehicleModel` and `VehicleDimensions` are exported
|
|
408
499
|
- core: `TomTomConfig.instance.put` drops `undefined` retry fields rather than storing them over the defaults
|
|
409
500
|
|
|
410
|
-
-
|
|
501
|
+
- core, services, map: an app now bundles only the SDK code its imports use, so most single imports come out far smaller ([#2690](https://github.com/tomtom-internal/maps-sdk-js/pull/2690))
|
|
411
502
|
|
|
412
503
|
- core: importing one helper, such as `generateId`, bundles under 1 KB minified instead of about 30 KB with lodash
|
|
413
504
|
- services: `geocode` bundles about 14 KB minified instead of 68 KB, and `calculateRoute` 32 KB instead of 86 KB, with lodash
|
|
414
505
|
- map: `TomTomMap` bundles about 44 KB minified on top of MapLibre instead of 123 KB, with lodash
|
|
415
506
|
- core, services, map: the package declares `sideEffects: false`, so bundlers drop the modules an app doesn't import
|
|
416
507
|
|
|
417
|
-
-
|
|
508
|
+
- map: a route's speed limit signs draw from zoom 12.5 by default instead of 11, two and a half zooms after the tunnel and closed-road signs, so they no longer crowd the overview of a route; `sections.speedLimit.sign.minZoom` still sets it, in steps of half a zoom in `routingKnobCatalogue` ([#2700](https://github.com/tomtom-internal/maps-sdk-js/pull/2700))
|
|
418
509
|
|
|
419
510
|
- examples: `route-speed-signs` sets `sign.minZoom` to 10, so its tiles post the signs on a whole route; `route-sections-playground` moves its `sign.minZoom` slider by half a zoom
|
|
420
511
|
|
|
@@ -422,7 +513,7 @@
|
|
|
422
513
|
|
|
423
514
|
### Minor Changes
|
|
424
515
|
|
|
425
|
-
-
|
|
516
|
+
- **Breaking:** map: a knob id is the path of its setting in the configuration on every module, and `setKnobs` sets several knobs in one checked change ([#2548](https://github.com/tomtom-internal/maps-sdk-js/pull/2548))
|
|
426
517
|
- map: `setKnobs(module, catalogue, values)` checks every value against its knob, then applies them all in one change and one `config-change`. If it refuses one value, it sets none. `KnobValues<CONFIG, ID>` types the values by id
|
|
427
518
|
- map: `StylingFoundationsModuleConfig` nests each setting along its id, as every other module does: `{ labels: { sizeFactor: 1.2 } }` instead of `{ 'labels.sizeFactor': 1.2 }`. `setKnob`, `setKnobs`, `getKnob`, `resetKnob` and `MapPresetSettings` keep the ids
|
|
428
519
|
- map: `StylingFoundationsModule`'s `updateConfig` merges one level deep, as on every module, so `updateConfig({ colors: { water } })` replaces the colours set before. Set a single colour with `setKnob`. Its `applyConfig` and `updateConfig` no longer check values at run time, as on every module. `setKnob` and `setKnobs` do
|
|
@@ -433,19 +524,19 @@
|
|
|
433
524
|
|
|
434
525
|
### Patch Changes
|
|
435
526
|
|
|
436
|
-
-
|
|
527
|
+
- map: `TrafficAreaAnalyticsModule` metric filters no longer make MapLibre validate the whole style on each change ([#2601](https://github.com/tomtom-internal/maps-sdk-js/pull/2601))
|
|
437
528
|
|
|
438
|
-
-
|
|
529
|
+
- map: a traffic flow section at a standstill reports `absoluteSpeed: 0` from `TrafficFlowModule.getRenderedFeatures()` and its events, instead of leaving it `undefined` ([#2603](https://github.com/tomtom-internal/maps-sdk-js/pull/2603))
|
|
439
530
|
|
|
440
|
-
-
|
|
531
|
+
- license: the privacy clause of `LICENSE.txt` now links the TomTom Privacy Policy, https://www.tomtom.com/privacy/ ([#2590](https://github.com/tomtom-internal/maps-sdk-js/pull/2590))
|
|
441
532
|
|
|
442
|
-
-
|
|
533
|
+
- map: The map fills its container from the first frame on pages whose scrollbars take up layout space, as on Windows ([#2547](https://github.com/tomtom-internal/maps-sdk-js/pull/2547))
|
|
443
534
|
- If the page didn't import the MapLibre CSS, the canvas could stay about one scrollbar width short on the right and bottom until the window was resized
|
|
444
535
|
|
|
445
|
-
-
|
|
536
|
+
- map: a knob or config change on a data-owned module writes only the layer properties whose value changes, so a value set on its layers with `mapLibreMap` stays until a change sets that property ([#2535](https://github.com/tomtom-internal/maps-sdk-js/pull/2535))
|
|
446
537
|
- map: changing a `GeometriesModule`'s `line.color` keeps a fill opacity or label size set on its layers, and the same holds for routes, places, reachable ranges, custom GeoJSON, traffic incident details and area analytics
|
|
447
538
|
|
|
448
|
-
-
|
|
539
|
+
- map: Set every label on the map in one typeface, from the style's serif and italic faces or your own font files, and give the labels of a route, places or geometries one of their own ([#2630](https://github.com/tomtom-internal/maps-sdk-js/pull/2630))
|
|
449
540
|
|
|
450
541
|
- The `labels.typeface` knob of `StylingFoundationsModule` takes `sans`, `sans-italic`, `serif` or `serif-italic` (`mapTypefaces`), each label keeping its weight
|
|
451
542
|
- `labels.customTypeface` takes your own font file URLs per weight (`CustomTypeface`), which the map downloads itself; characters outside their range are drawn in the style's Noto face
|
|
@@ -457,12 +548,12 @@
|
|
|
457
548
|
- `map-styling-playground` shows the typefaces in its Labels section, beside a route, museums and a district, and its sections now collapse
|
|
458
549
|
- `themed-map` sets its labels in Fraunces from the first frame
|
|
459
550
|
|
|
460
|
-
-
|
|
551
|
+
- map: `RoutingModule`, `PlacesModule`, `CustomGeoJSONModule` and `TrafficIncidentDetailsModule` keep their events and `sourceAndLayerIDs` in step with the layers a later config change adds or removes ([#2325](https://github.com/tomtom-internal/maps-sdk-js/pull/2325))
|
|
461
552
|
- A removed layer, such as a section icon, an `additional` layer, a custom source's layer or the incident highlight halo, used to stop hover and click for every module on the map. An added layer got no events and was missing from `sourceAndLayerIDs`
|
|
462
553
|
|
|
463
|
-
-
|
|
554
|
+
- map: `POIsModule`'s `filters.categories` narrows the micro markers too, so the dots of filtered-out categories no longer show from zoom 15.5, nor come back from `getRenderedFeatures()` ([#2600](https://github.com/tomtom-internal/maps-sdk-js/pull/2600))
|
|
464
555
|
|
|
465
|
-
-
|
|
556
|
+
- map: `RoutingModule.setSectionFocus` rings any section or leg of the shown routes, so your UI can point at the stretch it describes ([#2635](https://github.com/tomtom-internal/maps-sdk-js/pull/2635))
|
|
466
557
|
|
|
467
558
|
- The ring outlines the route clear of its hovered outline and section halos rather than covering them, black on a light style and white on a dark one, as the traffic incident highlight does
|
|
468
559
|
- `highlight.section.outline.color` and `highlight.section.outline.widthFactor` restyle it, as config or as routing knobs
|
|
@@ -470,46 +561,46 @@
|
|
|
470
561
|
- examples: `route-leg-options-playground` rings the leg you point at or focus in its panel
|
|
471
562
|
- examples: `route-styling-playground` rings the route's toll roads, with a colour and a width control for the ring
|
|
472
563
|
|
|
473
|
-
-
|
|
564
|
+
- map: the `maplibre-gl` peer dependency moves up to `^6.13.0` ([#2627](https://github.com/tomtom-internal/maps-sdk-js/pull/2627))
|
|
474
565
|
|
|
475
|
-
-
|
|
566
|
+
- map: a route's speed limit signs draw from zoom 11 by default, one zoom after the tunnel and closed-road signs, so they no longer crowd the overview of a route; `sections.speedLimit.sign.minZoom` still sets it ([#2625](https://github.com/tomtom-internal/maps-sdk-js/pull/2625))
|
|
476
567
|
|
|
477
|
-
-
|
|
568
|
+
- map: a `TerrainModule` change that leaves the 3D surface as it was, such as a hillshade knob, no longer makes MapLibre rebuild the terrain ([#2528](https://github.com/tomtom-internal/maps-sdk-js/pull/2528))
|
|
478
569
|
|
|
479
|
-
-
|
|
570
|
+
- tests: each package's unit test run now fails when its coverage drops below the goals in `TESTING.md` ([#2614](https://github.com/tomtom-internal/maps-sdk-js/pull/2614))
|
|
480
571
|
|
|
481
572
|
## 1.0.0-rc.1
|
|
482
573
|
|
|
483
574
|
### Patch Changes
|
|
484
575
|
|
|
485
|
-
-
|
|
576
|
+
- `npm install @tomtom-org/maps-sdk` installs the 1.0.0 release candidate, with no `@rc` needed, and the npm page shows its README ([#2517](https://github.com/tomtom-internal/maps-sdk-js/pull/2517))
|
|
486
577
|
|
|
487
578
|
## 1.0.0-rc.0
|
|
488
579
|
|
|
489
580
|
### Major Changes
|
|
490
581
|
|
|
491
|
-
-
|
|
582
|
+
- core, services, map: 1.0.0, the first stable release of the SDK. The *Upgrading to 1.0 from a 0.x release* guide lists every change to apply from a 0.x release. ([#2482](https://github.com/tomtom-internal/maps-sdk-js/pull/2482))
|
|
492
583
|
|
|
493
584
|
### Minor Changes
|
|
494
585
|
|
|
495
|
-
-
|
|
586
|
+
- **Breaking:** core, services, map: the error codes take the TomTom Navigation SDK's names: `API_KEY_REJECTED` is `INVALID_CREDENTIALS`, `SERVICE_UNAVAILABLE` is `LIVE_SERVICE_NOT_AVAILABLE`, `NETWORK_ERROR` is `NETWORK_NOT_AVAILABLE` and `UNEXPECTED` is `INTERNAL` ([#2490](https://github.com/tomtom-internal/maps-sdk-js/pull/2490))
|
|
496
587
|
**Breaking:** core, services, map: a `403` is `INSUFFICIENT_PERMISSIONS`, a valid key not allowed the request, and `INVALID_CREDENTIALS` is a `401` only, a key the API does not know
|
|
497
588
|
- services, map: `SDKError.canRetry` and `TomTomMapError.canRetry` are `true` for `RATE_LIMITED`, `LIVE_SERVICE_NOT_AVAILABLE` and `NETWORK_NOT_AVAILABLE`, the failures that clear on their own
|
|
498
589
|
- services: a `403` keeps the API's message, and `SDKServiceError.apiErrorCode` holds the API's own code: `'Forbidden'` when the API is not enabled for the key, `'InvalidReferer'` when its domain restriction refused the page
|
|
499
590
|
- services: `calculateReachableRange` and `calculateReachableRanges`, in Private Preview, name the access a key lacks, and link the Private Preview terms, in the message; the access is also in `SDKServiceError.privatePreviewAccess`, `{ product, requestAccessURL }`
|
|
500
591
|
- map: a style, tile, sprite or glyph answered `403` reaches the error handlers as `INSUFFICIENT_PERMISSIONS`
|
|
501
592
|
|
|
502
|
-
-
|
|
593
|
+
- **Breaking:** map: the sky, space, incident delay and hillshade knobs are named as every other knob is: a part's settings sit under it, and no name repeats its parent ([#2512](https://github.com/tomtom-internal/maps-sdk-js/pull/2512))
|
|
503
594
|
- map: `StylingFoundationsModule` knob ids `view.sky`, `view.skyColor`, `view.horizonColor` and `view.spaceColor` are `view.sky.visible`, `view.sky.color`, `view.sky.horizonColor` and `view.space.color`, in `styleColorKnobIds`, `getStyleColor` and map presets too
|
|
504
595
|
- map: `TrafficIncidentsModule` `filters: { delays: { mustHaveDelay, minDelayMinutes } }` is `filters: { delays: { required, minMinutes } }`, and the knob ids follow
|
|
505
596
|
- map: `TerrainModule` `hillshade: { lightDirection, exaggeration, shadowColor, highlightColor, accentColor }` is `hillshade: { light: { direction }, intensity, colors: { shaded, lit, steep } }`, and the knob ids follow, in `styleColorKnobIds` and `getStyleColor` too; `exaggeration` is now only the raised surface's vertical scale
|
|
506
597
|
- agent-toolkit: `setMapStyling`'s globe example sets `view.sky.visible`
|
|
507
598
|
|
|
508
|
-
-
|
|
599
|
+
- **Breaking:** map: `PlacesKnob` and the traffic knob types list only the kinds their catalogues hold, so a `switch` over their `kind` drops the cases no entry reaches ([#2485](https://github.com/tomtom-internal/maps-sdk-js/pull/2485))
|
|
509
600
|
- `PlacesKnob` no longer includes `text`
|
|
510
601
|
- `TrafficFlowKnob`, `TrafficIncidentsKnob`, `TrafficIncidentDetailsKnob` and `TrafficAreaAnalyticsKnob` no longer include `image`
|
|
511
602
|
|
|
512
|
-
-
|
|
603
|
+
- **Breaking:** map: the last config properties and knob ids off the shared vocabulary follow it: a size preset is a `*Preset`, a fill style sits under `fill`, and a unit is named once ([#2505](https://github.com/tomtom-internal/maps-sdk-js/pull/2505))
|
|
513
604
|
- map: `GeometriesModule` and `ReachableRangesModule` take `fill: { style }` instead of `fillStyle`, and `TrafficAreaAnalyticsModule` `regionPolygon: { fill: { style } }` instead of `regionPolygon.fillStyle`; a feature's `properties.fillStyle` stays
|
|
514
605
|
- map: `RoutingModule` `width`, `sections.<type>.width` and `waypoints.size` are `widthPreset`, `sections.<type>.widthPreset` and `waypoints.sizePreset`
|
|
515
606
|
- map: `PlacesModule` `cluster.source` takes `radius`, `maxZoom`, `minPoints` and `properties` instead of MapLibre's `clusterRadius`, `clusterMaxZoom`, `clusterMinPoints` and `clusterProperties`, typed by `PlacesClusterSourceConfig`
|
|
@@ -518,12 +609,12 @@
|
|
|
518
609
|
- map: each renamed property's knob id follows it
|
|
519
610
|
- agent-toolkit: the tools keep their parameters, and the plugin needs SDK 1.0.0-rc.0
|
|
520
611
|
|
|
521
|
-
-
|
|
612
|
+
- **Breaking:** map: the map loads TomTom standard styles only, so a custom style URL or style JSON no longer loads ([#2489](https://github.com/tomtom-internal/maps-sdk-js/pull/2489))
|
|
522
613
|
- `StyleInput` no longer takes `{ type: 'custom', url }` or `{ type: 'custom', json }`, and `CustomStyle` and `CustomStyleSource` are no longer exported
|
|
523
614
|
- `lightDarkTheme` is gone with them: `map.styleLightDarkTheme` follows from the standard style ID
|
|
524
615
|
- Restyle a standard style at runtime with `StylingFoundationsModule` and `setMapColors` instead
|
|
525
616
|
|
|
526
|
-
-
|
|
617
|
+
- **Breaking:** core, services, map: the SDK no longer offers real-time EV charging availability, nor routes and reachable ranges planned on a vehicle consumption model; search results keep their static EV station data ([#2495](https://github.com/tomtom-internal/maps-sdk-js/pull/2495))
|
|
527
618
|
- services: `evChargingStationsAvailability`, `getPlacesWithEVAvailability`, `getPlaceWithEVAvailability` and `hasChargingAvailability` are removed
|
|
528
619
|
- services: long-distance EV routing is removed: `vehicle.preferences`, `chargingStopsStrategy` and `chargingStopsStrategies`
|
|
529
620
|
- services: `vehicle` takes `model.dimensions.weightKG`, `state.heading` and `restrictions` only: `engineType`, `model.engine`, `model.variantId` and the charge and fuel state are removed, with the electric, combustion and generic vehicle types
|
|
@@ -534,23 +625,23 @@
|
|
|
534
625
|
|
|
535
626
|
The *Upgrading to 1.0 from a 0.x release* guide lists every removed name.
|
|
536
627
|
|
|
537
|
-
-
|
|
628
|
+
- **Breaking:** map: each standard style ID is the Orbis style it loads, in camelCase ([#2507](https://github.com/tomtom-internal/maps-sdk-js/pull/2507))
|
|
538
629
|
- map: `standardLight`, `standardDark`, `drivingLight`, `drivingDark` and `satellite` are `streetLight`, `streetDark`, `streetLightDriving`, `streetDarkDriving` and `streetSatellite`; `monoLight` and `monoDark` stay
|
|
539
630
|
- agent-toolkit: `setMapStandardStyle` takes the new IDs, `resetState` reverts to `streetLight`, and the plugin needs SDK 1.0.0-rc.0
|
|
540
631
|
- map-theme, landmarks-3d: their docs name the new IDs
|
|
541
632
|
|
|
542
633
|
### Patch Changes
|
|
543
634
|
|
|
544
|
-
-
|
|
635
|
+
- map: the `maplibre-gl` peer dependency moves up to `^6.12.0` ([#2500](https://github.com/tomtom-internal/maps-sdk-js/pull/2500))
|
|
545
636
|
|
|
546
|
-
-
|
|
637
|
+
- core, services, map: the package ships without source maps, so a stack trace through the SDK points into its minified bundles, which keep their function names ([#2506](https://github.com/tomtom-internal/maps-sdk-js/pull/2506))
|
|
547
638
|
- An app's own source maps still lead a trace to the SDK's frames (`map/dist/map.es.js:1:84523`); share such a trace in a report and TomTom maps it back to the source
|
|
548
639
|
|
|
549
|
-
-
|
|
640
|
+
- map: `TerrainModule` sets the hillshade light's height and what its direction turns with, and the `multidirectional` method fans its four lights around the light's direction ([#2505](https://github.com/tomtom-internal/maps-sdk-js/pull/2505))
|
|
550
641
|
- map: `hillshade.light.altitude`, in degrees above the horizon, and `hillshade.light.alignment`, `viewport` or `map` (`hillshadeLightAlignments`), in the config and as `terrainKnobCatalogue` knobs
|
|
551
642
|
- map: with `method: 'multidirectional'`, `hillshade.light.direction` is the centre of four lights spread over 135°
|
|
552
643
|
|
|
553
|
-
-
|
|
644
|
+
- map: `TrafficIncidentsModule` can show planned incidents, and its incident descriptions follow the map language ([#2503](https://github.com/tomtom-internal/maps-sdk-js/pull/2503))
|
|
554
645
|
|
|
555
646
|
- `timeValidity: ['present', 'future']` brings scheduled roadworks and closures in next to the incidents under way, also as the `timeValidity` knob
|
|
556
647
|
- `description` is in the map language, or the nearest one the traffic service has (`pt-PT` for `pt-BR`), else English; `map.setLanguage` reloads the incident tiles when that changes
|
|
@@ -560,49 +651,49 @@
|
|
|
560
651
|
|
|
561
652
|
### Minor Changes
|
|
562
653
|
|
|
563
|
-
-
|
|
654
|
+
- **Breaking:** map: CustomGeoJSONModule places its layers with `beforeLayerConfig`, as every other module does, and can still put a layer below any layer outside the style ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
564
655
|
- map: a layer's `beforeID: mapStyleLayerIDs.lowestLabel` is `beforeLayerConfig: 'lowestLabel'`; `beforeLayerConfig: { layerID }` goes below another layer, such as one of this or another module's
|
|
565
656
|
- map: `beforeLayerConfig` on the module places every layer that sets none, `'top'` by default
|
|
566
657
|
- agent-toolkit: `setByodLayers` keeps its `beforeID` parameter and needs SDK 0.64.0
|
|
567
658
|
|
|
568
|
-
-
|
|
659
|
+
- **Breaking:** map: the event-state methods are `setEventState`, `clearEventState` and `clearEventStates`, and the style-owned modules' `getShown()` is `getRenderedFeatures()` ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
569
660
|
- map: `putEventState`, `cleanEventState` and `cleanEventStates` are renamed on every data-owned module and its named scopes; `PutEventStateOptions`, `CleanEventStateOptions` and `CleanEventStatesOptions` are `SetEventStateOptions`, `ClearEventStateOptions` and `ClearEventStatesOptions`
|
|
570
661
|
- map: `POIsModule`, `TrafficFlowModule` and `TrafficIncidentsModule` `getShown()` is `getRenderedFeatures()`, what their tiles render in view; the data-owned modules keep `getShown()`, the data `show` was given
|
|
571
662
|
|
|
572
|
-
-
|
|
663
|
+
- **Breaking:** map: every module's `highlight` names the part it changes, then the property, so the hovered and clicked look reads the same across modules ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
573
664
|
- RoutingModule: `highlight: { outlineWidthFactor }` is `highlight: { outline: { widthFactor } }`, knob id `highlight.outline.widthFactor`
|
|
574
665
|
- GeometriesModule and ReachableRangesModule: `highlight: { fillOpacityFactor, lineWidthFactor }` is `highlight: { fill: { opacityFactor }, line: { widthFactor } }`, knob ids `highlight.fill.opacityFactor` and `highlight.line.widthFactor`
|
|
575
666
|
- TrafficIncidentDetailsModule: `highlight: { outlineColor, widthFactor }` is `highlight: { outline: { color }, line: { widthFactor } }`, knob ids `highlight.outline.color` and `highlight.line.widthFactor`
|
|
576
667
|
|
|
577
|
-
-
|
|
668
|
+
- **Breaking:** services, map: a `commonBaseURL` on `http:` is refused unless it is a loopback address (`localhost`, `127.0.0.0/8`, `[::1]`), so the API key never travels in the clear ([#2480](https://github.com/tomtom-internal/maps-sdk-js/pull/2480))
|
|
578
669
|
- services: such a call rejects with an `SDKError` coded `INSECURE_BASE_URL` before any request, even with `validateRequest: false`
|
|
579
670
|
- map: the `TomTomMap` constructor throws a `TomTomMapError` coded `INSECURE_BASE_URL`
|
|
580
671
|
- a relative base URL, such as `/api`, still follows the page
|
|
581
672
|
|
|
582
|
-
-
|
|
673
|
+
- **Breaking:** map, services: internals that were exported without documentation are no longer exported ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
583
674
|
- map: `EventsProxy`, `sharedInstance`, `TomTomMapSource`, `InternalTomTomMapParams`, `poiLayerIDs`, `buildRoutingLayers` and `ROUTE_LINE_OUTLINE_COLOR`, whose value the upgrade guide gives
|
|
584
675
|
- services: the geometry data wire-format types `GeometryDataResponseAPI` and `AdditionalDataAPI`
|
|
585
676
|
- flyover: the arrow marker keeps its default fill, now defined in the plugin rather than imported from the SDK
|
|
586
677
|
|
|
587
|
-
-
|
|
678
|
+
- **Breaking:** map: a shape's edge is its outline and a label's is its halo, in every module ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
588
679
|
- map: the map colour `labelOutline` is `labelHalo`, knob id `colors.labelHalo`
|
|
589
680
|
- map: PlacesModule `cluster.badge.strokeColor` and `strokeWidth` are `outlineColor` and `outlineWidth`, knob ids `cluster.badge.outlineColor` and `cluster.badge.outlineWidth`
|
|
590
681
|
- map-theme: `deriveMapColors`, `deriveMapColorsFromCss` and `deriveMapColorsFromImage` return `labelHalo` in place of `labelOutline`, and need SDK 0.64.0
|
|
591
682
|
|
|
592
|
-
-
|
|
683
|
+
- **Breaking:** map: ReachableRangesModule's border labels are `lineLabel`, as GeometriesModule names the labels along a line ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
593
684
|
- `label` is `lineLabel`, its knob ids `lineLabel.*`, and `ReachableRangeLabelConfig` is `ReachableRangeLineLabelConfig`
|
|
594
685
|
|
|
595
|
-
-
|
|
686
|
+
- **Breaking:** services: `getSearchSuggestions` takes `limit` and `geoBias: { position }`, as the other searches name them ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
596
687
|
- `getSearchSuggestions({ maxResults: 8, origin: [4.9, 52.37] })` is `getSearchSuggestions({ limit: 8, geoBias: { position: [4.9, 52.37] } })`; defaults and behaviour are unchanged
|
|
597
688
|
|
|
598
|
-
-
|
|
689
|
+
- **Breaking:** services, map: every SDK error names what went wrong in a `code`, one of `SDKErrorCode`, and carries the `sdkVersion` that raised it ([#2480](https://github.com/tomtom-internal/maps-sdk-js/pull/2480))
|
|
599
690
|
- core: `sdkErrorCodes` lists the codes: `INVALID_REQUEST`, `INSECURE_BASE_URL`, `API_KEY_REJECTED`, `NOT_FOUND`, `RATE_LIMITED`, `SERVICE_UNAVAILABLE`, `NETWORK_ERROR`, `ABORTED`, `WEBGL_UNSUPPORTED`, `WEBGL_CONTEXT_LOST`, `STYLE_LOAD_FAILED`, `UNEXPECTED`
|
|
600
691
|
- services: a request that gets no response rejects with `NETWORK_ERROR`, keeping what `fetch` threw as its `cause`
|
|
601
692
|
- **Breaking:** services: `SDKError`'s third constructor argument is an options object, `{ code, issues?, cause? }`, instead of the Zod issues
|
|
602
693
|
- map: `TomTomMap.addErrorHandler` receives every failure after construction as a `TomTomMapError`: a style, tile, sprite or glyph that failed to load, with its `status` and `sourceId`, and a lost WebGL context
|
|
603
694
|
- map: the `TomTomMap` constructor throws a `TomTomMapError` with `WEBGL_UNSUPPORTED` when the browser has no WebGL2, and `setStyle` rejects with one when the style fails to load
|
|
604
695
|
|
|
605
|
-
-
|
|
696
|
+
- **Breaking:** core, services, map: 37 internal helpers and types are no longer exported, or no longer in the published types ([#2480](https://github.com/tomtom-internal/maps-sdk-js/pull/2480))
|
|
606
697
|
- **Breaking:** core: `bboxExpandedWithPosition`, `bboxExpandedWithBBox`, `bboxExpandedWithGeoJSON`, `toPointFeature`
|
|
607
698
|
- **Breaking:** services: `ServiceTemplate`, `ParseResponseError`, `ParsedFetchResponse`, `RequestOptions`, `parseDefaultResponseError`, `buildResponseError`, `buildValidationError`
|
|
608
699
|
- **Breaking:** map: `renderedRefId`, `findFeatureByRefId`, `filterLayersBySources`, `withEventState`, `combineEventScopes`, `scopedLayerSpecs`, `reservedScopeNames`, `assertNoReservedScopeNames`, `getIconIDForPlace`, `getPOIGroupForPlace`, `getPOILayerCategoryForPlace`, `STOP_DISPLAY_LABEL`, `getStyleCategories`
|
|
@@ -610,19 +701,19 @@
|
|
|
610
701
|
|
|
611
702
|
### Patch Changes
|
|
612
703
|
|
|
613
|
-
-
|
|
704
|
+
- map: `MapLibreOptions` no longer accepts `transformRequest`, which the SDK sets itself, so a value that never took effect is now a type error ([#2479](https://github.com/tomtom-internal/maps-sdk-js/pull/2479))
|
|
614
705
|
- route TomTom requests through a proxy of your own with `commonBaseURL` instead
|
|
615
706
|
|
|
616
|
-
-
|
|
707
|
+
- map: a Vite build or dev server renders the map with no MapLibre worker setup: `TomTomMap` starts MapLibre's web worker from the copy Vite builds out of your own `maplibre-gl`, served from your app's origin ([#2475](https://github.com/tomtom-internal/maps-sdk-js/pull/2475))
|
|
617
708
|
- `registerMapLibreWorker: false` keeps MapLibre's own worker lookup
|
|
618
709
|
- MapLibre's own lookup also stays in place when you already called its `setWorkerUrl`, when MapLibre loads unbundled from a CDN, and under webpack's default classic workers
|
|
619
710
|
|
|
620
|
-
-
|
|
711
|
+
- core: a partial `retry` passed to `TomTomConfig.instance.put` takes its missing fields from the default retry config ([#2479](https://github.com/tomtom-internal/maps-sdk-js/pull/2479))
|
|
621
712
|
- `put({ retry: { timeoutMs: 10000 } })` no longer leaves `initialWaitMs` and `backoffFactor` undefined, which made `429` retries wait `NaN` milliseconds
|
|
622
713
|
|
|
623
|
-
-
|
|
714
|
+
- core: `sendUserAgentHeader: false` in the global config, or in a map's or a service call's params, stops requests from carrying the `tomtom-user-agent` header ([#2480](https://github.com/tomtom-internal/maps-sdk-js/pull/2480))
|
|
624
715
|
|
|
625
|
-
- [#2479](https://github.com/tomtom-internal/maps-sdk-js/pull/2479)
|
|
716
|
+
- services, map: import as values the catalogues that only exported their types ([#2479](https://github.com/tomtom-internal/maps-sdk-js/pull/2479))
|
|
626
717
|
- services: `arrivalSides`, `chargingStopsStrategies` and `functionalRoadClasses` from `@tomtom-org/maps-sdk/services`, as `routeTypes` already is
|
|
627
718
|
- map: `AREA_ANALYTICS_DEFAULTS` from `@tomtom-org/maps-sdk/map`
|
|
628
719
|
|
|
@@ -630,40 +721,40 @@
|
|
|
630
721
|
|
|
631
722
|
### Minor Changes
|
|
632
723
|
|
|
633
|
-
-
|
|
724
|
+
- **Breaking:** map: TrafficAreaAnalyticsModule names its settings as the other modules do, so its config and knob ids change ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
634
725
|
- `metricConfig` is `metrics`, and its knob ids `metrics.<metric>.*`
|
|
635
726
|
- a colour stops' `valueType` is `scaleMode`, taking the height's values: `'predefinedRange'`, `'currentRange'` and `'raw'`; `AreaAnalyticsValueType` is `AreaAnalyticsScaleMode`
|
|
636
727
|
- `regionPolygon` takes `fill: { opacity }`, `line: { opacity, width }` and `fillStyle: 'filled' | 'inverted'` in place of `fillOpacity`, `outlineOpacity`, `outlineWidth` and `inverted`
|
|
637
728
|
|
|
638
|
-
-
|
|
729
|
+
- **Breaking:** map: whole base-map layer groups are `BaseMapModule`'s alone; the StylingModule knobs `basemap.<group>`, `buildings.footprints`, `buildings.3d` and `roads.shields` are gone ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
639
730
|
- map: show or hide a group with `baseMap.setVisible(visible, { layerGroups: { show: 'only', values: ['buildings3D'] } })`, or `setKnob(baseMap, baseMapKnobCatalogue, 'groups.buildings3D.visible', true)`
|
|
640
731
|
- map: the `data-viz`, `night-driving` and `minimal` presets no longer show or hide the building groups and the road shields
|
|
641
732
|
- agent-toolkit: the `toggleTilesBaseMapLayerGroups` tool shows and hides whole groups, or the whole base map, and reports which groups are hidden; `setMapStyling` no longer takes the group knobs
|
|
642
733
|
|
|
643
|
-
-
|
|
734
|
+
- **Breaking:** map: TrafficFlowModule and TrafficIncidentsModule `filters` is one filter, its fields set directly, and `any` adds the further filters a feature may match instead: `filters: { any: [{ roadCategories }] }` becomes `filters: { roadCategories }`, and the knob ids drop `any.0` (`filters.roadCategories.values`). Flow's `showRoadClosures` is `roadClosures`. `TrafficFlowFilters` and `TrafficIncidentsFilters` are `FiltersWithAlternatives` of their one filter. BaseMapModule `layerGroups` take the `{ show: 'only' | 'all-except', values }` filter POIs and traffic use, instead of `{ mode: 'include' | 'exclude', names }`. ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
644
735
|
|
|
645
|
-
-
|
|
736
|
+
- map: **Breaking:** `GeometriesModule` takes MapLibre border overrides only through `layers.line` ([#2465](https://github.com/tomtom-internal/maps-sdk-js/pull/2465))
|
|
646
737
|
- **Breaking:** `line.layer` is removed; move its `paint` and `layout` to `layers: { line }`, which takes precedence over the curated `line` fields where `line.layer` sat under them
|
|
647
738
|
|
|
648
|
-
-
|
|
739
|
+
- **Breaking:** map: the TrafficIncidentDetailsModule `focus` setting is `highlight`, the look of a focused, hovered or clicked incident; `setFocus` and the `focused` state keep their names ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
649
740
|
- map: `IncidentFocusStyle` is `IncidentHighlightConfig`, the knob ids `focus.outlineColor` and `focus.widthFactor` are `highlight.outlineColor` and `highlight.widthFactor`
|
|
650
741
|
- map: the `layers.focusHalo` override is `layers.highlightHalo`, and the layer id suffix `-focus-halo` is `-highlight-halo`
|
|
651
742
|
|
|
652
|
-
-
|
|
743
|
+
- **Breaking:** map: `setKnob`, `getKnob` and `resetKnob` set, read and reset a knob by id on every module, `StylingFoundationsModule` included, which loses its own `set`, `get` and `reset` ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
653
744
|
- `styling.set(id, value)` is `setKnob(styling, stylingFoundationsKnobCatalogue, id, value)`, `styling.get(id)` is `getKnob(styling, stylingFoundationsKnobCatalogue, id)`, `styling.reset(id)` is `resetKnob(styling, stylingFoundationsKnobCatalogue, id)`, and `styling.reset()` is `styling.resetConfig()`
|
|
654
745
|
- `getKnob(module, catalogue, id)` returns the value in force, or the catalogue default where the configuration sets none
|
|
655
746
|
- `resetKnob(module, catalogue, id)` drops the knob from the configuration, so a `setKnob` then a `resetKnob` leaves `getConfig()` as it was
|
|
656
747
|
- `KnobTarget` types what the three functions take, for a control panel written once for any module
|
|
657
748
|
|
|
658
|
-
-
|
|
749
|
+
- **Breaking:** map: a knob's range is read from its catalogue with `knobEntryOf(catalogue, id)`, and the `*_RANGE` constants that repeated it are no longer exported ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
659
750
|
- `ROUTE_WIDTH_FACTOR_RANGE`, `ROUTE_WAYPOINT_SIZE_FACTOR_RANGE`, `ROUTE_WAYPOINT_HIGHLIGHT_SIZE_FACTOR_RANGE`, `SECTION_ICON_SIZE_FACTOR_RANGE` and `ROUTE_HIGHLIGHT_OUTLINE_WIDTH_FACTOR_RANGE` are `knobEntryOf(routingKnobCatalogue, id).range`
|
|
660
751
|
- `INCIDENT_FOCUS_WIDTH_FACTOR_RANGE` is `knobEntryOf(trafficIncidentDetailsKnobCatalogue, 'highlight.widthFactor').range`
|
|
661
752
|
- **Breaking:** the undocumented route layer colours, widths and size helpers, such as `ROUTE_LINE_FOREGROUND_COLOR` and `getWaypointIconSize`, are no longer exported; `SELECTED_ROUTE_FILTER` and `DESELECTED_ROUTE_FILTER` stay
|
|
662
753
|
- `knobEntryOf` throws an `Error` naming an id its catalogue lacks
|
|
663
754
|
|
|
664
|
-
-
|
|
755
|
+
- **Breaking:** map: every label names its content `title` and its look with the shared label fields, in a `label` object. PlacesModule `connections.label` takes `{ title, color, haloColor }` instead of a function beside `textColor` and `haloColor`, and the cluster badge's `textColor` and `textSize` move to `badge.label.color` and `badge.label.size`. RoutingModule `countryCrossings.textColor` is `countryCrossings.label.color`. GeometriesModule `label.text` and `lineLabel.text` are `title`. ReachableRangesModule `title` moves to `label.title`, and `palette` to `fill.palette`. The knob ids follow. ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
665
756
|
|
|
666
|
-
-
|
|
757
|
+
- **Breaking:** map: `StylingFoundationsModule` keeps the foundations of the look (label, symbol and road sizes, the map colours and the accent, projection and sky), and every other look knob moves to the module drawing those layers ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
667
758
|
- map: the POI knobs are `POIsModule`'s: `pois.sizeFactor`, `pois.minZoom` and `pois.zoomShift` are `sizeFactor`, `minZoom` and `zoomShift`; `pois.labelColor` and `pois.labelOutlineColor` are `label.color` and `label.haloColor`; `pois.microMarkers` is `microMarkers.visible`, in `poisKnobCatalogue` and `POIsModuleConfig`
|
|
668
759
|
- map: the traffic knobs are `TrafficFlowModule`'s and `TrafficIncidentsModule`'s: `traffic.flow.<level>Color` is `colors.<level>` (`colors.slow`, …), `traffic.incidents.<magnitude>Color` is `colors.<magnitude>`, and each module has its own `widthFactor`
|
|
669
760
|
- map: the hillshade knobs are `TerrainModule`'s, under the same `hillshade.*` ids in `terrainKnobCatalogue` and `TerrainModuleConfig`
|
|
@@ -671,54 +762,54 @@
|
|
|
671
762
|
- map: the knobs still compose across modules on one layer (`labels.sizeFactor` and the POIs' `sizeFactor` multiply on the POI labels) and survive a style switch
|
|
672
763
|
- map: `getStyleColor(map, id)` reads the colour a style colour knob is at by its map-wide id (`'traffic.incidents.colors.major'`, `'pois.label.color'`, `'colors.water'`), with `styleColorKnobIds` listing them; `StylingColorKnobId` is `StyleColorKnobId`, joined by `StyleKnobId` and `StyleKnobValueOf`
|
|
673
764
|
|
|
674
|
-
-
|
|
765
|
+
- **Breaking:** map: the undocumented internals `mapDisplayPoiCategoryMappings`, `toBaseMapPOICategory`, `toBaseMapPOIGroup`, `baseMapPOICategoryValues`, `sharedInstanceIfCreated` and `SymbolLayerSpecWithoutSource` are no longer exported; `MapStylePOICategory` stays ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
675
766
|
|
|
676
|
-
-
|
|
767
|
+
- **Breaking:** map: presets are the map's, not `StylingFoundationsModule`'s: `styling.applyPreset(id)` is `await applyMapPreset(map, id)`, which sets the StylingFoundations, BaseMap and POIs knobs each preset names ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
677
768
|
- map: `stylingPresetIds`, `stylingPresetCatalogue`, `StylingPresetId` and `StylingPreset` are `mapPresetIds`, `mapPresetCatalogue`, `MapPresetId` and `MapPreset`, with `MapPresetSettings` giving each module's values by its own catalogue ids
|
|
678
769
|
- map: `applyMapPreset` creates the modules the map lacks, takes `{ merge: true }` as before, and throws an `Error` for an unknown id
|
|
679
770
|
|
|
680
|
-
-
|
|
771
|
+
- **Breaking:** map: RoutingModule's `waypointSize` and `waypointSizeFactor` move into `waypoints` as `size` and `sizeFactor`, beside every other waypoint setting; the knob ids are `waypoints.size` and `waypoints.sizeFactor` ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
681
772
|
|
|
682
|
-
-
|
|
773
|
+
- **Breaking:** map: `StylingModule` is `StylingFoundationsModule`, the name of what it holds now that every other module styles its own layers ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
683
774
|
- map: its types and catalogue follow: `StylingFoundationsModuleConfig`, `StylingFoundationsEvents`, `StylingFoundationsKnob`, `StylingFoundationsKnobId`, `StylingFoundationsKnobKind`, `StylingFoundationsKnobRange`, `StylingFoundationsKnobValue`, `StylingFoundationsKnobValueOf`, `StylingFoundationsKnobAppliesTo`, `stylingFoundationsKnobCatalogue`, `stylingFoundationsKnobIds`, `stylingFoundationsKnobKinds` and `stylingFoundationsKnobAppliesTo`
|
|
684
775
|
- agent-toolkit: the base-map state's `getStylingModule()` is `getStylingFoundationsModule()`
|
|
685
776
|
|
|
686
|
-
-
|
|
777
|
+
- **Breaking:** map: `StylingSettings` is `StylingFoundationsModuleConfig`, the name every other module gives its configuration ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
687
778
|
|
|
688
|
-
-
|
|
779
|
+
- **Breaking:** map: every show-or-hide setting is a `visible` flag, so TerrainModule nests its settings and Places' EV availability drops `enabled` ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
689
780
|
- `TerrainModule` takes `{ hillshade: { visible }, elevation: { visible, exaggeration } }`; its knob ids are `hillshade.visible`, `elevation.visible` and `elevation.exaggeration`
|
|
690
781
|
- `terrain.setElevationEnabled` and `isElevationEnabled` are `setElevationVisible` and `isElevationVisible`
|
|
691
782
|
- `PlacesModule`'s `evAvailability.enabled` is `evAvailability.visible`, in the config and as a knob id
|
|
692
783
|
|
|
693
|
-
-
|
|
784
|
+
- map: `routingKnobCatalogue` publishes the rest of the waypoint label: `waypoints.label.size`, `waypoints.label.haloWidth`, `waypoints.label.opacity` and `waypoints.label.font`, so `RoutingKnob` takes the `enums` kind. Every module's label size and halo width knobs share one range, 6 to 48 and 0 to 10 pixels, widening the places ones. ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
694
785
|
|
|
695
786
|
### Patch Changes
|
|
696
787
|
|
|
697
|
-
-
|
|
788
|
+
- map: `TrafficAreaAnalyticsModule` colour stops given out of order or sharing a value still paint the cells ([#2461](https://github.com/tomtom-internal/maps-sdk-js/pull/2461))
|
|
698
789
|
- Each such ramp made MapLibre reject the layer's colour, as did any ramp under `relativeToActualRangePCT` once the loaded data had one value only
|
|
699
790
|
- Stops are sorted, and of stops sharing a value the last given wins
|
|
700
791
|
|
|
701
|
-
-
|
|
792
|
+
- Built on the refreshed toolchain (`vite` 8.3.2, `rolldown` 1.2.12, Biome 2.5.15); the runtime and peer dependencies are unchanged ([#2472](https://github.com/tomtom-internal/maps-sdk-js/pull/2472))
|
|
702
793
|
|
|
703
|
-
-
|
|
794
|
+
- map: every route section icon now wins its space over the map's labels by default, and the speed limit signs give way to all of them ([#2471](https://github.com/tomtom-internal/maps-sdk-js/pull/2471))
|
|
704
795
|
- map: the tunnel sign and the icons a generated section type asks for (`sections.<type>.icon`) sit above the map's labels, just under the other route icons, instead of under the labels
|
|
705
796
|
- map: under the default `sign.priority`, `belowRouteIcons`, the speed limit signs give way to every route icon, section icons included, and still take precedence over the map's labels
|
|
706
797
|
- map: the speed limit signs draw a tenth smaller, 0.45 to 0.63 from zoom 10 to 16, with their number scaled to match
|
|
707
798
|
|
|
708
|
-
-
|
|
799
|
+
- map: `sectionSupportsKnob(type, knob)` narrows `type` to `SectionTypeWithKnob<KNOB>`, the section types that take that knob, so a `` `sections.${type}.sign.minZoom` `` id built from it type-checks as a `RoutingKnobId` ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
709
800
|
|
|
710
|
-
-
|
|
801
|
+
- map: two `get()` calls at once on a style-owned module whose part the style lacks, such as `TrafficIncidentsModule`, add that part to the style once ([#2461](https://github.com/tomtom-internal/maps-sdk-js/pull/2461))
|
|
711
802
|
- Each call found the part missing while the first one's style was still loading, so the second asked for the part twice, which the style service rejects
|
|
712
803
|
|
|
713
804
|
## 0.62.3
|
|
714
805
|
|
|
715
806
|
### Patch Changes
|
|
716
807
|
|
|
717
|
-
-
|
|
808
|
+
- map: a module layer anchored below a layer the style lacks, such as `lowestBuilding` on Satellite, is drawn on top of the map instead of not at all ([#2454](https://github.com/tomtom-internal/maps-sdk-js/pull/2454))
|
|
718
809
|
- Traffic Area Analytics cells with such a `beforeLayerConfig`
|
|
719
810
|
- Custom GeoJSON layers with such a `beforeID`
|
|
720
811
|
|
|
721
|
-
-
|
|
812
|
+
- map: routes, places, geometries and every other data-owned module stay drawn through a `setStyle` that carries state, instead of disappearing for the first frames of the new style ([#2454](https://github.com/tomtom-internal/maps-sdk-js/pull/2454))
|
|
722
813
|
- Their layers are kept through the switch and take on the new style's look in place
|
|
723
814
|
- A clean switch (`resetState: true`) still removes them along with the old style
|
|
724
815
|
|
|
@@ -726,26 +817,26 @@
|
|
|
726
817
|
|
|
727
818
|
### Patch Changes
|
|
728
819
|
|
|
729
|
-
-
|
|
820
|
+
- map: `getShown()` on `TrafficIncidentsModule`, `TrafficFlowModule` and `POIsModule` leaves out what `setVisible(false)` just hid ([#2440](https://github.com/tomtom-internal/maps-sdk-js/pull/2440))
|
|
730
821
|
- MapLibre still returned a hidden layer's icons until its next symbol placement, a few frames later, so a `getShown()` right after hiding listed incidents or POIs no longer drawn
|
|
731
822
|
|
|
732
|
-
-
|
|
823
|
+
- map: override any MapLibre property of the layers `GeometriesModule`, `ReachableRangesModule`, `TrafficIncidentDetailsModule` and `TrafficAreaAnalyticsModule` draw, through a `layers` config merged over their defaults, as `PlacesModule` and `RoutingModule` already take ([#2451](https://github.com/tomtom-internal/maps-sdk-js/pull/2451))
|
|
733
824
|
- `styling.layers.query` takes the layers of the other style-owned modules as a `group`: `pois`, `trafficFlow`, `trafficIncidents` and `hillshade` (`styleModuleLayerGroupNames`)
|
|
734
825
|
- `styling.layers` and the styling knobs reach only the loaded style's own layers, never the layers a module adds on top of it
|
|
735
826
|
- `GeometriesModule`'s `line.layer` is deprecated in favour of `layers.line`, which takes precedence over the curated `line` fields instead of sitting under them
|
|
736
827
|
- `TrafficAreaAnalyticsModule` keeps the cells within both a metric filter's `min` and its `max`, where it kept the cells within either
|
|
737
828
|
|
|
738
|
-
-
|
|
829
|
+
- map: draw the map's own POIs of a category with an icon of your own, through `POIsModule`'s `icon.categoryIcons` ([#2442](https://github.com/tomtom-internal/maps-sdk-js/pull/2442))
|
|
739
830
|
- A `PlacesModule` `categoryIcons` entry also reaches the places of its map category: `RESTAURANT` reaches a searched `ITALIAN_RESTAURANT`, so one list restyles the map's POIs and the places you show alike
|
|
740
831
|
|
|
741
|
-
-
|
|
832
|
+
- core: the route progress helpers place distances and times between `progress` entries by the line's length, so a position stepped a fixed distance at a time moves at a steady speed ([#2449](https://github.com/tomtom-internal/maps-sdk-js/pull/2449))
|
|
742
833
|
- They shared the gap between two of the route's sparse entries by vertex count, so positions ran behind in bends, where vertices crowd, and ahead on straights. A fly-over along a mountain route sped up and slowed down by up to five times
|
|
743
834
|
- Covers `getCoordinateAtRouteProgress`, `calculateProgressAtRoutePoint`, `getRouteProgressBetween`, `getRouteProgressForSection` and `getProgressAtNearestRoutePoint`; on a winding route, values between entries can move by a couple of kilometres or minutes
|
|
744
835
|
|
|
745
|
-
-
|
|
836
|
+
- map: `StylingModule` knobs carried across `setStyle` land on the new style's first frame, instead of fading in from its own colours over the style's `transition` (300 ms by default) ([#2453](https://github.com/tomtom-internal/maps-sdk-js/pull/2453))
|
|
746
837
|
- Knobs set once the style has drawn keep the style's transition
|
|
747
838
|
|
|
748
|
-
-
|
|
839
|
+
- map: style a route's waypoint pins per role, letter or hide the stop numbers, set the labels and the hover growth, and give pins icons of your own or a POI category pin per stop. ([#2440](https://github.com/tomtom-internal/maps-sdk-js/pull/2440))
|
|
749
840
|
|
|
750
841
|
- `RoutingModuleConfig.waypoints` takes `icon.start`, `icon.middle` and `icon.finish` (a `style` and an `image` each, over `icon.style`), `icon.customIcons`, `icon.mapping` (the `IconMapping` places take), `stopNumbering` (`'numbers'`, `'letters'` or `'none'`), `label.visible`, `label.title` and `highlight.sizeFactor`.
|
|
751
842
|
- `routingKnobCatalogue` lists the new plain settings; `buildWaypointTitle` is exported, and handlers on `events.waypoints` receive the stop's mark as `stopDisplayLabel`.
|
|
@@ -759,7 +850,7 @@
|
|
|
759
850
|
|
|
760
851
|
### Patch Changes
|
|
761
852
|
|
|
762
|
-
-
|
|
853
|
+
- map: an icon a route posts where a section starts gives way to the waypoint icon on that point, instead of drawing flush against it ([#2439](https://github.com/tomtom-internal/maps-sdk-js/pull/2439))
|
|
763
854
|
- Covers the speed limit, tunnel and closed-to-vehicles signs, and the ferry, toll-road and traffic icons.
|
|
764
855
|
- The room follows the waypoint icon's `icon-anchor`, so a `layers.waypoints.routeWaypointSymbol` override is honoured.
|
|
765
856
|
|
|
@@ -767,7 +858,7 @@
|
|
|
767
858
|
|
|
768
859
|
### Minor Changes
|
|
769
860
|
|
|
770
|
-
-
|
|
861
|
+
- map: **Breaking:** `TrafficAreaAnalyticsModule` colours each metric from a named `palette` or its own `colorStops`, set with `setPalette` and `setColorStops`, and a raw height takes `metersPerUnit` ([#2425](https://github.com/tomtom-internal/maps-sdk-js/pull/2425))
|
|
771
862
|
|
|
772
863
|
- map: **Breaking:** `AreaAnalyticsColorTheme` is `AreaAnalyticsPalette`, and `areaAnalyticsPalettes` lists its names. Rename the type
|
|
773
864
|
- map: **Breaking:** `AreaAnalyticsMetricConfig.color` is gone: a palette name goes in `palette`, colour stops in `colorStops`, which wins when both are set, and with neither a metric draws `trafficLight`. Migrate `color: 'heat'` to `palette: 'heat'` and `color: { valueType, stops }` to `colorStops: { valueType, stops }`
|
|
@@ -777,20 +868,20 @@
|
|
|
777
868
|
- map: **Breaking:** the raw height's `scaleFactor` is `metersPerUnit`, the metres of height per unit of the metric. Migrate `setHeight({ scaleMode: 'raw', scaleFactor: 10 })` to `setHeight({ scaleMode: 'raw', metersPerUnit: 10 })`
|
|
778
869
|
- map: **Breaking:** in `trafficAreaAnalyticsKnobCatalogue`, `metricConfig.<metric>.color` is `metricConfig.<metric>.palette`, an `enum` knob over `areaAnalyticsPalettes` that defaults to `trafficLight`, and `metricConfig.<metric>.height.scaleFactor` is `metricConfig.<metric>.height.metersPerUnit`. Rename the ids
|
|
779
870
|
|
|
780
|
-
-
|
|
871
|
+
- **Breaking:** map: `TrafficIncidentsModule.isIconsVisible()` returns the incident icons setting, replacing `anyIconLayersVisible()`. ([#2422](https://github.com/tomtom-internal/maps-sdk-js/pull/2422))
|
|
781
872
|
|
|
782
873
|
- **Breaking:** map: `TrafficIncidentsModule.anyIconLayersVisible()` is removed. To read the icons setting, use `isIconsVisible()`; to read a layer itself, use `map.mapLibreMap.getLayoutProperty(layerId, 'visibility')`
|
|
783
874
|
- map: `TrafficIncidentsModule.isIconsVisible()` returns `icons.visible`, as the `icons.visible` knob reads, and `isVisible()` while it is unset: `true` for the icons-only `{ visible: false, icons: { visible: true } }`
|
|
784
875
|
- map: `TrafficIncidentsModule.setVisible()` clears `icons.visible` in a new configuration object, leaving the one `getConfig()`, a `config-change` handler or `TrafficIncidentsModule.get()` was given untouched
|
|
785
876
|
|
|
786
|
-
-
|
|
877
|
+
- map: Waypoint and place connection labels follow the map's light/dark theme like place and geometry labels, and take colour knobs of their own ([#2436](https://github.com/tomtom-internal/maps-sdk-js/pull/2436))
|
|
787
878
|
|
|
788
879
|
- `RoutingModule` waypoint labels draw dark grey text on a white halo on a light map and the two swapped on a dark one; `waypoints.label` takes a `LabelConfig`, and `waypoints.label.color` and `waypoints.label.haloColor` join `routingKnobCatalogue`
|
|
789
880
|
- `PlacesModule` connections take `connections.color`, `connections.textColor` and `connections.haloColor`, all three in `placesKnobCatalogue`
|
|
790
881
|
- On a dark map, connection labels and entry points take the same dark grey halo as place labels instead of a near-black one, and a connection label with a custom colour takes a lighter shade of it instead of a darker one
|
|
791
882
|
- Connection labels draw in the map's regular font; they named none, so the map fetched a font TomTom styles do not serve and drew them in a local browser font
|
|
792
883
|
|
|
793
|
-
- [#2431](https://github.com/tomtom-internal/maps-sdk-js/pull/2431)
|
|
884
|
+
- Breaking changes ([#2431](https://github.com/tomtom-internal/maps-sdk-js/pull/2431)):
|
|
794
885
|
- map: `TrafficIncidentOverlayModule` is `TrafficIncidentDetailsModule`, after the Traffic Incident Details service whose incidents it draws, and its config is `TrafficIncidentDetailsModuleConfig`; its sources and layers are suffixed `traffic-incident-details-N`, no longer `traffic-incident-overlay-N`
|
|
795
886
|
- map: `trafficIncidentOverlayKnobCatalogue`, `trafficIncidentOverlayKnobIds`, `TrafficIncidentOverlayKnob`, `TrafficIncidentOverlayKnobId` and `TrafficIncidentOverlayKnobValueOf` follow the module: `trafficIncidentDetailsKnobCatalogue`, `trafficIncidentDetailsKnobIds`, `TrafficIncidentDetailsKnob`, `TrafficIncidentDetailsKnobId`, `TrafficIncidentDetailsKnobValueOf`
|
|
796
887
|
- map: `StyleModule` is `StylePart` and `styleModules` is `styleParts`, so a part of the style no longer shares its name with the map modules: `include: StyleModule[]` → `include: StylePart[]`
|
|
@@ -798,7 +889,7 @@
|
|
|
798
889
|
- map: `TomTomMap.getStyle()` is `getStyleInput()`, as it returns the `StyleInput` the map was given and not the style specification MapLibre's `getStyle()` returns
|
|
799
890
|
- map: `POIsModule.getShown()` returns `{ pois }`, no longer `{ poi }`, and the module's source key is `pois` too
|
|
800
891
|
|
|
801
|
-
-
|
|
892
|
+
- **Breaking:** map: every module setting changes through `applyConfig`, `updateConfig` or `setKnob`; the setters that changed one setting are removed. ([#2429](https://github.com/tomtom-internal/maps-sdk-js/pull/2429))
|
|
802
893
|
|
|
803
894
|
- **Breaking:** map: `places.applyMarkerType(type)`, `applyIconConfig(icon)`, `applyLabelConfig(label)`, `applyExtraFeatureProps(props)` are removed: use `places.updateConfig({ markerType, icon, label, extraFeatureProps })`
|
|
804
895
|
- **Breaking:** map: `geometries.applyLabelConfig(label)` is removed: use `geometries.updateConfig({ label })`
|
|
@@ -811,7 +902,7 @@
|
|
|
811
902
|
- map: `PlacesModule.applyConfig` and `updateConfig` take the place shape, so `label.title`, `extraFeatureProps` and the icon mapping read your own place properties typed
|
|
812
903
|
- map: a `GeometriesModule` config change that only moves or hides layers keeps the shown geometries instead of preparing them again, and `TrafficAreaAnalyticsModule` masks its region again only when `regionPolygon.inverted` changes
|
|
813
904
|
|
|
814
|
-
-
|
|
905
|
+
- map: **Breaking:** `ReachableRangesModule` draws `calculateReachableRanges` results in colours from the map, and a geometry `fill.palette` is a list of your own CSS colours instead of a palette name ([#2436](https://github.com/tomtom-internal/maps-sdk-js/pull/2436))
|
|
815
906
|
|
|
816
907
|
- map: `ReachableRangesModule.create(map, config?)` and `show(ranges)` draw reachable ranges as returned: each band titled from its budget, each origin's bands nested around it, several origins in one `show`, and the `'filled'`, `'outline'` and `'inverted'` fill styles
|
|
817
908
|
- map: without a `palette`, the bands ramp from the map's accent toward its land colour, reversed for `'inverted'`, and repaint when either changes, such as on `StylingModule.setMapColors(deriveMapColors(…))`. On a map no theme has coloured, the ramp runs between the style's light or dark defaults and follows a switch. `palette` takes your own colours, innermost band first
|
|
@@ -827,7 +918,7 @@
|
|
|
827
918
|
|
|
828
919
|
### Patch Changes
|
|
829
920
|
|
|
830
|
-
-
|
|
921
|
+
- map: hover and click states survive a style change on every data-owned module, and a user event moves a state your code put. ([#2388](https://github.com/tomtom-internal/maps-sdk-js/pull/2388))
|
|
831
922
|
|
|
832
923
|
- map: the hover and click states of shown features survive a style change on `GeometriesModule`, `CustomGeoJSONModule`, `TrafficIncidentDetailsModule` and `TrafficAreaAnalyticsModule`, and a `GeometriesModule` geometry keeps its id
|
|
833
924
|
- map: a `TrafficAreaAnalyticsModule` style change no longer emits `shown-features`, as on the other modules
|
|
@@ -835,39 +926,39 @@
|
|
|
835
926
|
- map: an event state no longer writes into the feature objects you passed to `show`; `getShown()` returns a new collection after each state change
|
|
836
927
|
- map: a `PlacesModule` hover, click or `putEventState` after a configuration change keeps the titles, icons and properties that change set, instead of drawing the earlier ones again
|
|
837
928
|
|
|
838
|
-
-
|
|
929
|
+
- map: every data-owned module reads and writes the event states of the features it shows — `putEventState`, `cleanEventState`, `cleanEventStates` and `getEventStates`. ([#2388](https://github.com/tomtom-internal/maps-sdk-js/pull/2388))
|
|
839
930
|
|
|
840
931
|
- map: `PlacesModule`, `RoutingModule`, `GeometriesModule`, `CustomGeoJSONModule`, `TrafficIncidentDetailsModule` and `TrafficAreaAnalyticsModule` act on the main features their `getShown()` returns; `getEventStates()` reads back the ids by event state, what user interactions put as well as yours, as the new `EventStateIds` type
|
|
841
932
|
- map: the named scopes of those modules — `routing.events.waypoints`, `places.events.entryPoints`, `custom.events.<sourceName>`, … — are the new `UserEventsWithStates`, with the same four methods for their own features, so ids that repeat across sources never collide
|
|
842
933
|
- map: `PutEventStateOptions.id` and `CleanEventStateOptions.id` take a number as well as a string, matching a feature's `properties.id`, else its top-level `id`
|
|
843
934
|
|
|
844
|
-
-
|
|
935
|
+
- map: hovered and clicked routes, geometries and traffic incidents stand out by default; routes and geometries take how much from `highlight` factors, also knobs. ([#2388](https://github.com/tomtom-internal/maps-sdk-js/pull/2388))
|
|
845
936
|
|
|
846
937
|
- map: a hovered or clicked route draws a wider outline, selected or not, in its outline colour, `highlight.outlineWidthFactor` times: 1.2 unless set, clamped to `ROUTE_HIGHLIGHT_OUTLINE_WIDTH_FACTOR_RANGE` (1 to 1.25) so a section halo stays in sight, and a knob in `routingKnobCatalogue`; a `layers.mainLines.routeOutline` or `routeDeselectedOutline` line width you give is drawn as given
|
|
847
938
|
- map: a hovered or clicked geometry draws a denser fill and a wider border, in its own colours, `highlight.fillOpacityFactor` (2, 1 to 4, at most opaque) and `highlight.lineWidthFactor` (1.75, 1 to 3) times the opacity and width in force, a configured `fill.opacity` or `line.width` included; both are knobs in `geometriesKnobCatalogue`, and a `line.layer` line width is drawn as given
|
|
848
939
|
- map: a hovered or clicked `TrafficIncidentDetailsModule` incident draws the focus treatment `setFocus` draws, configured by the same `focus` config; `focus: false` turns it off for focused, hovered and clicked incidents alike
|
|
849
940
|
|
|
850
|
-
-
|
|
941
|
+
- map: `PlacesModule` takes a `beforeLayerConfig` (`PlacesBeforeLayerConfig`), placing its layers in the map's layer stack as one or per part ([#2430](https://github.com/tomtom-internal/maps-sdk-js/pull/2430))
|
|
851
942
|
- The parts are `places`, for the markers, clusters and entry points, and `connections`, for the connection lines; `all` covers the parts a record leaves out
|
|
852
943
|
- `applyConfig` and `updateConfig` restack the layers, a style change keeps them there and `resetConfig` puts them back. Unconfigured, the layer order is unchanged
|
|
853
944
|
|
|
854
|
-
-
|
|
945
|
+
- map: `StylingModule` warns about a knob that matches no layer of the loaded style when that knob is set, as documented, instead of warning for every such knob as soon as the module loads (eight warnings on `satellite` before any `set`). ([#2428](https://github.com/tomtom-internal/maps-sdk-js/pull/2428))
|
|
855
946
|
|
|
856
|
-
-
|
|
947
|
+
- map: a `CustomImage.image` given as an SVG data URI (`data:image/svg+xml;…`) is drawn, instead of failing to decode and leaving places, waypoints and incidents without their icon. ([#2426](https://github.com/tomtom-internal/maps-sdk-js/pull/2426))
|
|
857
948
|
|
|
858
949
|
## 0.61.0
|
|
859
950
|
|
|
860
951
|
### Minor Changes
|
|
861
952
|
|
|
862
|
-
-
|
|
953
|
+
- **Breaking:** services: `discoverPlaces` replaces `alongRouteSearch`, and the search response and wire-format types are not exported. ([#2397](https://github.com/tomtom-internal/maps-sdk-js/pull/2397))
|
|
863
954
|
|
|
864
955
|
- **Breaking:** services: `alongRouteSearch` is not exported; `discoverPlaces` takes the same params and searches along the route whenever they carry `route`: `alongRouteSearch({ route, maxDetourTimeSeconds, query, filters, sortBy, limit })` → `discoverPlaces({ route, maxDetourTimeSeconds, query, filters, sortBy, limit })`. It resolves to a `DiscoverPlacesResponse`
|
|
865
956
|
- **Breaking:** services: the response types of the three searches `discoverPlaces` runs are not exported: `AlongRouteSearchResponse`, `FuzzySearchResponse` and `GeometrySearchResponse` → `DiscoverPlacesResponse`, `GeometrySearchFeatureCollectionProps` → `SearchSummary`
|
|
866
957
|
- **Breaking:** services: their wire-format types are not exported either, with no replacement: `AlongRouteSearchRequestAPI`, `AlongRouteSearchPayloadAPI`, `AlongRouteSearchResponseAPI`, `AlongRouteSearchResultAPI`, `RoutePointAPI`, `FuzzySearchResponseAPI`, `FuzzySearchResultAPI`, `QueryIntentAPI`, `CoordinateIntentAPI`, `CoordinateIntentDetailsAPI`, `NearbyIntentAPI`, `NearbyIntentDetailsAPI`, `GeometrySearchRequestAPI`, `GeometrySearchPayloadAPI`, `GeometrySearchResponseAPI`, `GeometrySearchResultAPI`, `GeometryAPI`, `PolygonAPI` and `CircleAPI`
|
|
867
958
|
|
|
868
|
-
-
|
|
959
|
+
- **Breaking:** map: `EVAvailabilityConfig.threshold` defaults to `0.3` for the availability label colour as well as the pin icon, instead of `0` for the label, which drew every station's label green, one with no free charging point included. Set `threshold: 0` to keep the old label colour ([#2396](https://github.com/tomtom-internal/maps-sdk-js/pull/2396))
|
|
869
960
|
|
|
870
|
-
-
|
|
961
|
+
- **Breaking:** map: `GeometriesModule` text config is label config, and the geometry config helpers take one options object. ([#2378](https://github.com/tomtom-internal/maps-sdk-js/pull/2378))
|
|
871
962
|
|
|
872
963
|
- **Breaking:** map: `GeometriesModule.applyTextConfig()` is `applyLabelConfig()`, after the `label` it sets: `geometries.applyTextConfig({ text })` → `geometries.applyLabelConfig({ text })`
|
|
873
964
|
- **Breaking:** map: `GeometryLabel` is `GeometryLabelConfig` and `GeometryLineLabel` is `GeometryLineLabelConfig`, like `GeometryFillConfig` and `GeometryLineConfig`
|
|
@@ -878,12 +969,12 @@
|
|
|
878
969
|
- map: `GeometryLabelConfig.text` is optional, so `label: { size: 18 }` restyles the center labels without restating their text
|
|
879
970
|
- map: `FillStyledGeometryConfigOptions`, `ReachableRangeGeometryConfigOptions` and `ReachableRangesDisplayOptions` name the options objects
|
|
880
971
|
|
|
881
|
-
-
|
|
972
|
+
- **Breaking:** map: a `GeometriesModule` palette name moves from `fill.color` to the new `fill.palette`. ([#2314](https://github.com/tomtom-internal/maps-sdk-js/pull/2314))
|
|
882
973
|
|
|
883
974
|
- **Breaking:** map: `GeometryFillConfig.color` takes a colour or a MapLibre expression; a palette name goes in `fill.palette`. Migrate `fill: { color: 'warm' }` to `fill: { palette: 'warm' }`
|
|
884
975
|
- map: `GeometryFillConfig.palette` gives each `GeometriesModule` feature the next colour of a named palette, on the fill and on a border without its own `line.color`. It sits between `fill.color`, which wins over it, and the top-level `color`; `fillStyledGeometryConfig` and `reachableRangeGeometryConfig` set it, and once it is set an accent change leaves the geometries as they are
|
|
885
976
|
|
|
886
|
-
-
|
|
977
|
+
- **Breaking:** core: the geopolitical view is set once in `TomTomConfig`, and `View` / `view` are renamed `GeopoliticalView` / `geopoliticalView`. ([#2393](https://github.com/tomtom-internal/maps-sdk-js/pull/2393))
|
|
887
978
|
|
|
888
979
|
- **Breaking:** core: `View` is renamed `GeopoliticalView`, and `views` is renamed `geopoliticalViews`
|
|
889
980
|
- **Breaking:** services: the `view` parameter of search, suggestions, geocoding, reverse geocoding and place details is renamed `geopoliticalView`. Migrate `discoverPlaces({ query, view: 'IN' })` to `discoverPlaces({ query, geopoliticalView: 'IN' })`; the request still sends the API's own parameter
|
|
@@ -893,7 +984,7 @@
|
|
|
893
984
|
- services: a view an API does not serve is left out of its requests, which then use the default view of the caller's country, instead of failing
|
|
894
985
|
- services: `getSearchSuggestions` uses the global geopolitical view when the call sets none
|
|
895
986
|
|
|
896
|
-
-
|
|
987
|
+
- **Breaking:** map: the knob catalogues gain `enums`, `offset` and `text` knobs, and hold the POI, traffic and routing filters and unit labels. ([#2401](https://github.com/tomtom-internal/maps-sdk-js/pull/2401))
|
|
897
988
|
|
|
898
989
|
- **Breaking:** map: `KnobKind` gains `enums`, a list of options, `offset`, an `[x, y]` screen displacement within a `range`, and `text`, any string, so an exhaustive `switch` over `KnobKind` or `KnobEntry['kind']` needs a case for each
|
|
899
990
|
- **Breaking:** map: `POICategoryGroup` is the union of the `poiCategoryGroups` names, `'FOOD_DRINKS_GROUP' | 'TRANSPORTATION_GROUP' | …`, no longer `string`, so `FilterablePOICategory` and `filterCategories` reject a name that is no group or category
|
|
@@ -905,7 +996,7 @@
|
|
|
905
996
|
- map: `routingKnobCatalogue` holds the unit labels, `displayUnits.distance.*` and `displayUnits.time.*`, as `text` knobs
|
|
906
997
|
- map: a `RoutingModule` `displayUnits` that leaves `distance.type` unset posts the speed limit signs in the global config's unit system, as the summary bubbles already do, so relabelling one unit keeps the global unit system everywhere
|
|
907
998
|
|
|
908
|
-
-
|
|
999
|
+
- **Breaking:** map: `validateKnobValue` and `setKnob` check and set knob values, and `KnobRange` requires `bounds`. ([#2416](https://github.com/tomtom-internal/maps-sdk-js/pull/2416))
|
|
909
1000
|
|
|
910
1001
|
- **Breaking:** map: `KnobRange` requires `bounds`, which ends a value must keep to: `hard` both, `hard-min` only `min`, `soft` neither, so a range you declare yourself needs one
|
|
911
1002
|
- map: `validateKnobValue(entry, value)` checks a value against a knob's kind, range, options or colour syntax, and throws a `RangeError` naming the knob and what it expects
|
|
@@ -913,7 +1004,7 @@
|
|
|
913
1004
|
- map: `StylingModule.set` and `setMapColors` check values with `validateKnobValue`, so their messages match every other module's
|
|
914
1005
|
- map: the traffic heights, height scale factor, outline width, delay minutes and area analytics filters, and the geometries line and halo widths, label size and symbol spacing have `hard-min` ranges; the geometries line label offset a `soft` one; opacities, factors and zooms `hard` ones
|
|
915
1006
|
|
|
916
|
-
-
|
|
1007
|
+
- **Breaking:** map: each module's `isVisible()` returns its `visible` setting, and `RoutingModule` gains `setVisible` and `isVisible`. ([#2411](https://github.com/tomtom-internal/maps-sdk-js/pull/2411))
|
|
917
1008
|
|
|
918
1009
|
- **Breaking:** map: `isVisible()` on `POIsModule`, `BaseMapModule`, `TrafficFlowModule` and `TrafficIncidentsModule` returns the `visible` setting, as the module's `visible` knob reads, instead of whether any of its layers draws; on `BaseMapModule`, the `visible`, `groups` and styling-toggle settings over the groups asked about. Until something sets it, POIs and the base map report what the style draws and the traffic modules `false`. To read a layer itself, use `map.mapLibreMap.getLayoutProperty(layerId, 'visibility')`
|
|
919
1010
|
- **Breaking:** map: `TrafficIncidentsModule.isVisible()` is `false` when the incidents are set hidden with `icons: { visible: true }`. Read `anyIconLayersVisible()` for the icons
|
|
@@ -923,14 +1014,14 @@
|
|
|
923
1014
|
- map: `RoutingModule` takes `visible` (default `true`), with `setVisible` and `isVisible`. Hiding covers every part it draws and keeps the routes and waypoints through `showRoutes`, `showWaypoints`, `selectRoute`, the clears and style changes, and `routingKnobCatalogue` lists it as the `visible` toggle
|
|
924
1015
|
- map: `CustomGeoJSONModule.isVisible()` reads its `visible` setting
|
|
925
1016
|
|
|
926
|
-
-
|
|
1017
|
+
- **Breaking:** map: `PlacesModule` and the routing charging stops take `label` instead of `text`, as `GeometriesModule` does. ([#2394](https://github.com/tomtom-internal/maps-sdk-js/pull/2394))
|
|
927
1018
|
|
|
928
1019
|
- **Breaking:** map: `PlacesModuleConfig.text` is `label`, like `GeometriesModuleConfig.label`: `{ text: { title, color } }` → `{ label: { title, color } }`
|
|
929
1020
|
- **Breaking:** map: `PlaceTextConfig` is `PlaceLabelConfig`
|
|
930
1021
|
- **Breaking:** map: `PlacesModule.applyTextConfig()` is `applyLabelConfig()`, as on `GeometriesModule`: `places.applyTextConfig({ color })` → `places.applyLabelConfig({ color })`
|
|
931
1022
|
- **Breaking:** map: `RoutingModuleConfig.chargingStops.text` is `chargingStops.label`: `{ chargingStops: { text: { title } } }` → `{ chargingStops: { label: { title } } }`; `ChargingStopTextConfig` is `ChargingStopLabelConfig`, and the routing knob `chargingStops.text.visible` is `chargingStops.label.visible`
|
|
932
1023
|
|
|
933
|
-
-
|
|
1024
|
+
- **Breaking:** map: a `PlacesModule` theme is a marker type (`markerType`, `applyMarkerType`), and `PlacesModuleConfig.color` sets the place colours at once. ([#2338](https://github.com/tomtom-internal/maps-sdk-js/pull/2338))
|
|
934
1025
|
|
|
935
1026
|
- **Breaking:** map: `PlacesModuleConfig.theme` is `markerType`, with the same values: `{ theme: 'base-map' }` → `{ markerType: 'base-map' }`
|
|
936
1027
|
- **Breaking:** map: `PlacesModule.applyTheme()` is `applyMarkerType()`: `places.applyTheme('pin')` → `places.applyMarkerType('pin')`
|
|
@@ -940,18 +1031,18 @@
|
|
|
940
1031
|
- map: a `label.size` or `label.haloWidth` of `0` on `PlacesModule` reaches its labels instead of being ignored
|
|
941
1032
|
- map: a `PlacesModule` `layers.*.layout` override of `text-size`, `text-font` or `text-field` wins over `label`, as its paint overrides already did
|
|
942
1033
|
|
|
943
|
-
-
|
|
1034
|
+
- **Breaking:** services: `getPOICategories` ranks `filters` matches and keeps each filter's best ones, so `'bar'` returns Bar. ([#2248](https://github.com/tomtom-internal/maps-sdk-js/pull/2248))
|
|
944
1035
|
|
|
945
1036
|
- **Breaking:** services: `getPOICategories`, and `getPOICategoryCodes` with it, ranks `filters` matches and keeps each filter's strongest ones, instead of every category whose name or synonym contains it: `'bar'` returns Bar instead of 15 categories including Nail Salon ("Nail Bar") and Toll Gate ("Toll Bar"), and a category code returns that category only
|
|
946
1037
|
- services: `getPOICategories` merges several `filters` round-robin, so each filter's best match comes first
|
|
947
1038
|
- services: `getPOICategories` `filters` fold accents, so `'cafe'` finds Café, and a blank filter matches nothing instead of every category
|
|
948
1039
|
|
|
949
|
-
-
|
|
1040
|
+
- **Breaking:** map: `RoutingModule.getConfig()` returns the configuration as given, and a module without `displayUnits` follows the global units. ([#2415](https://github.com/tomtom-internal/maps-sdk-js/pull/2415))
|
|
950
1041
|
|
|
951
1042
|
- **Breaking:** map: `RoutingModule.getConfig()` returns the configuration as given: without the global `displayUnits` filled in when none were set, and `undefined` after `RoutingModule.create(map)` or `resetConfig()`. Read `TomTomConfig.instance.get().displayUnits` for the units in force when the module config has none
|
|
952
1043
|
- map: a `RoutingModule` without `displayUnits` labels its summaries, waypoints and speed limit signs in the global units in force when it draws them, so a later `TomTomConfig.instance.put({ displayUnits })` reaches routes already shown on their next `showRoutes` or configuration change, where the units set at creation used to stay, `updateConfig` included
|
|
953
1044
|
|
|
954
|
-
-
|
|
1045
|
+
- **Breaking:** map: `routingKnobCatalogue` lists the `RoutingModule` display settings, and `StylingKnob` types each knob kind strictly. ([#2366](https://github.com/tomtom-internal/maps-sdk-js/pull/2366))
|
|
955
1046
|
|
|
956
1047
|
- **Breaking:** map: `StylingKnob` has one member per `kind`: a `factor` or `number` knob always carries its `range`, an `enum` knob its `options`, and no other kind either, so an entry built with a `range` on a `toggle` or `options` on a `color` knob no longer type-checks
|
|
957
1048
|
- **Breaking:** map: `KnobKind` gains `image`, a sprite image id, so an exhaustive `switch` over `KnobKind` needs a case for it
|
|
@@ -959,403 +1050,337 @@
|
|
|
959
1050
|
- map: `KnobEntry` is the entry shape every catalogue shares, one member per kind, and `KnobValueOf` the value a knob of each kind holds
|
|
960
1051
|
- map: `SectionIconPlacement` names the placements `SectionIconConfig.placement` takes
|
|
961
1052
|
|
|
962
|
-
-
|
|
1053
|
+
- **Breaking:** map: `SectionIconConfig.sizeFactor` multiplies the size the section type draws its icon at, rather than setting it: `1` leaves it unchanged, and `ferry`, `tollRoad`, `tunnel` and `vehicleRestricted` keep their zoom ramp under any factor. A `size: 0.8` on `ferry` was a fixed `icon-size` of 0.8; `sizeFactor: 0.8` draws that size from zoom 16.5 and scales down below it ([#2356](https://github.com/tomtom-internal/maps-sdk-js/pull/2356))
|
|
963
1054
|
|
|
964
1055
|
### Patch Changes
|
|
965
1056
|
|
|
966
|
-
-
|
|
1057
|
+
- map: `baseMapKnobCatalogue` and `poisKnobCatalogue` list the base map and POI settings a knob holds. ([#2375](https://github.com/tomtom-internal/maps-sdk-js/pull/2375))
|
|
967
1058
|
|
|
968
1059
|
- map: `baseMapKnobCatalogue` lists every `BaseMapModuleConfig` setting, `visible` and one `groups.<group>.visible` toggle per layer group, with its description; `baseMapKnobIds` lists the ids. `BaseMapKnob` is one entry, `BaseMapKnobId` a setting's path in the config, and `BaseMapKnobValueOf` the value it takes
|
|
969
1060
|
- map: `poisKnobCatalogue` lists the `POIsModuleConfig` settings a knob holds, `visible` with its default; `poisKnobIds` lists the ids. `POIsKnob` is one entry, `POIsKnobId` a setting's path in the config, and `POIsKnobValueOf` the value it takes
|
|
970
1061
|
- map: the `basemap.<group>` entries of `stylingKnobCatalogue` say what their group holds, in the words of the matching `baseMapKnobCatalogue` entry, and name its id
|
|
971
1062
|
|
|
972
|
-
-
|
|
1063
|
+
- map: places, routes and the traffic incident overlay follow the styling knob colours live. ([#2330](https://github.com/tomtom-internal/maps-sdk-js/pull/2330))
|
|
973
1064
|
|
|
974
1065
|
- map: `TrafficIncidentOverlayModule` follows the `traffic.incidents.*Color` styling knobs live, set before or after it was created and across `setStyle`
|
|
975
1066
|
- map: `PlacesModule` with the `base-map`, `circle-icon` or `pin-clustered` marker type follows the POI label colour, outline and size knobs live; the caller's `label` and `layers` settings still win
|
|
976
1067
|
- map: `RoutingModule` draws a route's traffic sections in the `traffic.incidents.minorColor`, `moderateColor` and `majorColor` knob colours when they are set, live; a `layers.sections` override still wins, and with none set the colours are unchanged
|
|
977
1068
|
- map: `TrafficIncidentOverlayModule` draws minor jams in the style's own colour instead of the light styles' on every style, the dark ones included
|
|
978
1069
|
|
|
979
|
-
-
|
|
1070
|
+
- map: `customGeoJSONKnobCatalogue` lists the `CustomGeoJSONModuleConfig` settings a knob holds, `visible` with its default; the sources' MapLibre layers and cluster options and the images stay the caller's. `customGeoJSONKnobIds` lists the ids. `CustomGeoJSONKnob` is one entry, `CustomGeoJSONKnobId` a setting's path in the config, and `CustomGeoJSONKnobValueOf` the value it takes ([#2399](https://github.com/tomtom-internal/maps-sdk-js/pull/2399))
|
|
980
1071
|
|
|
981
|
-
-
|
|
1072
|
+
- map: `TomTomMap` loads nothing from unpkg.com: neither the MapLibre stylesheet nor the RTL text plugin. ([#2253](https://github.com/tomtom-internal/maps-sdk-js/pull/2253))
|
|
982
1073
|
|
|
983
1074
|
- map: `TomTomMap` no longer fetches the MapLibre stylesheet from unpkg.com, which sent every end user's IP address to a third party and fired even when the app had imported `maplibre-gl.css` itself; when the page lacks the MapLibre CSS, the SDK applies a copy shipped with it as a lazy chunk — served alongside the SDK, not blocked by a strict CSP `style-src`, and in a cascade layer so the app's own CSS still wins
|
|
984
1075
|
- map: `TomTomMap` no longer loads the Mapbox RTL text plugin from unpkg.com either; MapLibre shapes Arabic and bidirectional text itself, so right-to-left labels render as before
|
|
985
1076
|
|
|
986
|
-
- [#2379](https://github.com/tomtom-internal/maps-sdk-js/pull/2379)
|
|
1077
|
+
- map: `GeometriesModule` config changes restyle the geometries already shown. ([#2379](https://github.com/tomtom-internal/maps-sdk-js/pull/2379))
|
|
987
1078
|
|
|
988
1079
|
- map: `GeometriesModule.applyConfig`, `updateConfig`, `resetConfig` and `applyLabelConfig` restyle the geometries already shown — colours, palette, fill style, labels and `transformFeaturesForDisplay` — instead of only the ones a later `show()` draws; a shown geometry keeps its id and event state
|
|
989
1080
|
- map: `GeometriesModule.applyConfig` replaces the paint of the previous config, so a config that leaves out the colour, fill, border or label, and `resetConfig()`, return them to the defaults; call `updateConfig` to change one part
|
|
990
1081
|
- map: a `GeometriesModule` `label.text` given as a MapLibre expression no longer becomes each geometry's `title`, which the line labels and an expression reading `['get', 'title']` drew as the expression itself; a geometry keeps its own title or address, and a literal `label.text` still sets it
|
|
991
1082
|
- map: a config change or a style change after `GeometriesModule.clear()` keeps the map clear, and a style change no longer emits `shown-features`, as on the other modules
|
|
992
1083
|
|
|
993
|
-
-
|
|
1084
|
+
- map: `geometriesKnobCatalogue` lists every plain-valued `GeometriesModuleConfig` display setting — colour, fill, border, center and border labels with their fonts, and the border labels' offset — with its kind, range or options and, where one value holds everywhere, its default; `geometriesKnobIds` lists the ids. `GeometriesKnob` is one entry, `GeometriesKnobId` a setting's path in the config, and `GeometriesKnobValueOf` the value it takes ([#2391](https://github.com/tomtom-internal/maps-sdk-js/pull/2391))
|
|
994
1085
|
|
|
995
|
-
-
|
|
1086
|
+
- core: `TimeDisplayUnits.hours` documents its real default, `hr`, which `formatDuration` uses when none is set ([#2402](https://github.com/tomtom-internal/maps-sdk-js/pull/2402))
|
|
996
1087
|
|
|
997
|
-
-
|
|
1088
|
+
- map: `TrafficIncidentOverlayModule.applyConfig` and `updateConfig` apply `focus` to the incidents already shown, instead of only after a style switch: the outline colour and width factor repaint in place, so the `focus.outlineColor` and `focus.widthFactor` knobs of `trafficIncidentOverlayKnobCatalogue` take effect when set, and `focus: false` removes the outline, which a later focus style adds back beneath the incidents ([#2412](https://github.com/tomtom-internal/maps-sdk-js/pull/2412))
|
|
998
1089
|
|
|
999
|
-
-
|
|
1090
|
+
- services: `discoverPlaces` and the new `resolvePOICategories` take POI categories in words. ([#2389](https://github.com/tomtom-internal/maps-sdk-js/pull/2389))
|
|
1000
1091
|
|
|
1001
1092
|
- discoverPlaces: `filters.poiCategoryQuery` takes categories in words — `'sushi'`, `['gym', 'parking']` — and searches the POI categories they name, resolved in the call's language, so category words reach results in one call instead of a lookup and a search; a word nothing matches is left out, and when none matches the call rejects with `SDKError`
|
|
1002
1093
|
- `resolvePOICategories` turns words or codes into the `poiCategories` of one search — each word's best three codes, merged round-robin and capped at the 10 a search accepts — and returns the words nothing matched in `unmatched`, for a caller who decides about them before searching; codes alone skip the catalog request
|
|
1003
1094
|
|
|
1004
|
-
-
|
|
1095
|
+
- map: `preparePlacesForDisplay`, what `PlacesModule.show()` does to the places it is given, is documented along with `toPlaces` and `buildPlaceTitle`, and takes `(places, config)`. The places guide shows your own GeoJSON points drawn through `show()`. `ShownPlaces` names the three places results that are not places — search suggestions, `geometryData` polygons, EV availability — and what shows each instead ([#2384](https://github.com/tomtom-internal/maps-sdk-js/pull/2384))
|
|
1005
1096
|
|
|
1006
|
-
-
|
|
1097
|
+
- services: `getPlacesWithEVAvailability` takes `maxConcurrentRequests`, and its result type allows places without availability. ([#2376](https://github.com/tomtom-internal/maps-sdk-js/pull/2376))
|
|
1007
1098
|
|
|
1008
1099
|
- services: `getPlacesWithEVAvailability` takes `maxConcurrentRequests` (default 1, one request at a time as before) to send that many availability requests at once; the places keep their input order. `PlacesWithEVAvailabilityOptions` names its options
|
|
1009
1100
|
- services: `getPlacesWithEVAvailability(places)` without options is typed as places that may lack availability, as it returns them; only `excludeIfAvailabilityUnknown: true` types every place as having it
|
|
1010
1101
|
- services: the `discoverPlaces` docs name all three searches it runs, along-route search when `route` is given included
|
|
1011
1102
|
|
|
1012
|
-
-
|
|
1103
|
+
- map: `placesKnobCatalogue` lists every plain-valued `PlacesModuleConfig` display setting — marker type, colour, visibility, default pin style, label, cluster badge and source, EV availability and entry points — with its kind, range or options and, where one value holds everywhere, its default; `placesKnobIds` lists the ids. `PlacesKnob` is one entry, `PlacesKnobId` a setting's path in the config, and `PlacesKnobValueOf` the plain value it takes ([#2380](https://github.com/tomtom-internal/maps-sdk-js/pull/2380))
|
|
1013
1104
|
|
|
1014
|
-
-
|
|
1105
|
+
- map: `PlaceLabelConfig` says to set place labels through the module config rather than with MapLibre's `setPaintProperty` or `setLayoutProperty` on its layers, which a style change or a marker type change rebuilds from the config ([#2390](https://github.com/tomtom-internal/maps-sdk-js/pull/2390))
|
|
1015
1106
|
|
|
1016
|
-
-
|
|
1107
|
+
- map: `PlacesModule` documents what a place keeps across `show()`, `clear()` and style changes — `show()` replaces and drops the event states and connections of what it replaces, even under the same id, while style and configuration changes keep both — and `getShown()` states that it returns the places as drawn, with their display properties and event states ([#2387](https://github.com/tomtom-internal/maps-sdk-js/pull/2387))
|
|
1017
1108
|
|
|
1018
|
-
-
|
|
1109
|
+
- map: `PlacesModule.create<P>`, `applyLabelConfig<P>`, `applyIconConfig<P>` and `preparePlacesForDisplay<P>` type the `label.title` and `icon.mapping.fn` callbacks for the place shape `P` you name, as `extraFeatureProps` already was, so a callback reading a property of your own data no longer needs a cast ([#2410](https://github.com/tomtom-internal/maps-sdk-js/pull/2410))
|
|
1019
1110
|
|
|
1020
|
-
-
|
|
1111
|
+
- services: `calculateReachableRange` and `calculateReachableRanges` return polygons whose ring ends on its first position, as GeoJSON requires; the API's boundary leaves it open, which spatial libraries such as Turf reject ([#2350](https://github.com/tomtom-internal/maps-sdk-js/pull/2350))
|
|
1021
1112
|
|
|
1022
|
-
-
|
|
1113
|
+
- services: `calculateReachableRanges` rejects on a `401` like it does on a `403` or a `429`, instead of skipping the range as one the engine could not compute and returning no polygons ([#2352](https://github.com/tomtom-internal/maps-sdk-js/pull/2352))
|
|
1023
1114
|
|
|
1024
|
-
-
|
|
1115
|
+
- `calculateReachableRanges` says in its TSDoc that a range the service answers with an error, such as `NO_RANGE_FOUND` for an origin off the road network, is skipped rather than thrown, so the result can hold fewer polygons than requested. ([#2372](https://github.com/tomtom-internal/maps-sdk-js/pull/2372))
|
|
1025
1116
|
|
|
1026
|
-
-
|
|
1117
|
+
- map: the route's instruction arrows scale with `widthFactor`, instead of keeping one size as the line around them grows or shrinks. The `width` presets draw them as before ([#2357](https://github.com/tomtom-internal/maps-sdk-js/pull/2357))
|
|
1027
1118
|
|
|
1028
|
-
-
|
|
1119
|
+
- map: the stop number inside a waypoint pin scales with the pin, so it stays in the pin's head at every `waypointSize` and `waypointSizeFactor`; the `'s'` and `'l'` presets draw it at 0.75× and 1.25× ([#2358](https://github.com/tomtom-internal/maps-sdk-js/pull/2358))
|
|
1029
1120
|
|
|
1030
|
-
-
|
|
1121
|
+
- map: `PlacesModuleSerializableConfig`, `RoutingModuleSerializableConfig`, `GeometriesModuleSerializableConfig` and `CustomGeoJSONModuleSerializableConfig` type the part of each module's configuration that survives JSON, leaving out the functions and image elements those modules also take; `SerializableCustomImage` is a `CustomImage` with a string `image`. Every module's configuration, exported with `JSON.stringify(module.getConfig())` and given back to `applyConfig`, holds the same configuration and draws the same layers, and the map modules guide shows how to save and replay one ([#2382](https://github.com/tomtom-internal/maps-sdk-js/pull/2382))
|
|
1031
1122
|
|
|
1032
|
-
-
|
|
1123
|
+
- map: `terrainKnobCatalogue` lists every `TerrainModuleConfig` setting — the hillshade, the 3D surface and its exaggeration — with its kind, the exaggeration's `hard-min` range (at least 0.5; above 3 still applies) and, where one value holds everywhere, its default; `terrainKnobIds` lists the ids. `TerrainKnob` is one entry, `TerrainKnobId` a setting's path in the config, and `TerrainKnobValueOf` the value it takes ([#2399](https://github.com/tomtom-internal/maps-sdk-js/pull/2399))
|
|
1033
1124
|
|
|
1034
|
-
-
|
|
1125
|
+
- map: `trafficFlowKnobCatalogue`, `trafficIncidentsKnobCatalogue`, `trafficIncidentOverlayKnobCatalogue` and `trafficAreaAnalyticsKnobCatalogue` list each traffic module's plain-valued settings with their kind, range or options and, where one value holds everywhere, their default; the matching `…KnobIds` arrays list the ids. `TrafficFlowKnob`, `TrafficIncidentsKnob`, `TrafficIncidentOverlayKnob` and `TrafficAreaAnalyticsKnob` are one entry each, their `…KnobId` a setting's path in the module config, and their `…KnobValueOf` the value it takes ([#2383](https://github.com/tomtom-internal/maps-sdk-js/pull/2383))
|
|
1035
1126
|
|
|
1036
|
-
-
|
|
1127
|
+
- security: a new guide, What the SDK sends, and where, lists what the browser sends to TomTom and to third parties, which values travel in URLs and so land in logs, and whose session cookie proxy mode carries, for a privacy notice or records of processing ([#2414](https://github.com/tomtom-internal/maps-sdk-js/pull/2414))
|
|
1037
1128
|
|
|
1038
1129
|
## 0.60.0
|
|
1039
1130
|
|
|
1040
1131
|
### Minor Changes
|
|
1041
1132
|
|
|
1042
|
-
- [#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337)
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
- map: `PartsBeforeLayerConfig` is the one shape every module's `beforeLayerConfig` takes: a single `BeforeLayerConfig`, or a record of the module's own part names plus `all`. `GeometryBeforeLayerConfig`, `AreaAnalyticsBeforeLayerConfig` and `RoutingBeforeLayerConfig` are built on it
|
|
1051
|
-
- map: `TrafficAreaAnalyticsModule.moveBeforeLayer` emits `config-change`, as `GeometriesModule` and `TrafficIncidentOverlayModule` do
|
|
1133
|
+
- **Breaking:** map: `GeometriesModule`'s `fill.beforeLayerConfig` and `line.beforeLayerConfig` are removed; use `beforeLayerConfig: { fill, line }` on the module config, `all` covering any part it doesn't name ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1134
|
+
- **Breaking:** map: `GeometryBeforeLayerTargets` is removed; the record form of `GeometryBeforeLayerConfig` is `PartsBeforeLayerConfig<'fill' | 'line'>`'s ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1135
|
+
- **Breaking:** map: `TrafficAreaAnalyticsModule`'s nested `beforeLayerConfig` shape is removed; key it by display mode instead: `hexgrid.flat2D` → `'hexgrid-2d'`, `hexgrid.extrusion3D` → `'hexgrid-3d'`, likewise for `square`, plus `all` for the rest ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1136
|
+
- **Breaking:** map: `GeometriesModule.applyConfig` puts a part the applied config's `beforeLayerConfig` names no target for back at its default place, as a style change does — every part, when the applied config has no `beforeLayerConfig`. `moveBeforeLayer` still leaves such a part where it is ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1137
|
+
- **Breaking:** map: `RoutingModule.getLayerToRenderLinesUnder()` returns `string | undefined`, following `beforeLayerConfig` and undefined when the route lines are on top; unconfigured, it still returns `mapStyleLayerIDs.lowestLabel` ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1138
|
+
- map: `RoutingModule` takes a `beforeLayerConfig`: one target for the whole route, or one per part — `mainLines`, `instructionLines`, `icons` — plus `all`. `applyConfig` and `updateConfig` restack the layers, and a style change keeps them there. Unconfigured, the layer order is unchanged ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1139
|
+
- map: `PartsBeforeLayerConfig` is the one shape every module's `beforeLayerConfig` takes: a single `BeforeLayerConfig`, or a record of the module's own part names plus `all`. `GeometryBeforeLayerConfig`, `AreaAnalyticsBeforeLayerConfig` and `RoutingBeforeLayerConfig` are built on it ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1140
|
+
- map: `TrafficAreaAnalyticsModule.moveBeforeLayer` emits `config-change`, as `GeometriesModule` and `TrafficIncidentOverlayModule` do ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1052
1141
|
|
|
1053
|
-
- [#2336](https://github.com/tomtom-internal/maps-sdk-js/pull/2336)
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
- **Breaking:** map: `SectionIconConfig.size` → `sizeFactor`, now clamped to `SECTION_ICON_SIZE_FACTOR_RANGE` (0.25–2)
|
|
1057
|
-
- map: `RoutingModuleConfig.widthFactor` and `waypointSizeFactor` multiply the `width` and `waypointSize` presets, and a section's `widthFactor` its own `width`; clamped to the published `ROUTE_WIDTH_FACTOR_RANGE` and `ROUTE_WAYPOINT_SIZE_FACTOR_RANGE` (0.5–2). The presets draw the sizes they did
|
|
1142
|
+
- **Breaking:** map: `RoutingModuleConfig.theme` and the `RouteTheme` type are removed. `theme.mainColor` → `color`, `theme.routeWidth` → `width`, `theme.waypointSize` → `waypointSize`, all top-level: `{ theme: { mainColor: '#f00', routeWidth: 'l' } }` becomes `{ color: '#f00', width: 'l' }` ([#2336](https://github.com/tomtom-internal/maps-sdk-js/pull/2336))
|
|
1143
|
+
- **Breaking:** map: `SectionIconConfig.size` → `sizeFactor`, now clamped to `SECTION_ICON_SIZE_FACTOR_RANGE` (0.25–2) ([#2336](https://github.com/tomtom-internal/maps-sdk-js/pull/2336))
|
|
1144
|
+
- map: `RoutingModuleConfig.widthFactor` and `waypointSizeFactor` multiply the `width` and `waypointSize` presets, and a section's `widthFactor` its own `width`; clamped to the published `ROUTE_WIDTH_FACTOR_RANGE` and `ROUTE_WAYPOINT_SIZE_FACTOR_RANGE` (0.5–2). The presets draw the sizes they did ([#2336](https://github.com/tomtom-internal/maps-sdk-js/pull/2336))
|
|
1058
1145
|
|
|
1059
1146
|
### Patch Changes
|
|
1060
1147
|
|
|
1061
|
-
-
|
|
1148
|
+
- services: the `ChargingModel.batteryCurve` reference says a route with charging stops needs it; the service rejects such a request without one ([#2354](https://github.com/tomtom-internal/maps-sdk-js/pull/2354))
|
|
1062
1149
|
|
|
1063
1150
|
## 0.59.0
|
|
1064
1151
|
|
|
1065
1152
|
### Minor Changes
|
|
1066
1153
|
|
|
1067
|
-
-
|
|
1068
|
-
|
|
1069
|
-
- [#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335)
|
|
1070
|
-
|
|
1071
|
-
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
- [#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333)
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
- [#
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
- services: geocoding responses carry the search summary as `properties`, `nextCursor` included
|
|
1130
|
-
|
|
1131
|
-
- [#2201](https://github.com/tomtom-internal/maps-sdk-js/pull/2201) [`bed0784`](https://github.com/tomtom-internal/maps-sdk-js/commit/bed07846eb89910a5587caf1a04e0dd7c3fe5607) Thanks [@JulianChinAFoeng-TomTom](https://github.com/JulianChinAFoeng-TomTom)! - **Breaking:** services: `getPlaceWithEVAvailability` and `getPlacesWithEVAvailability` reject with `SDKAbortError` when their `signal` is aborted, instead of reporting the cancellation as missing availability data. Every other request failure still resolves to `undefined`, and the sequential run now stops at the cancelled station rather than working through the rest of the list
|
|
1132
|
-
|
|
1133
|
-
- [#2311](https://github.com/tomtom-internal/maps-sdk-js/pull/2311) [`f0b1ad9`](https://github.com/tomtom-internal/maps-sdk-js/commit/f0b1ad9f75007b73c584bd5d238a118d1a66440d) Thanks [@DanielForniessoria-TomTom](https://github.com/DanielForniessoria-TomTom)! - **Breaking:** map: `SectionSignConfig.minzoom` and `CountryCrossingConfig.minzoom` are renamed `minZoom`, as every other display config spells its zoom threshold; migrate by renaming the key
|
|
1134
|
-
|
|
1135
|
-
- [#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101) [`f066146`](https://github.com/tomtom-internal/maps-sdk-js/commit/f066146bed70481f8bb3c705b808bda634b7b905) Thanks [@DanielForniessoria-TomTom](https://github.com/DanielForniessoria-TomTom)!
|
|
1136
|
-
|
|
1137
|
-
- **Breaking:** map: `MapColorName` and `mapColorNames` gain `accent`, the colour for what is drawn on top of the map, so a `Record<MapColorName, …>` needs an entry for it
|
|
1138
|
-
- map: `setMapColors` and the `colors.accent` knob set `accent`, and `map.mapColors` publishes the map colours in effect
|
|
1139
|
-
- map: routes, geometries, place pins, connections and entry points default to the accent and follow it when it changes; a colour the caller set still wins
|
|
1140
|
-
- map: `RoutingModule.getConfig()` returns the configuration as given, without the layers the module built from it
|
|
1141
|
-
- map: a `PlacesModule` default pin `style` repaints the pin when it changes, and an `icon.default.image` is never replaced by it
|
|
1142
|
-
- services: `trafficAreaAnalytics` parses its response when an app transpiles the SDK to ES5, as Sandpack or Babel over `node_modules` does, instead of failing with "undefined is not iterable"
|
|
1143
|
-
|
|
1144
|
-
- [#2334](https://github.com/tomtom-internal/maps-sdk-js/pull/2334) [`1fa401b`](https://github.com/tomtom-internal/maps-sdk-js/commit/1fa401bb7a7ab40061caad66651ee509f96c44be) Thanks [@carlosprietofernandez-tomtom](https://github.com/carlosprietofernandez-tomtom)! - **Breaking:** core: `AreaAnalyticsFeatureProperties.name` is optional: the API echoes a region name only from a request that names one, and the SDK's names none, so `trafficAreaAnalytics` leaves it out instead of setting it to `undefined`
|
|
1154
|
+
- **Breaking:** map: `TrafficAreaAnalyticsModule.applyConfig` replaces the configuration instead of merging into it: what it leaves out, including each metric its `metricConfig` leaves out and each layer its `beforeLayerConfig` leaves out, goes back to the default. Merge with `updateConfig`, and change one metric with `setColor`, `setHeight` or `filter` given that metric (`setColor('heat', ['speed'])`) ([#2312](https://github.com/tomtom-internal/maps-sdk-js/pull/2312))
|
|
1155
|
+
|
|
1156
|
+
- **Breaking:** map: `BaseMapModuleConfig.layerGroupsVisibility` and the `BaseMapLayerGroupsVisibility` type are removed; use `groups`, which keeps a visibility per layer group ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335)):
|
|
1157
|
+
- `layerGroupsVisibility: { mode: 'include', names: ['water', 'ferries'], visible: false }` becomes `groups: { water: { visible: false }, ferries: { visible: false } }`
|
|
1158
|
+
- `layerGroupsVisibility: { mode: 'exclude', names: ['land', 'roads'], visible: false }` becomes `visible: false, groups: { land: {}, roads: {} }` — an entry without `visible` draws its group as the style ships it
|
|
1159
|
+
- **Breaking:** map: `BaseMapModule.getConfig()` and its `config-change` event carry `groups`, one entry per group `setVisible` has set ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1160
|
+
- **Breaking:** map: `BaseMapModule.applyConfig` replaces the configuration instead of merging into it: groups the new configuration leaves out go back to how the style ships them. Merge with `updateConfig` ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1161
|
+
- **Breaking:** map: `BaseMapModule.resetConfig` puts every base-map layer back to how the style ships it, instead of leaving hidden groups hidden, or showing every layer, those the style ships hidden included, when the whole base map was hidden ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1162
|
+
- **Breaking:** map: the `basemap.roadShields` styling knob is removed; use `roads.shields`, which now toggles the whole `roadShields` group ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1163
|
+
- map: `BaseMapModuleConfig.groups` keeps a visibility per base-map layer group, applied in order over `visible`; an entry without `visible` draws its group as the style ships it ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1164
|
+
- map: a style change restores every `BaseMapModule.setVisible` group call, not only the last one ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1165
|
+
- map: `BaseMapModule.setVisible` over a group removes the `basemap.<group>`, `buildings.*` or `roads.shields` knob for it from `StylingModule`, so the later call still wins after a style change ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1166
|
+
- map: `pois.microMarkers`, `roads.arrows`, `roads.restricted`, `roads.underConstruction` and `roads.exitNumbers` only hide within what `POIsModule` and `BaseMapModule` show: `true` no longer shows layers their module hid, `POIsModule.setVisible(true)` or `BaseMapModule.setVisible(true)` keeps a knob's `false`, and resetting the knob leaves the layers as the module has them ([#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335))
|
|
1167
|
+
|
|
1168
|
+
- **Breaking:** map: `IncidentFocusStyle.widthScale` is `widthFactor`, clamped to the new `INCIDENT_FOCUS_WIDTH_FACTOR_RANGE` (`1`–`1.8`, default `1.6`); migrate `focus: { widthScale }` to `focus: { widthFactor }` ([#2317](https://github.com/tomtom-internal/maps-sdk-js/pull/2317))
|
|
1169
|
+
|
|
1170
|
+
- **Breaking:** map: `TrafficIncidentsModule` has one set of filters for the incident lines and their icons. `TrafficIncidentsModuleConfig.icons` is the new `IncidentIconsConfig`, `{ visible? }` only, and `filter()` takes a single argument; `IncidentsCommonConfig` is removed. Migrate by moving what `icons.filters` or `filter()`'s second argument held into the root `filters` ([#2313](https://github.com/tomtom-internal/maps-sdk-js/pull/2313))
|
|
1171
|
+
- map: the style parts the SDK adds — traffic flow, traffic incidents and the hillshade — are hidden until you show them, stated in the traffic flow, traffic incidents and terrain guides ([#2313](https://github.com/tomtom-internal/maps-sdk-js/pull/2313))
|
|
1172
|
+
|
|
1173
|
+
- **Breaking:** map: `isVisible()` on `TrafficIncidentOverlayModule` and `TrafficAreaAnalyticsModule` reports the module's `visible` setting — `true` unless hidden with `setVisible(false)` or `visible: false` — whatever is shown. A module showing nothing returns `true`. To know whether data is drawn, read `getShown()`: `overlay.getShown().incidents.features.length > 0`, or the `heatmap`/`hexgrid`/`square` collections of `TrafficAreaAnalyticsModule.getShown()` ([#2316](https://github.com/tomtom-internal/maps-sdk-js/pull/2316))
|
|
1174
|
+
- map: `TrafficIncidentOverlayModule.show()` keeps the incidents hidden while the module is set to `visible: false` ([#2316](https://github.com/tomtom-internal/maps-sdk-js/pull/2316))
|
|
1175
|
+
- map: a style change restores a hidden `TrafficAreaAnalyticsModule` without emitting `config-change` ([#2316](https://github.com/tomtom-internal/maps-sdk-js/pull/2316))
|
|
1176
|
+
|
|
1177
|
+
- **Breaking:** services: `CommonServiceParams.customServiceBaseURL` is removed; every service builds its endpoint URL from the global `commonBaseURL` ([#2345](https://github.com/tomtom-internal/maps-sdk-js/pull/2345))
|
|
1178
|
+
- **Breaking:** services: an `apiVersion` passed at runtime, per call or through `TomTomConfig.put`, is ignored; each service calls the API version it pins ([#2345](https://github.com/tomtom-internal/maps-sdk-js/pull/2345))
|
|
1179
|
+
- **Breaking:** map: `StandardStyle.version` is removed; standard styles always load the Orbis style version the SDK is verified against ([#2345](https://github.com/tomtom-internal/maps-sdk-js/pull/2345))
|
|
1180
|
+
- **Breaking:** map: the undocumented `DEFAULT_STYLE_VERSION` export is removed ([#2345](https://github.com/tomtom-internal/maps-sdk-js/pull/2345))
|
|
1181
|
+
|
|
1182
|
+
- **Breaking:** map: `GeometriesModuleConfig.theme` is `fillStyle`, `GeometryTheme` is `GeometryFillStyle` and `geometryThemes` is `geometryFillStyles`; the values are unchanged ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1183
|
+
- **Breaking:** map: a feature sets its own fill style with `properties.fillStyle` instead of `properties.theme` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1184
|
+
- **Breaking:** map: `themedGeometryConfig` is `fillStyledGeometryConfig` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1185
|
+
- **Breaking:** map: `GeometriesModuleConfig.textConfig: { textField }` is `label: { text }`, `GeometryTextConfig` is `GeometryLabel`, and `GeometriesModule.applyTextConfig` takes `{ text }` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1186
|
+
- **Breaking:** map: `GeometriesModuleConfig.lineLabelConfig` is `lineLabel` and `GeometryLineLabelConfig` is `GeometryLineLabel`; its `textSize`, `textColor`, `textHaloColor`, `textHaloWidth`, `textOpacity` and `textOffset` are `size`, `color`, `haloColor`, `haloWidth`, `opacity` and `offset` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1187
|
+
- **Breaking:** map: `GeometryFillConfig.color` takes a colour, a palette name or a MapLibre expression; legacy MapLibre function objects (`{ stops }`) are no longer accepted ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1188
|
+
- map: `GeometriesModuleConfig.color` colours a module's fill and border at once; `fill.color`, `line.color` and a feature's own `color` override it, and the map accent applies only while it is unset ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1189
|
+
- map: `LabelConfig` is the label styling every module shares — `size`, `color`, `haloColor`, `haloWidth`, `opacity` and `font` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1190
|
+
- map: `label` styles the geometry titles with `LabelConfig`, and `lineLabel` gains `font` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1191
|
+
- map: a MapLibre expression in `fill.color` renders, on the fill and on a border without its own `line.color`; an accent change no longer redraws a module that sets `fill.color` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1192
|
+
|
|
1193
|
+
- **Breaking:** core: `ChargingPoint.evseId` is optional — some operators publish none, in search results and in `evChargingStationsAvailability()` alike ([#2226](https://github.com/tomtom-internal/maps-sdk-js/pull/2226))
|
|
1194
|
+
- services: EV charging places from `discoverPlaces()`, `discoverOnePlace()` and `getPlaceDetails()` carry `chargingPark.chargingStations` — each station's charging points (EVSEs) with `capabilities`, `restrictions`, connectors and `evseId`, as the availability service already returns them ([#2226](https://github.com/tomtom-internal/maps-sdk-js/pull/2226))
|
|
1195
|
+
- services: route charging stops carry `dataSources.chargingAvailability.id`, so `getPlaceWithEVAvailability()` adds their availability as it does for search results ([#2226](https://github.com/tomtom-internal/maps-sdk-js/pull/2226))
|
|
1196
|
+
- core: `ChargingStation` takes its charging point type as a parameter, and `StaticChargingPoint` describes a charging point without real-time status ([#2226](https://github.com/tomtom-internal/maps-sdk-js/pull/2226))
|
|
1197
|
+
- services: `connectorAvailabilities[].connector.chargingSpeed` is set, and a charging point without `capabilities` or `restrictions` gets empty lists ([#2226](https://github.com/tomtom-internal/maps-sdk-js/pull/2226))
|
|
1198
|
+
- services: `getPlaceWithEVAvailability()` counts `chargingPark.connectors` from the availability when the place has none of its own ([#2226](https://github.com/tomtom-internal/maps-sdk-js/pull/2226))
|
|
1199
|
+
|
|
1200
|
+
- **Breaking:** services: the options that drop results — `poiCategories`, `poiBrands`, `indexes`, `geographyTypes`, `connectors`, `fuelTypes`, `minPowerKW`, `maxPowerKW` and `countries` — move under one `filters` object: `PlaceFilters` on the places searches, plus `GeographicFilters` (`countries`) on fuzzy search and geocoding. Geometry and along-route search take no `countries`, which they never sent ([#2193](https://github.com/tomtom-internal/maps-sdk-js/pull/2193))
|
|
1201
|
+
- **Breaking:** services: `offset` gives way to an opaque `cursor`: pass a fuzzy search or geocoding response's `properties.nextCursor` back unchanged; a value the SDK did not mint throws. `SearchSummary.offset` becomes `nextCursor`, absent when no further page can be served — including once the next page would start past result 1900, which ends pagination rather than failing validation ([#2193](https://github.com/tomtom-internal/maps-sdk-js/pull/2193))
|
|
1202
|
+
- services: geocoding responses carry the search summary as `properties`, `nextCursor` included ([#2193](https://github.com/tomtom-internal/maps-sdk-js/pull/2193))
|
|
1203
|
+
|
|
1204
|
+
- **Breaking:** services: `getPlaceWithEVAvailability` and `getPlacesWithEVAvailability` reject with `SDKAbortError` when their `signal` is aborted, instead of reporting the cancellation as missing availability data. Every other request failure still resolves to `undefined`, and the sequential run now stops at the cancelled station rather than working through the rest of the list ([#2201](https://github.com/tomtom-internal/maps-sdk-js/pull/2201))
|
|
1205
|
+
|
|
1206
|
+
- **Breaking:** map: `SectionSignConfig.minzoom` and `CountryCrossingConfig.minzoom` are renamed `minZoom`, as every other display config spells its zoom threshold; migrate by renaming the key ([#2311](https://github.com/tomtom-internal/maps-sdk-js/pull/2311))
|
|
1207
|
+
|
|
1208
|
+
- **Breaking:** map: `MapColorName` and `mapColorNames` gain `accent`, the colour for what is drawn on top of the map, so a `Record<MapColorName, …>` needs an entry for it ([#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101))
|
|
1209
|
+
- map: `setMapColors` and the `colors.accent` knob set `accent`, and `map.mapColors` publishes the map colours in effect ([#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101))
|
|
1210
|
+
- map: routes, geometries, place pins, connections and entry points default to the accent and follow it when it changes; a colour the caller set still wins ([#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101))
|
|
1211
|
+
- map: `RoutingModule.getConfig()` returns the configuration as given, without the layers the module built from it ([#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101))
|
|
1212
|
+
- map: a `PlacesModule` default pin `style` repaints the pin when it changes, and an `icon.default.image` is never replaced by it ([#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101))
|
|
1213
|
+
- services: `trafficAreaAnalytics` parses its response when an app transpiles the SDK to ES5, as Sandpack or Babel over `node_modules` does, instead of failing with "undefined is not iterable" ([#2101](https://github.com/tomtom-internal/maps-sdk-js/pull/2101))
|
|
1214
|
+
|
|
1215
|
+
- **Breaking:** core: `AreaAnalyticsFeatureProperties.name` is optional: the API echoes a region name only from a request that names one, and the SDK's names none, so `trafficAreaAnalytics` leaves it out instead of setting it to `undefined` ([#2334](https://github.com/tomtom-internal/maps-sdk-js/pull/2334))
|
|
1145
1216
|
|
|
1146
1217
|
### Patch Changes
|
|
1147
1218
|
|
|
1148
|
-
-
|
|
1219
|
+
- services: the `evChargingStationsAvailability()`, `getPlaceWithEVAvailability()` and `getPlacesWithEVAvailability()` examples compile, and `ChargingParkWithAvailability.availability` names the functions that fetch it ([#2327](https://github.com/tomtom-internal/maps-sdk-js/pull/2327))
|
|
1149
1220
|
|
|
1150
|
-
-
|
|
1221
|
+
- map: the `hillshade.exaggeration` knob description, `TerrainModuleConfig.elevationExaggeration` and `TerrainModule.setElevationExaggeration` each name the other: the knob sets how strongly slopes are shaded, the terrain setting the vertical scale of the 3D surface ([#2317](https://github.com/tomtom-internal/maps-sdk-js/pull/2317))
|
|
1151
1222
|
|
|
1152
|
-
-
|
|
1153
|
-
|
|
1154
|
-
- map: `PlacesModule` takes a `cluster` config under the `pin-clustered` theme: `badge` styles the count badge of single-category and mixed-category clusters together, and `source` sets MapLibre's `clusterRadius`, `clusterMaxZoom`, `clusterMinPoints` and your own `clusterProperties` aggregators. Entry points start above a changed `clusterMaxZoom`
|
|
1155
|
-
- map: a `PlacesModule` `layers.cluster`, `clusterBadge`, `clusterCount`, `clusterMixedBadge` or `clusterMixedCount` override merges into that layer's `paint` and `layout` key by key, like the other place layers, instead of replacing them whole
|
|
1223
|
+
- map: `PlacesModule` takes a `cluster` config under the `pin-clustered` theme: `badge` styles the count badge of single-category and mixed-category clusters together, and `source` sets MapLibre's `clusterRadius`, `clusterMaxZoom`, `clusterMinPoints` and your own `clusterProperties` aggregators. Entry points start above a changed `clusterMaxZoom` ([#2203](https://github.com/tomtom-internal/maps-sdk-js/pull/2203))
|
|
1224
|
+
- map: a `PlacesModule` `layers.cluster`, `clusterBadge`, `clusterCount`, `clusterMixedBadge` or `clusterMixedCount` override merges into that layer's `paint` and `layout` key by key, like the other place layers, instead of replacing them whole ([#2203](https://github.com/tomtom-internal/maps-sdk-js/pull/2203))
|
|
1156
1225
|
|
|
1157
|
-
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
- map: `PlacesModule` connection layers and the `GeometriesModule` border keep a `layout.visibility: 'none'` override when data is shown
|
|
1161
|
-
- map: `GeometriesModule` border labels (`lineLabel`) move with the border in `moveBeforeLayer` and follow config changes
|
|
1226
|
+
- map: `PlacesModule` and `GeometriesModule` take a `visible` config field (default `true`) and `setVisible()` / `isVisible()`. Hiding covers every layer the module draws — places, connections and entry points; fills, borders, center labels and border labels — keeps its data, and survives `show()`, `clear()` and style changes. Showing again leaves theme-unused layers and `layout.visibility: 'none'` overrides hidden ([#2315](https://github.com/tomtom-internal/maps-sdk-js/pull/2315))
|
|
1227
|
+
- map: `PlacesModule` connection layers and the `GeometriesModule` border keep a `layout.visibility: 'none'` override when data is shown ([#2315](https://github.com/tomtom-internal/maps-sdk-js/pull/2315))
|
|
1228
|
+
- map: `GeometriesModule` border labels (`lineLabel`) move with the border in `moveBeforeLayer` and follow config changes ([#2315](https://github.com/tomtom-internal/maps-sdk-js/pull/2315))
|
|
1162
1229
|
|
|
1163
|
-
-
|
|
1230
|
+
- services: `reverseGeocode` sets no `dataSources.geometry` on an area result; the ID it set was the place ID, which `geometryData` answers with no geometry. To draw a reverse geocoded area, search it by name with its `geographyType` ([#2308](https://github.com/tomtom-internal/maps-sdk-js/pull/2308))
|
|
1164
1231
|
|
|
1165
|
-
-
|
|
1232
|
+
- core: `getCoordinateAtRouteProgress`, `calculateProgressAtRoutePoint` and the other route progress lookups bisect the route's `progress` instead of scanning all of it, so a lookup on a 30,000-point route takes microseconds rather than a millisecond ([#2181](https://github.com/tomtom-internal/maps-sdk-js/pull/2181))
|
|
1166
1233
|
|
|
1167
|
-
- [#2272](https://github.com/tomtom-internal/maps-sdk-js/pull/2272)
|
|
1168
|
-
|
|
1169
|
-
- map: `RoutingModule` posts a tunnel sign where each tunnel starts, under the map's labels, and a "closed to vehicles" sign where each vehicle-restricted stretch starts, just under the traffic icons, on the new `routeTunnelSymbol` and `routeVehicleRestrictedSymbol` layers
|
|
1170
|
-
- map: `sections.tunnel.icon` and `sections.vehicleRestricted.icon` replace those signs, instead of being accepted and ignored
|
|
1234
|
+
- map: `RoutingModule` posts a tunnel sign where each tunnel starts, under the map's labels, and a "closed to vehicles" sign where each vehicle-restricted stretch starts, just under the traffic icons, on the new `routeTunnelSymbol` and `routeVehicleRestrictedSymbol` layers ([#2272](https://github.com/tomtom-internal/maps-sdk-js/pull/2272))
|
|
1235
|
+
- map: `sections.tunnel.icon` and `sections.vehicleRestricted.icon` replace those signs, instead of being accepted and ignored ([#2272](https://github.com/tomtom-internal/maps-sdk-js/pull/2272))
|
|
1171
1236
|
|
|
1172
|
-
-
|
|
1237
|
+
- services: `createLatestRequest` keeps only the latest of a series of requests. Each `run` aborts the one before it and resolves `{ current: true, value }`, or `{ current: false }` once a newer run or a `cancel` retired it, so a superseded call neither rejects nor paints last. Errors of the current request, a deadline composed onto its signal included, are rethrown ([#2279](https://github.com/tomtom-internal/maps-sdk-js/pull/2279))
|
|
1173
1238
|
|
|
1174
|
-
-
|
|
1239
|
+
- services: the `CommonRoutingParams` examples compile — the heavy-vehicle one drops `travelMode: 'truck'`, the EV one uses `speedsToConsumptionsKWH` — and `VehicleDimensions` states that weight is its only dimension ([#2307](https://github.com/tomtom-internal/maps-sdk-js/pull/2307))
|
|
1175
1240
|
|
|
1176
1241
|
## 0.58.1
|
|
1177
1242
|
|
|
1178
1243
|
### Patch Changes
|
|
1179
1244
|
|
|
1180
|
-
- [#2099](https://github.com/tomtom-internal/maps-sdk-js/pull/2099)
|
|
1181
|
-
|
|
1182
|
-
- map: the `basemap.<group>` and `buildings.*` styling toggles write through `BaseMapModule`, and `styling.get` reads their layers live, so it agrees with `baseMap.isVisible(…)` whichever of the two set the group
|
|
1183
|
-
- map: `basemap.land` reaches the layers `BaseMapModule`'s `land` group does, which leave out the style's sourceless `background`; on `satellite` that is no layer
|
|
1245
|
+
- map: the `basemap.<group>` and `buildings.*` styling toggles write through `BaseMapModule`, and `styling.get` reads their layers live, so it agrees with `baseMap.isVisible(…)` whichever of the two set the group ([#2099](https://github.com/tomtom-internal/maps-sdk-js/pull/2099))
|
|
1246
|
+
- map: `basemap.land` reaches the layers `BaseMapModule`'s `land` group does, which leave out the style's sourceless `background`; on `satellite` that is no layer ([#2099](https://github.com/tomtom-internal/maps-sdk-js/pull/2099))
|
|
1184
1247
|
|
|
1185
|
-
- [#1939](https://github.com/tomtom-internal/maps-sdk-js/pull/1939)
|
|
1186
|
-
|
|
1187
|
-
- services: `trafficIncidentDetails` takes a `polygon`, such as a city boundary from `geometryData`, as a third query mode beside `bbox` and `ids`; the request covers the polygon's bounding box and the response keeps the incidents that intersect the polygon
|
|
1188
|
-
- services: `trafficIncidentDetails` validation rejects a request that sets more than one of `bbox`, `polygon` and `ids`, or none of them; the check that `bbox` and `ids` are not combined was never applied
|
|
1248
|
+
- services: `trafficIncidentDetails` takes a `polygon`, such as a city boundary from `geometryData`, as a third query mode beside `bbox` and `ids`; the request covers the polygon's bounding box and the response keeps the incidents that intersect the polygon ([#1939](https://github.com/tomtom-internal/maps-sdk-js/pull/1939))
|
|
1249
|
+
- services: `trafficIncidentDetails` validation rejects a request that sets more than one of `bbox`, `polygon` and `ids`, or none of them; the check that `bbox` and `ids` are not combined was never applied ([#1939](https://github.com/tomtom-internal/maps-sdk-js/pull/1939))
|
|
1189
1250
|
|
|
1190
1251
|
## 0.58.0
|
|
1191
1252
|
|
|
1192
1253
|
### Minor Changes
|
|
1193
1254
|
|
|
1194
|
-
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
- [#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216)
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
-
|
|
1240
|
-
|
|
1241
|
-
-
|
|
1242
|
-
|
|
1243
|
-
- [#
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
- **Breaking:** core, services: `apiVersion` is removed from `GlobalConfig` and `CommonRoutingParams`; each service picks the API version it calls
|
|
1247
|
-
|
|
1248
|
-
- [#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244) [`d94e12b`](https://github.com/tomtom-internal/maps-sdk-js/commit/d94e12bb142693730a95b7032e9772ff3caf6a31) Thanks [@carlosprietofernandez-tomtom](https://github.com/carlosprietofernandez-tomtom)!
|
|
1249
|
-
|
|
1250
|
-
- **Breaking:** core: each `AreaAnalyticsTimedData` granularity has its own entry type, `AreaAnalyticsYearlyEntry` to `AreaAnalyticsHourlyEntry` and `AreaAnalyticsAverageEntry`, whose time identifiers are required, and `AreaAnalyticsTimedEntry` is their union, so code that builds entries by hand must set them
|
|
1251
|
-
- **Breaking:** core: `AreaAnalyticsFeatureProperties.timezone` is optional: the API echoes it only from a request that names one, and the SDK's names none
|
|
1252
|
-
- services: `trafficAreaAnalytics` reads each `timedData.average` entry's `day` and `hour` from the label the API sends (`FRIDAY-10`) and orders the entries Monday first, instead of numbering them by position in an array the API sorts by label string
|
|
1253
|
-
- services: `trafficAreaAnalytics` reads the `year`, `month`, `week`, `date` and `hour` of each yearly to hourly `timedData` entry from the `time` label the API sends (`2024-08-06T07:00`), instead of numbering daily and hourly entries by position from a start date the Lite response never sends, which gave every one an Invalid Date and shifted the hours whenever an `hours` filter, a `days` list or a day without data left entries out, and leaving yearly, monthly and weekly entries with none
|
|
1254
|
-
- services: `trafficAreaAnalytics` defaults an omitted `endDate` to three days ago, the latest date that always has data, instead of two: the API publishes a day 24 to 48 hours after it ends, so the default window failed during part of each day
|
|
1255
|
-
- services: `trafficAreaAnalytics` documents that its `hours` filter and every `timedData` time identifier are in UTC, since the request names no region timezone
|
|
1256
|
-
|
|
1257
|
-
- [#2215](https://github.com/tomtom-internal/maps-sdk-js/pull/2215) [`b09510c`](https://github.com/tomtom-internal/maps-sdk-js/commit/b09510c42d6863777e2a5fbe09f429cc0cc9b8da) Thanks [@JulianChinAFoeng-TomTom](https://github.com/JulianChinAFoeng-TomTom)!
|
|
1258
|
-
|
|
1259
|
-
- **Breaking:** services: `trafficIncidentDetails` calls Orbis Traffic Incident Details v2, so the request `onAPIRequest` sees carries the API key, version, language and an `Attributes` projection as headers instead of query parameters
|
|
1260
|
-
- **Breaking:** services: remove the `trafficModelId` parameter from `trafficIncidentDetails`; v2 always serves the latest traffic state
|
|
1261
|
-
- **Breaking:** core: remove `TrafficIncidentTMC`, `TrafficIncidentTMCPoint` and `properties.tmc` from `TrafficIncidentProperties`; v2 carries no TMC data
|
|
1262
|
-
- services: `trafficAreaAnalytics` accepts a `startDate` without an `endDate` and measures the range to two days ago, the end date it sends, instead of rejecting every such request
|
|
1263
|
-
- services: `trafficAreaAnalytics` validates a range in the UTC calendar days it sends, and dates hourly and daily entries in UTC, so neither drifts a day with the time of day or a daylight-saving switch
|
|
1255
|
+
- **Breaking:** map: `culori` v4 is a new peer dependency. npm 7+ and Yarn install it for you; pnpm needs `auto-install-peers=true` or `pnpm add culori` ([#2227](https://github.com/tomtom-internal/maps-sdk-js/pull/2227))
|
|
1256
|
+
- map: colour parsing, conversion, luminance and mixing run on culori's tree-shakeable `culori/fn` instead of the SDK's own parser and named-colour table, so an app that also uses culori ships it once ([#2227](https://github.com/tomtom-internal/maps-sdk-js/pull/2227))
|
|
1257
|
+
|
|
1258
|
+
- **Breaking:** services: `GuidanceParams.phonetics` and the `Phonetics` type are removed; `guidance` takes `{ type: 'coded' }` only ([#2213](https://github.com/tomtom-internal/maps-sdk-js/pull/2213))
|
|
1259
|
+
- **Breaking:** core: `TextWithPhonetics` is renamed `InstructionText` and drops `phonetic` and `phoneticLanguageCode`; instruction name fields carry `text` only ([#2213](https://github.com/tomtom-internal/maps-sdk-js/pull/2213))
|
|
1260
|
+
|
|
1261
|
+
- **Breaking:** services: `calculateReachableRange` calls reachable-range API version 3, so the request `onAPIRequest` sees is a `POST` with `data` and `headers` — the API key travels as a `TomTom-Api-Key` header — instead of a `GET` URL ([#2137](https://github.com/tomtom-internal/maps-sdk-js/pull/2137))
|
|
1262
|
+
- **Breaking:** services: `calculateReachableRange` rejects `costModel.avoidAreas`, `when.arriveBy`, and a charge budget it cannot convert (no `model.engine.charging.maxChargeKWH`, or no `vehicle.state` for `remainingChargePCT`) instead of dropping them ([#2137](https://github.com/tomtom-internal/maps-sdk-js/pull/2137))
|
|
1263
|
+
- services: `calculateRoute` sends a vehicle's `currentChargeInkWh` / `currentFuelInLiters` when it has no explicit engine model, and keeps a zero charge, charge percentage or heading on the wire ([#2137](https://github.com/tomtom-internal/maps-sdk-js/pull/2137))
|
|
1264
|
+
|
|
1265
|
+
- **Breaking:** services: the reachable-range budget type `remainingChargeCPT` is `remainingChargePCT`, matching `spentChargePCT` ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1266
|
+
- **Breaking:** services: `reverseGeocode` takes `geographyTypes`, as the other places services do; it was a singular name holding an array ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1267
|
+
- **Breaking:** services: `metricKeyToApiDataType` is no longer exported ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1268
|
+
- **Breaking:** services: generic and combustion vehicles take no `preferences`, and the `VehiclePreferences` type is removed; an electric vehicle's `preferences` is `ElectricVehiclePreferences` ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1269
|
+
- **Breaking:** map: the module config types follow `<Module>Config` — `TrafficFlowModuleConfig`, `TrafficIncidentsModuleConfig`, `TrafficIncidentOverlayModuleConfig`, `TrafficAreaAnalyticsModuleConfig` replace `FlowConfig`, `IncidentsConfig`, `TrafficIncidentOverlayConfig`, `TrafficAreaAnalyticsConfig` ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1270
|
+
- **Breaking:** map: the `FilterShowMode` value `'all_except'` is `'all-except'`, in the POI, traffic flow and traffic incident filters ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1271
|
+
- map: `filterShowModes` lists the `FilterShowMode` values at runtime ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1272
|
+
- services: `discoverOnePlace` and `geocodeOne` also take a params object (everything but `limit`), so a single-result lookup can carry `geoBias` or a `signal` ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1273
|
+
|
|
1274
|
+
- **Breaking:** map: `eventState` is typed `EventState`, which adds `recently-hovered`, so your own `['has', 'eventState']` expressions match a feature for its grace period; exclude that state or set `hoverGracePeriodMS: 0` ([#2197](https://github.com/tomtom-internal/maps-sdk-js/pull/2197))
|
|
1275
|
+
- map: `PlacesModule` draws the entry points of shown places with `entryPoints` on its config — for all places or only hovered or clicked ones, from a minimum zoom — and `places.events.entryPoints` hands each back as a point feature with its place attached ([#2197](https://github.com/tomtom-internal/maps-sdk-js/pull/2197))
|
|
1276
|
+
- map: a GeoJSON-backed feature the pointer leaves stays `recently-hovered` for `hoverGracePeriodMS` (default 400, on the map's or a module's `events`); the SDK's layers draw it as no state ([#2197](https://github.com/tomtom-internal/maps-sdk-js/pull/2197))
|
|
1277
|
+
|
|
1278
|
+
- **Breaking:** core: 67 `POICategory` values take their Places Search v3 name, upper-cased — among them `GAS_STATION` → `FUEL_STATION`, `ELECTRIC_VEHICLE_STATION` → `CHARGING_LOCATION`, `HOTEL_MOTEL` → `HOTEL_OR_MOTEL`, `SHOPPING_CENTER` → `MALL`, `SUPERMARKETS_HYPERMARKETS` → `SUPERMARKET` ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1279
|
+
- **Breaking:** core: five `POICategory` values merge into the v3 type they share, keeping both V2 ids: `COLLEGE_UNIVERSITY` → `COLLEGE_OR_UNIVERSITY`, `LEISURE_SPORTS_CENTER` → `SPORTS_CENTER`, `OPEN_PARKING_AREA` → `OPEN_CAR_PARKING_AREA`, `PERFORMING_ARTS_THEATER` → `THEATER`, `ROAD_TRAFFIC_CONTROL_CENTER` → `TRAFFIC_CONTROL_DEPARTMENT` ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1280
|
+
- **Breaking:** services: `autocompleteSearch` and its `AutocompleteSearch*` types are no longer exported — `getSearchSuggestions()` returns its brand and category suggestions, alone with `filters: { kinds: ['brand', 'category'] }` or ranked with places ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1281
|
+
- **Breaking:** services: the places functions take intent-based names that line up with Places Search v3's `suggest` / `discover` / `details`: `search` → `discoverPlaces`, `searchOne` → `discoverOnePlace`, `placeById` → `getPlaceDetails` ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1282
|
+
- **Breaking:** services: the types follow — `SearchResponse` → `DiscoverPlacesResponse`, `PlaceByIdParams` / `PlaceByIdResponse` → `PlaceDetailsParams` / `PlaceDetailsResponse`; a place-details error reports its service as `PlaceDetails` ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1283
|
+
- **Breaking:** core: `POICategory` drops `PUB_FOOD`, `POLYNESIAN_RESTAURANT`, `OTHER_WINTER_SPORT` and `SNOOKER_POOL_BILLIARD`, which the category endpoint no longer returns. Filtering on one already matched nothing. The map's `poiCategoryGroups.FOOD_DRINKS_GROUP` no longer lists `PUB_FOOD` ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1284
|
+
- services: `getSearchSuggestions()` returns one ranked list from the search and autocomplete arms, blended like Places Search v3: at most one brand or category leads, then places ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1285
|
+
- core: `POICategory` gains the seven categories the endpoint returns that the vendored table was missing, so `getPOICategories()` and category filters now reach them, and `PlacesModule` draws an icon for each ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1286
|
+
- services: `discoverPlaces`, `geocode` and `getSearchSuggestions` encode the query in the request path, so a query containing `/`, `?` or `#` is answered instead of failing with a 404 ([#2189](https://github.com/tomtom-internal/maps-sdk-js/pull/2189))
|
|
1287
|
+
|
|
1288
|
+
- **Breaking:** services: remove the `customizeService` export, and the optional second argument every service function took to override its request building, sending or response parsing. `calculateReachableRanges` keeps its second `options` argument ([#2212](https://github.com/tomtom-internal/maps-sdk-js/pull/2212))
|
|
1289
|
+
|
|
1290
|
+
- **Breaking:** map: `StylingModule.describe()` is removed, together with the `StylingCatalogue`, `StylingKnobDescriptor`, `StylingPresetDescriptor` and shared `KnobDescriptor` types. The knob catalogue is static data now: `stylingKnobCatalogue` lists every knob's kind, description, range or options and `appliesTo`, `stylingPresetCatalogue` every preset with its settings, and `styling.get(id)` reads the value in force on a live map. ([#2223](https://github.com/tomtom-internal/maps-sdk-js/pull/2223))
|
|
1291
|
+
|
|
1292
|
+
- **Breaking:** core: `GlobalConfig.trackingId` is removed, together with the `Tracking-ID` request header it set ([#2231](https://github.com/tomtom-internal/maps-sdk-js/pull/2231))
|
|
1293
|
+
- **Breaking:** core, services: `apiVersion` is removed from `GlobalConfig` and `CommonRoutingParams`; each service picks the API version it calls ([#2231](https://github.com/tomtom-internal/maps-sdk-js/pull/2231))
|
|
1294
|
+
|
|
1295
|
+
- **Breaking:** core: each `AreaAnalyticsTimedData` granularity has its own entry type, `AreaAnalyticsYearlyEntry` to `AreaAnalyticsHourlyEntry` and `AreaAnalyticsAverageEntry`, whose time identifiers are required, and `AreaAnalyticsTimedEntry` is their union, so code that builds entries by hand must set them ([#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244))
|
|
1296
|
+
- **Breaking:** core: `AreaAnalyticsFeatureProperties.timezone` is optional: the API echoes it only from a request that names one, and the SDK's names none ([#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244))
|
|
1297
|
+
- services: `trafficAreaAnalytics` reads each `timedData.average` entry's `day` and `hour` from the label the API sends (`FRIDAY-10`) and orders the entries Monday first, instead of numbering them by position in an array the API sorts by label string ([#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244))
|
|
1298
|
+
- services: `trafficAreaAnalytics` reads the `year`, `month`, `week`, `date` and `hour` of each yearly to hourly `timedData` entry from the `time` label the API sends (`2024-08-06T07:00`), instead of numbering daily and hourly entries by position from a start date the Lite response never sends, which gave every one an Invalid Date and shifted the hours whenever an `hours` filter, a `days` list or a day without data left entries out, and leaving yearly, monthly and weekly entries with none ([#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244))
|
|
1299
|
+
- services: `trafficAreaAnalytics` defaults an omitted `endDate` to three days ago, the latest date that always has data, instead of two: the API publishes a day 24 to 48 hours after it ends, so the default window failed during part of each day ([#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244))
|
|
1300
|
+
- services: `trafficAreaAnalytics` documents that its `hours` filter and every `timedData` time identifier are in UTC, since the request names no region timezone ([#2244](https://github.com/tomtom-internal/maps-sdk-js/pull/2244))
|
|
1301
|
+
|
|
1302
|
+
- **Breaking:** services: `trafficIncidentDetails` calls Orbis Traffic Incident Details v2, so the request `onAPIRequest` sees carries the API key, version, language and an `Attributes` projection as headers instead of query parameters ([#2215](https://github.com/tomtom-internal/maps-sdk-js/pull/2215))
|
|
1303
|
+
- **Breaking:** services: remove the `trafficModelId` parameter from `trafficIncidentDetails`; v2 always serves the latest traffic state ([#2215](https://github.com/tomtom-internal/maps-sdk-js/pull/2215))
|
|
1304
|
+
- **Breaking:** core: remove `TrafficIncidentTMC`, `TrafficIncidentTMCPoint` and `properties.tmc` from `TrafficIncidentProperties`; v2 carries no TMC data ([#2215](https://github.com/tomtom-internal/maps-sdk-js/pull/2215))
|
|
1305
|
+
- services: `trafficAreaAnalytics` accepts a `startDate` without an `endDate` and measures the range to two days ago, the end date it sends, instead of rejecting every such request ([#2215](https://github.com/tomtom-internal/maps-sdk-js/pull/2215))
|
|
1306
|
+
- services: `trafficAreaAnalytics` validates a range in the UTC calendar days it sends, and dates hourly and daily entries in UTC, so neither drifts a day with the time of day or a daylight-saving switch ([#2215](https://github.com/tomtom-internal/maps-sdk-js/pull/2215))
|
|
1264
1307
|
|
|
1265
1308
|
### Patch Changes
|
|
1266
1309
|
|
|
1267
|
-
-
|
|
1310
|
+
- map: the API reference of `BaseMapModule`, `POIsModule`, `TerrainModule`, `TrafficFlowModule` and `TrafficIncidentsModule` states what each module owns and which `StylingModule` knobs own the look ([#2098](https://github.com/tomtom-internal/maps-sdk-js/pull/2098))
|
|
1268
1311
|
|
|
1269
|
-
-
|
|
1312
|
+
- map: a source comment in the place-pin category mapping no longer links to an internal repository ([#2232](https://github.com/tomtom-internal/maps-sdk-js/pull/2232))
|
|
1270
1313
|
|
|
1271
|
-
-
|
|
1314
|
+
- The `maplibre-gl` peer dependency requires `^6.11.2`, and the `zod` peer dependency `^4.6.5` ([#2217](https://github.com/tomtom-internal/maps-sdk-js/pull/2217))
|
|
1272
1315
|
|
|
1273
|
-
- [#2222](https://github.com/tomtom-internal/maps-sdk-js/pull/2222)
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
- map: `TOLL_GATE` maps to the base-map `toll_plaza` category, so its `circle-icon` and `base-map` icons draw and `POIsModule` category filters match toll plazas
|
|
1277
|
-
- map: `THEATER`, `SPORTS_CENTER`, `SQUASH_COURT` and `SCHOOL_BUS_COMPANY` places draw the closest base-map icon under the `circle-icon`, `base-map` and `pin-clustered` themes, instead of the default place pin
|
|
1316
|
+
- map: `PlacesModule` pins for `ADVENTURE_SPORTS_FACILITY`, `COMMUNITY_CENTER`, `EMBASSY`, `EMERGENCY_MEDICAL_SERVICE` and `ENTERTAINMENT` draw the icon of the category they share a base-map icon with, instead of no icon at all ([#2222](https://github.com/tomtom-internal/maps-sdk-js/pull/2222))
|
|
1317
|
+
- map: `TOLL_GATE` maps to the base-map `toll_plaza` category, so its `circle-icon` and `base-map` icons draw and `POIsModule` category filters match toll plazas ([#2222](https://github.com/tomtom-internal/maps-sdk-js/pull/2222))
|
|
1318
|
+
- map: `THEATER`, `SPORTS_CENTER`, `SQUASH_COURT` and `SCHOOL_BUS_COMPANY` places draw the closest base-map icon under the `circle-icon`, `base-map` and `pin-clustered` themes, instead of the default place pin ([#2222](https://github.com/tomtom-internal/maps-sdk-js/pull/2222))
|
|
1278
1319
|
|
|
1279
|
-
-
|
|
1320
|
+
- services: `calculateReachableRange` and `calculateReachableRanges` keep the API key, base URLs, `retry`, callbacks and `signal` out of each polygon's `properties`, now typed as the new `ReachableRangeProperties` — the request parameters without the `CommonServiceParams` fields ([#2230](https://github.com/tomtom-internal/maps-sdk-js/pull/2230))
|
|
1280
1321
|
|
|
1281
|
-
-
|
|
1322
|
+
- services: the TSDoc of reachable ranges, Long Distance EV Routing, EV charging stations availability and traffic area analytics says which API key access each needs; reachable ranges are marked as a private preview ([#2242](https://github.com/tomtom-internal/maps-sdk-js/pull/2242))
|
|
1282
1323
|
|
|
1283
|
-
-
|
|
1324
|
+
- map: `TomTomMap.updateEventsConfig` changes the map's user events configuration at runtime, such as the long-hover delays and `hoverGracePeriodMS`; what it leaves out keeps its value ([#2254](https://github.com/tomtom-internal/maps-sdk-js/pull/2254))
|
|
1284
1325
|
|
|
1285
|
-
- [#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237)
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
- map: `styling.get('colors.<name>')` reports a colour without the opacity of the layer it was read from, so setting it back changes nothing
|
|
1295
|
-
- map: `artificial` is read from the city-scale built-up colour, the one the style's theme sets, and `setMapColors` measures its shades from it, instead of from the more saturated small-scale stop
|
|
1326
|
+
- map: on the mono styles, `setMapColors({ land })` re-derives the other nine colours from it with the formulas the styles' themes compile them with; colours given outright still win ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1327
|
+
- map: `setMapColors` darkens or lightens the education, healthcare, leisure and shopping land-use and building tints with `artificial`, keeping their hue and scaling their saturation with its luminance as the styles' themes do, instead of leaving them at the style's pastel lightness under a dark built-up colour ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1328
|
+
- map: a pure grey map colour or colour knob derives grey shades, instead of shades tinted towards red ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1329
|
+
- map: `setMapColors` recolours railway outlines with `artificial` along with their dashes, instead of leaving them at the style's grey ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1330
|
+
- map: `setMapColors` paints water, roads, built-up areas and labels in the colour given, on the mono styles too, instead of offsetting them from a glacier, restricted-access or city-label literal ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1331
|
+
- map: `setMapColors` keeps the opacity of translucent label halos, instead of painting them opaque ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1332
|
+
- map: `setMapColors` recolours motorway, trunk and primary link roads with `roadMajor`, instead of with `road` ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1333
|
+
- map: `styling.get('colors.<name>')` reports a colour without the opacity of the layer it was read from, so setting it back changes nothing ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1334
|
+
- map: `artificial` is read from the city-scale built-up colour, the one the style's theme sets, and `setMapColors` measures its shades from it, instead of from the more saturated small-scale stop ([#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237))
|
|
1296
1335
|
|
|
1297
|
-
-
|
|
1336
|
+
- map: replacing the image of a `ferry` or `tollRoad` section icon through `sections.<type>.icon` keeps the zoom-ramped size its layer draws with, instead of flattening it to 1; `icon.size` still sets one when given ([#2224](https://github.com/tomtom-internal/maps-sdk-js/pull/2224))
|
|
1298
1337
|
|
|
1299
|
-
-
|
|
1338
|
+
- map: `toHsl`, `formatStyleHsl` and `HslColor` are exported, the colour rules the map-theme plugin shares with the recolour ([#2094](https://github.com/tomtom-internal/maps-sdk-js/pull/2094))
|
|
1300
1339
|
|
|
1301
|
-
- [#2247](https://github.com/tomtom-internal/maps-sdk-js/pull/2247)
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
- services: `trafficAreaAnalytics` reads `anomalies` keyed by the abbreviated metric fields the API sends (`v`, `c`), instead of data type names, which dropped every anomaly; each anomaly's times are read as UTC, and its `labels` are the names of the public holidays it overlaps
|
|
1305
|
-
- services: `trafficAreaAnalytics` documents that `anomalies` is empty: the service detects anomalies only over 35 days or more, beyond a request's 31-day limit
|
|
1340
|
+
- services: `trafficAreaAnalytics` reads `properties.startDate` and `endDate` as the earliest and latest of the `days` the API lists, at midnight UTC, instead of fields the Lite response never sends, which left both an Invalid Date ([#2247](https://github.com/tomtom-internal/maps-sdk-js/pull/2247))
|
|
1341
|
+
- services: `trafficAreaAnalytics` reads `anomalies` keyed by the abbreviated metric fields the API sends (`v`, `c`), instead of data type names, which dropped every anomaly; each anomaly's times are read as UTC, and its `labels` are the names of the public holidays it overlaps ([#2247](https://github.com/tomtom-internal/maps-sdk-js/pull/2247))
|
|
1342
|
+
- services: `trafficAreaAnalytics` documents that `anomalies` is empty: the service detects anomalies only over 35 days or more, beyond a request's 31-day limit ([#2247](https://github.com/tomtom-internal/maps-sdk-js/pull/2247))
|
|
1306
1343
|
|
|
1307
1344
|
## 0.57.0
|
|
1308
1345
|
|
|
1309
1346
|
### Minor Changes
|
|
1310
1347
|
|
|
1311
|
-
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
- **Breaking:** services: `SearchSummary.totalResults` and `SearchSummary.fuzzyLevel` are optional — guard them rather than assuming a number
|
|
1315
|
-
- services: `customizeService` builders document how to send the credential yourself, including `credentials: 'include'` under a credentials proxy via `isProxyCredentialsMode(config)`
|
|
1348
|
+
- **Breaking:** services: the places services send the API key and API version as `TomTom-Api-Key` / `TomTom-Api-Version` headers instead of `key=` in the URL, so a request builder now returns `{ url, headers }` and a proxy has to forward those headers ([#2185](https://github.com/tomtom-internal/maps-sdk-js/pull/2185))
|
|
1349
|
+
- **Breaking:** services: `SearchSummary.totalResults` and `SearchSummary.fuzzyLevel` are optional — guard them rather than assuming a number ([#2185](https://github.com/tomtom-internal/maps-sdk-js/pull/2185))
|
|
1350
|
+
- services: `customizeService` builders document how to send the credential yourself, including `credentials: 'include'` under a credentials proxy via `isProxyCredentialsMode(config)` ([#2185](https://github.com/tomtom-internal/maps-sdk-js/pull/2185))
|
|
1316
1351
|
|
|
1317
|
-
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
- **Breaking:** map: the `view.terrain` and `view.terrainExaggeration` styling knobs and the `terrain` preset are removed — `TerrainModule.get(map, { elevation: true, elevationExaggeration })` raises the terrain instead, and loads the elevation style part the knob could not
|
|
1321
|
-
- map: 3D terrain with `TerrainModule` — `elevation` and `elevationExaggeration` raise the map surface from the same elevation data the hillshade shades, restored after every style change
|
|
1352
|
+
- **Breaking:** map: `TerrainModule` replaces `HillshadeModule` — `TerrainModule.get(map, { hillshade: true })` for what `HillshadeModule.get(map, { visible: true })` did, `setHillshadeVisible` for `setVisible` ([#2056](https://github.com/tomtom-internal/maps-sdk-js/pull/2056))
|
|
1353
|
+
- **Breaking:** map: the `view.terrain` and `view.terrainExaggeration` styling knobs and the `terrain` preset are removed — `TerrainModule.get(map, { elevation: true, elevationExaggeration })` raises the terrain instead, and loads the elevation style part the knob could not ([#2056](https://github.com/tomtom-internal/maps-sdk-js/pull/2056))
|
|
1354
|
+
- map: 3D terrain with `TerrainModule` — `elevation` and `elevationExaggeration` raise the map surface from the same elevation data the hillshade shades, restored after every style change ([#2056](https://github.com/tomtom-internal/maps-sdk-js/pull/2056))
|
|
1322
1355
|
|
|
1323
1356
|
### Patch Changes
|
|
1324
1357
|
|
|
1325
|
-
- [#2092](https://github.com/tomtom-internal/maps-sdk-js/pull/2092)
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
- map: `hillshade.*` styling knobs set the shading's method, light direction, strength, maximum zoom and colours
|
|
1329
|
-
- map: `styling.layers.query(…)` edits the paint, layout, filter or visibility of the style layers a query selects, re-applied after every style change and undone by `reset()`
|
|
1358
|
+
- map: `basemap.<group>` styling knobs toggle every base-map layer group `BaseMapModule` knows, bar the two building groups the `buildings.*` knobs already cover ([#2092](https://github.com/tomtom-internal/maps-sdk-js/pull/2092))
|
|
1359
|
+
- map: `hillshade.*` styling knobs set the shading's method, light direction, strength, maximum zoom and colours ([#2092](https://github.com/tomtom-internal/maps-sdk-js/pull/2092))
|
|
1360
|
+
- map: `styling.layers.query(…)` edits the paint, layout, filter or visibility of the style layers a query selects, re-applied after every style change and undone by `reset()` ([#2092](https://github.com/tomtom-internal/maps-sdk-js/pull/2092))
|
|
1330
1361
|
|
|
1331
|
-
- [#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100)
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
- map: `TrafficAreaAnalyticsModule.applyConfig` with a new `activeMetric` filters and scales the layers by that metric rather than the previous one
|
|
1337
|
-
- map: a clean style switch (`setStyle(style, { resetState: true })`) leaves every module on the configuration `resetConfig()` returns to, and `CustomGeoJSONModule` survives it instead of throwing
|
|
1362
|
+
- map: every module has `updateConfig(partial)`, which changes the given properties and keeps the rest of the configuration, whatever that module's `applyConfig` does with a whole one ([#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100))
|
|
1363
|
+
- map: `BaseMapModule.resetConfig()` empties the configuration instead of keeping the previous one ([#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100))
|
|
1364
|
+
- map: `TrafficAreaAnalyticsModule.resetConfig()` returns the display mode, metric, colours, filters, region and layer positions to their defaults, instead of only clearing `getConfig()` ([#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100))
|
|
1365
|
+
- map: `TrafficAreaAnalyticsModule.applyConfig` with a new `activeMetric` filters and scales the layers by that metric rather than the previous one ([#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100))
|
|
1366
|
+
- map: a clean style switch (`setStyle(style, { resetState: true })`) leaves every module on the configuration `resetConfig()` returns to, and `CustomGeoJSONModule` survives it instead of throwing ([#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100))
|
|
1338
1367
|
|
|
1339
1368
|
## 0.56.0
|
|
1340
1369
|
|
|
1341
1370
|
### Minor Changes
|
|
1342
1371
|
|
|
1343
|
-
- [#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188)
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
- services: places GA phase 1 - remove the experimentalSearch export
|
|
1353
|
-
- map: draw border crossings under the waypoint pins
|
|
1372
|
+
- **Breaking:** map: precise types for custom styles, places props and traffic data ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1373
|
+
- **Breaking:** services: deduplicate vehicle energy encoding, tighten EV types ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1374
|
+
- map: label a route's border crossings with the countries they join ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1375
|
+
- map: post speed limit signs where the limit changes ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1376
|
+
- map: styling GA phase 2 - view knobs, presets, map-effects plugin ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1377
|
+
- map: styling GA phase 3 - setMapColors map colours and exportStyle ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1378
|
+
- routing: phase 6 - show what the SDK adds over calling the API directly ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1379
|
+
- services: places GA phase 1 - remove the experimentalSearch export ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1380
|
+
- map: draw border crossings under the waypoint pins ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1354
1381
|
|
|
1355
|
-
- [#2175](https://github.com/tomtom-internal/maps-sdk-js/pull/2175)
|
|
1356
|
-
|
|
1357
|
-
- **Breaking:** map: `StylingKnobValueOf` narrows to each knob's kind, so `StylingModule.set` rejects a value of the wrong kind at compile time
|
|
1358
|
-
- map: `stylingColorKnobIds` and `StylingColorKnobId` name every styling colour knob, and `KnobKind` gains `colors`
|
|
1382
|
+
- **Breaking:** map: `StylingKnobValueOf` narrows to each knob's kind, so `StylingModule.set` rejects a value of the wrong kind at compile time ([#2175](https://github.com/tomtom-internal/maps-sdk-js/pull/2175))
|
|
1383
|
+
- map: `stylingColorKnobIds` and `StylingColorKnobId` name every styling colour knob, and `KnobKind` gains `colors` ([#2175](https://github.com/tomtom-internal/maps-sdk-js/pull/2175))
|
|
1359
1384
|
|
|
1360
1385
|
## [0.55.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.54.0...v0.55.1) (2026-09-21)
|
|
1361
1386
|
|
|
@@ -1370,20 +1395,20 @@
|
|
|
1370
1395
|
|
|
1371
1396
|
### Features
|
|
1372
1397
|
|
|
1373
|
-
* **core:** fold reverse geocoding's access points into entryPoints ([#2151](https://github.com/tomtom-internal/maps-sdk-js/issues/2151))
|
|
1374
|
-
* **examples:** gdpr demo compliance ([#2154](https://github.com/tomtom-internal/maps-sdk-js/issues/2154))
|
|
1375
|
-
* **examples:** put every reverseGeocode option on the rev-geo playground ([#2149](https://github.com/tomtom-internal/maps-sdk-js/issues/2149))
|
|
1376
|
-
* **examples:** redesign the claim-validation demo UX per Figma ([#2145](https://github.com/tomtom-internal/maps-sdk-js/issues/2145))
|
|
1377
|
-
* **examples:** serve the brand faces the typography tokens name ([#2155](https://github.com/tomtom-internal/maps-sdk-js/issues/2155))
|
|
1378
|
-
* **map:** one config tier for every drawn route section type ([#2078](https://github.com/tomtom-internal/maps-sdk-js/issues/2078))
|
|
1379
|
-
* **map:** post speed limits as road signs rather than a band ([#2141](https://github.com/tomtom-internal/maps-sdk-js/issues/2141))
|
|
1380
|
-
* **map:** styling GA phase 1 — StylingModule and the describe() catalogue ([#2089](https://github.com/tomtom-internal/maps-sdk-js/issues/2089))
|
|
1381
|
-
* **services:** replace flat geo-bias fields with a single geoBias option ([#2158](https://github.com/tomtom-internal/maps-sdk-js/issues/2158))
|
|
1398
|
+
* **core:** fold reverse geocoding's access points into entryPoints ([#2151](https://github.com/tomtom-internal/maps-sdk-js/issues/2151))
|
|
1399
|
+
* **examples:** gdpr demo compliance ([#2154](https://github.com/tomtom-internal/maps-sdk-js/issues/2154))
|
|
1400
|
+
* **examples:** put every reverseGeocode option on the rev-geo playground ([#2149](https://github.com/tomtom-internal/maps-sdk-js/issues/2149))
|
|
1401
|
+
* **examples:** redesign the claim-validation demo UX per Figma ([#2145](https://github.com/tomtom-internal/maps-sdk-js/issues/2145))
|
|
1402
|
+
* **examples:** serve the brand faces the typography tokens name ([#2155](https://github.com/tomtom-internal/maps-sdk-js/issues/2155))
|
|
1403
|
+
* **map:** one config tier for every drawn route section type ([#2078](https://github.com/tomtom-internal/maps-sdk-js/issues/2078))
|
|
1404
|
+
* **map:** post speed limits as road signs rather than a band ([#2141](https://github.com/tomtom-internal/maps-sdk-js/issues/2141))
|
|
1405
|
+
* **map:** styling GA phase 1 — StylingModule and the describe() catalogue ([#2089](https://github.com/tomtom-internal/maps-sdk-js/issues/2089))
|
|
1406
|
+
* **services:** replace flat geo-bias fields with a single geoBias option ([#2158](https://github.com/tomtom-internal/maps-sdk-js/issues/2158))
|
|
1382
1407
|
|
|
1383
1408
|
|
|
1384
1409
|
### Miscellaneous Chores
|
|
1385
1410
|
|
|
1386
|
-
* **release:** align package versions with the last shipped release ([#2167](https://github.com/tomtom-internal/maps-sdk-js/issues/2167))
|
|
1411
|
+
* **release:** align package versions with the last shipped release ([#2167](https://github.com/tomtom-internal/maps-sdk-js/issues/2167))
|
|
1387
1412
|
|
|
1388
1413
|
## [0.54.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.53.0...v0.54.0) (2026-09-17)
|
|
1389
1414
|
|
|
@@ -1394,16 +1419,16 @@
|
|
|
1394
1419
|
|
|
1395
1420
|
### Features
|
|
1396
1421
|
|
|
1397
|
-
* **examples:** withdraw claim-validation-service from search ([#2147](https://github.com/tomtom-internal/maps-sdk-js/issues/2147))
|
|
1398
|
-
* **map:** let custom place icons offset from their coordinate ([#2123](https://github.com/tomtom-internal/maps-sdk-js/issues/2123))
|
|
1399
|
-
* **routing:** phase 3 — land the response data v3 already returns ([#2077](https://github.com/tomtom-internal/maps-sdk-js/issues/2077))
|
|
1400
|
-
* **service:** support request cancellation via AbortSignal ([#2136](https://github.com/tomtom-internal/maps-sdk-js/issues/2136))
|
|
1401
|
-
* **skills:** add an opt-in skill that reports SDK friction to GitHub ([#2124](https://github.com/tomtom-internal/maps-sdk-js/issues/2124))
|
|
1422
|
+
* **examples:** withdraw claim-validation-service from search ([#2147](https://github.com/tomtom-internal/maps-sdk-js/issues/2147))
|
|
1423
|
+
* **map:** let custom place icons offset from their coordinate ([#2123](https://github.com/tomtom-internal/maps-sdk-js/issues/2123))
|
|
1424
|
+
* **routing:** phase 3 — land the response data v3 already returns ([#2077](https://github.com/tomtom-internal/maps-sdk-js/issues/2077))
|
|
1425
|
+
* **service:** support request cancellation via AbortSignal ([#2136](https://github.com/tomtom-internal/maps-sdk-js/issues/2136))
|
|
1426
|
+
* **skills:** add an opt-in skill that reports SDK friction to GitHub ([#2124](https://github.com/tomtom-internal/maps-sdk-js/issues/2124))
|
|
1402
1427
|
|
|
1403
1428
|
|
|
1404
1429
|
### Bug Fixes
|
|
1405
1430
|
|
|
1406
|
-
* place-customization crash when using custom icons ([#2134](https://github.com/tomtom-internal/maps-sdk-js/issues/2134))
|
|
1431
|
+
* place-customization crash when using custom icons ([#2134](https://github.com/tomtom-internal/maps-sdk-js/issues/2134))
|
|
1407
1432
|
|
|
1408
1433
|
## [0.53.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.52.0...v0.53.0) (2026-09-14)
|
|
1409
1434
|
|
|
@@ -1415,16 +1440,16 @@
|
|
|
1415
1440
|
|
|
1416
1441
|
### Features
|
|
1417
1442
|
|
|
1418
|
-
* **map:** add more dark theme styling ([#2108](https://github.com/tomtom-internal/maps-sdk-js/issues/2108))
|
|
1419
|
-
* **map:** styling GA phase 0 - resetState, awaited lifecycle, custom themes ([#2088](https://github.com/tomtom-internal/maps-sdk-js/issues/2088))
|
|
1420
|
-
* **services:** add routing request parameters the API accepts ([#2066](https://github.com/tomtom-internal/maps-sdk-js/issues/2066))
|
|
1443
|
+
* **map:** add more dark theme styling ([#2108](https://github.com/tomtom-internal/maps-sdk-js/issues/2108))
|
|
1444
|
+
* **map:** styling GA phase 0 - resetState, awaited lifecycle, custom themes ([#2088](https://github.com/tomtom-internal/maps-sdk-js/issues/2088))
|
|
1445
|
+
* **services:** add routing request parameters the API accepts ([#2066](https://github.com/tomtom-internal/maps-sdk-js/issues/2066))
|
|
1421
1446
|
|
|
1422
1447
|
|
|
1423
1448
|
### Bug Fixes
|
|
1424
1449
|
|
|
1425
|
-
* **examples:** pin the demos-proxy LLM base URL to the /v1 surface ([#2127](https://github.com/tomtom-internal/maps-sdk-js/issues/2127))
|
|
1426
|
-
* **map:** keep the map language across a clean style switch ([#2121](https://github.com/tomtom-internal/maps-sdk-js/issues/2121))
|
|
1427
|
-
* **skills:** correct four wrong APIs in the consumer skill docs ([#2116](https://github.com/tomtom-internal/maps-sdk-js/issues/2116))
|
|
1450
|
+
* **examples:** pin the demos-proxy LLM base URL to the /v1 surface ([#2127](https://github.com/tomtom-internal/maps-sdk-js/issues/2127))
|
|
1451
|
+
* **map:** keep the map language across a clean style switch ([#2121](https://github.com/tomtom-internal/maps-sdk-js/issues/2121))
|
|
1452
|
+
* **skills:** correct four wrong APIs in the consumer skill docs ([#2116](https://github.com/tomtom-internal/maps-sdk-js/issues/2116))
|
|
1428
1453
|
|
|
1429
1454
|
## [0.52.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.5...v0.52.0) (2026-09-09)
|
|
1430
1455
|
|
|
@@ -1439,64 +1464,64 @@
|
|
|
1439
1464
|
|
|
1440
1465
|
### Features
|
|
1441
1466
|
|
|
1442
|
-
* **examples:** claim validation intake example ([#2110](https://github.com/tomtom-internal/maps-sdk-js/issues/2110))
|
|
1443
|
-
* **map:** replace get() with create() on data-owned map modules ([#2058](https://github.com/tomtom-internal/maps-sdk-js/issues/2058))
|
|
1444
|
-
* **map:** scoped module events and per-map shared style modules (lsi-159) ([#2062](https://github.com/tomtom-internal/maps-sdk-js/issues/2062))
|
|
1445
|
-
* migrate rev-geocoding to Orbis v2 ([#2063](https://github.com/tomtom-internal/maps-sdk-js/issues/2063))
|
|
1446
|
-
* **routing:** drop the circle waypoint the API never had ([#2109](https://github.com/tomtom-internal/maps-sdk-js/issues/2109))
|
|
1447
|
-
* **services:** remove routing parameters the API does not support ([#2064](https://github.com/tomtom-internal/maps-sdk-js/issues/2064))
|
|
1467
|
+
* **examples:** claim validation intake example ([#2110](https://github.com/tomtom-internal/maps-sdk-js/issues/2110))
|
|
1468
|
+
* **map:** replace get() with create() on data-owned map modules ([#2058](https://github.com/tomtom-internal/maps-sdk-js/issues/2058))
|
|
1469
|
+
* **map:** scoped module events and per-map shared style modules (lsi-159) ([#2062](https://github.com/tomtom-internal/maps-sdk-js/issues/2062))
|
|
1470
|
+
* migrate rev-geocoding to Orbis v2 ([#2063](https://github.com/tomtom-internal/maps-sdk-js/issues/2063))
|
|
1471
|
+
* **routing:** drop the circle waypoint the API never had ([#2109](https://github.com/tomtom-internal/maps-sdk-js/issues/2109))
|
|
1472
|
+
* **services:** remove routing parameters the API does not support ([#2064](https://github.com/tomtom-internal/maps-sdk-js/issues/2064))
|
|
1448
1473
|
|
|
1449
1474
|
|
|
1450
1475
|
### Bug Fixes
|
|
1451
1476
|
|
|
1452
|
-
* **examples:** stack the searched EV pins above the viewport stations ([#2068](https://github.com/tomtom-internal/maps-sdk-js/issues/2068))
|
|
1453
|
-
* stop partial route updates clobbering config, give BYOD reset a contract ([#2097](https://github.com/tomtom-internal/maps-sdk-js/issues/2097))
|
|
1477
|
+
* **examples:** stack the searched EV pins above the viewport stations ([#2068](https://github.com/tomtom-internal/maps-sdk-js/issues/2068))
|
|
1478
|
+
* stop partial route updates clobbering config, give BYOD reset a contract ([#2097](https://github.com/tomtom-internal/maps-sdk-js/issues/2097))
|
|
1454
1479
|
|
|
1455
1480
|
## [0.51.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.4...v0.51.5) (2026-08-25)
|
|
1456
1481
|
|
|
1457
1482
|
|
|
1458
1483
|
### Bug Fixes
|
|
1459
1484
|
|
|
1460
|
-
* **docs:** correct stale APIs, dead links and drifted contributor docs ([#2053](https://github.com/tomtom-internal/maps-sdk-js/issues/2053))
|
|
1485
|
+
* **docs:** correct stale APIs, dead links and drifted contributor docs ([#2053](https://github.com/tomtom-internal/maps-sdk-js/issues/2053))
|
|
1461
1486
|
|
|
1462
1487
|
## [0.51.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.3...v0.51.4) (2026-08-24)
|
|
1463
1488
|
|
|
1464
1489
|
|
|
1465
1490
|
### Bug Fixes
|
|
1466
1491
|
|
|
1467
|
-
* **agent-toolkit:** range-check model coordinates and report plugin coverage ([#2048](https://github.com/tomtom-internal/maps-sdk-js/issues/2048))
|
|
1468
|
-
* **agent-toolkit:** range-check the sandbox fitOnMap bbox
|
|
1492
|
+
* **agent-toolkit:** range-check model coordinates and report plugin coverage ([#2048](https://github.com/tomtom-internal/maps-sdk-js/issues/2048))
|
|
1493
|
+
* **agent-toolkit:** range-check the sandbox fitOnMap bbox
|
|
1469
1494
|
|
|
1470
1495
|
## [0.51.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.2...v0.51.3) (2026-08-18)
|
|
1471
1496
|
|
|
1472
1497
|
|
|
1473
1498
|
### Features
|
|
1474
1499
|
|
|
1475
|
-
* add BaseMapModule appearance API and upgrade maplibre-gl to v6 ([#2035](https://github.com/tomtom-internal/maps-sdk-js/issues/2035))
|
|
1476
|
-
* attribute map traffic to the product embedding the SDK ([#2028](https://github.com/tomtom-internal/maps-sdk-js/issues/2028))
|
|
1500
|
+
* add BaseMapModule appearance API and upgrade maplibre-gl to v6 ([#2035](https://github.com/tomtom-internal/maps-sdk-js/issues/2035))
|
|
1501
|
+
* attribute map traffic to the product embedding the SDK ([#2028](https://github.com/tomtom-internal/maps-sdk-js/issues/2028))
|
|
1477
1502
|
|
|
1478
1503
|
## [0.51.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.1...v0.51.2) (2026-08-05)
|
|
1479
1504
|
|
|
1480
1505
|
|
|
1481
1506
|
### Bug Fixes
|
|
1482
1507
|
|
|
1483
|
-
* include dist files from examples ([#2031](https://github.com/tomtom-internal/maps-sdk-js/issues/2031))
|
|
1508
|
+
* include dist files from examples ([#2031](https://github.com/tomtom-internal/maps-sdk-js/issues/2031))
|
|
1484
1509
|
|
|
1485
1510
|
## [0.51.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.0...v0.51.1) (2026-08-04)
|
|
1486
1511
|
|
|
1487
1512
|
|
|
1488
1513
|
### Features
|
|
1489
1514
|
|
|
1490
|
-
* **examples:** move the traffic and site-selection agents to Las Vegas ([#2016](https://github.com/tomtom-internal/maps-sdk-js/issues/2016))
|
|
1491
|
-
* **examples:** record query and response text on AgentSuccess telemetry ([#2017](https://github.com/tomtom-internal/maps-sdk-js/issues/2017))
|
|
1515
|
+
* **examples:** move the traffic and site-selection agents to Las Vegas ([#2016](https://github.com/tomtom-internal/maps-sdk-js/issues/2016))
|
|
1516
|
+
* **examples:** record query and response text on AgentSuccess telemetry ([#2017](https://github.com/tomtom-internal/maps-sdk-js/issues/2017))
|
|
1492
1517
|
|
|
1493
1518
|
|
|
1494
1519
|
### Bug Fixes
|
|
1495
1520
|
|
|
1496
|
-
* **deps:** pin a pnpm release that can still be installed ([#2030](https://github.com/tomtom-internal/maps-sdk-js/issues/2030))
|
|
1497
|
-
* **deps:** upgrade react and react-dom to 19.2.8 ([#2021](https://github.com/tomtom-internal/maps-sdk-js/issues/2021))
|
|
1498
|
-
* geometry search playground empty query and unneeded promise.all ([#2029](https://github.com/tomtom-internal/maps-sdk-js/issues/2029))
|
|
1499
|
-
* location resolver selecting subdivision over parent city ([#2024](https://github.com/tomtom-internal/maps-sdk-js/issues/2024))
|
|
1521
|
+
* **deps:** pin a pnpm release that can still be installed ([#2030](https://github.com/tomtom-internal/maps-sdk-js/issues/2030))
|
|
1522
|
+
* **deps:** upgrade react and react-dom to 19.2.8 ([#2021](https://github.com/tomtom-internal/maps-sdk-js/issues/2021))
|
|
1523
|
+
* geometry search playground empty query and unneeded promise.all ([#2029](https://github.com/tomtom-internal/maps-sdk-js/issues/2029))
|
|
1524
|
+
* location resolver selecting subdivision over parent city ([#2024](https://github.com/tomtom-internal/maps-sdk-js/issues/2024))
|
|
1500
1525
|
|
|
1501
1526
|
## [0.51.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.4...v0.51.0) (2026-07-24)
|
|
1502
1527
|
|
|
@@ -1507,60 +1532,60 @@
|
|
|
1507
1532
|
|
|
1508
1533
|
### Features
|
|
1509
1534
|
|
|
1510
|
-
* **map:** improve base map layer groups ([#1966](https://github.com/tomtom-internal/maps-sdk-js/issues/1966))
|
|
1535
|
+
* **map:** improve base map layer groups ([#1966](https://github.com/tomtom-internal/maps-sdk-js/issues/1966))
|
|
1511
1536
|
|
|
1512
1537
|
|
|
1513
1538
|
### Bug Fixes
|
|
1514
1539
|
|
|
1515
|
-
* **agent-toolkit:** surface reverse-geocode no-match as an error ([#1995](https://github.com/tomtom-internal/maps-sdk-js/issues/1995))
|
|
1516
|
-
* chat UX polish, whitespace hex rendering, entry-id collision in toolkit ([#1999](https://github.com/tomtom-internal/maps-sdk-js/issues/1999))
|
|
1517
|
-
* **landmarks-3d:** render POIs on top of 3D landmark meshes ([#2011](https://github.com/tomtom-internal/maps-sdk-js/issues/2011))
|
|
1540
|
+
* **agent-toolkit:** surface reverse-geocode no-match as an error ([#1995](https://github.com/tomtom-internal/maps-sdk-js/issues/1995))
|
|
1541
|
+
* chat UX polish, whitespace hex rendering, entry-id collision in toolkit ([#1999](https://github.com/tomtom-internal/maps-sdk-js/issues/1999))
|
|
1542
|
+
* **landmarks-3d:** render POIs on top of 3D landmark meshes ([#2011](https://github.com/tomtom-internal/maps-sdk-js/issues/2011))
|
|
1518
1543
|
|
|
1519
1544
|
## [0.50.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.3...v0.50.4) (2026-07-09)
|
|
1520
1545
|
|
|
1521
1546
|
|
|
1522
1547
|
### Bug Fixes
|
|
1523
1548
|
|
|
1524
|
-
* **map:** guard SourceWithLayers against a removed map ([#1985](https://github.com/tomtom-internal/maps-sdk-js/issues/1985))
|
|
1549
|
+
* **map:** guard SourceWithLayers against a removed map ([#1985](https://github.com/tomtom-internal/maps-sdk-js/issues/1985))
|
|
1525
1550
|
|
|
1526
1551
|
## [0.50.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.2...v0.50.3) (2026-07-08)
|
|
1527
1552
|
|
|
1528
1553
|
|
|
1529
1554
|
### Bug Fixes
|
|
1530
1555
|
|
|
1531
|
-
* **examples:** lazy-load App Insights in traffic agent to fix sandpack ([#1982](https://github.com/tomtom-internal/maps-sdk-js/issues/1982))
|
|
1556
|
+
* **examples:** lazy-load App Insights in traffic agent to fix sandpack ([#1982](https://github.com/tomtom-internal/maps-sdk-js/issues/1982))
|
|
1532
1557
|
|
|
1533
1558
|
## [0.50.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.1...v0.50.2) (2026-07-07)
|
|
1534
1559
|
|
|
1535
1560
|
|
|
1536
1561
|
### Features
|
|
1537
1562
|
|
|
1538
|
-
* **examples:** add byod district prompts and per-district traffic monitoring ([#1978](https://github.com/tomtom-internal/maps-sdk-js/issues/1978))
|
|
1539
|
-
* **examples:** gate site-selection household behind the experimental flag ([#1979](https://github.com/tomtom-internal/maps-sdk-js/issues/1979))
|
|
1540
|
-
* **examples:** prioritize agent-setup files in map agent Sandpack tabs ([#1961](https://github.com/tomtom-internal/maps-sdk-js/issues/1961))
|
|
1563
|
+
* **examples:** add byod district prompts and per-district traffic monitoring ([#1978](https://github.com/tomtom-internal/maps-sdk-js/issues/1978))
|
|
1564
|
+
* **examples:** gate site-selection household behind the experimental flag ([#1979](https://github.com/tomtom-internal/maps-sdk-js/issues/1979))
|
|
1565
|
+
* **examples:** prioritize agent-setup files in map agent Sandpack tabs ([#1961](https://github.com/tomtom-internal/maps-sdk-js/issues/1961))
|
|
1541
1566
|
|
|
1542
1567
|
|
|
1543
1568
|
### Bug Fixes
|
|
1544
1569
|
|
|
1545
|
-
* **agent-toolkit:** resolve routing waypoints by place id or entry id ([#1974](https://github.com/tomtom-internal/maps-sdk-js/issues/1974))
|
|
1546
|
-
* **agent-toolkit:** ungate scope and cross kind schemas ([#1977](https://github.com/tomtom-internal/maps-sdk-js/issues/1977))
|
|
1547
|
-
* allow for an array of inputs with tools that use the progress bar ([#1975](https://github.com/tomtom-internal/maps-sdk-js/issues/1975))
|
|
1548
|
-
* **examples:** example titles + jam detail panel design fixes ([#1980](https://github.com/tomtom-internal/maps-sdk-js/issues/1980))
|
|
1549
|
-
* **examples:** polish clarify wizard survey UX and hover states ([#1971](https://github.com/tomtom-internal/maps-sdk-js/issues/1971))
|
|
1550
|
-
* **examples:** scroll chat when hovering the resize handle ([#1972](https://github.com/tomtom-internal/maps-sdk-js/issues/1972))
|
|
1551
|
-
* **site-selection:** panel polish + BYOD titles, colour & containment ([#1973](https://github.com/tomtom-internal/maps-sdk-js/issues/1973))
|
|
1570
|
+
* **agent-toolkit:** resolve routing waypoints by place id or entry id ([#1974](https://github.com/tomtom-internal/maps-sdk-js/issues/1974))
|
|
1571
|
+
* **agent-toolkit:** ungate scope and cross kind schemas ([#1977](https://github.com/tomtom-internal/maps-sdk-js/issues/1977))
|
|
1572
|
+
* allow for an array of inputs with tools that use the progress bar ([#1975](https://github.com/tomtom-internal/maps-sdk-js/issues/1975))
|
|
1573
|
+
* **examples:** example titles + jam detail panel design fixes ([#1980](https://github.com/tomtom-internal/maps-sdk-js/issues/1980))
|
|
1574
|
+
* **examples:** polish clarify wizard survey UX and hover states ([#1971](https://github.com/tomtom-internal/maps-sdk-js/issues/1971))
|
|
1575
|
+
* **examples:** scroll chat when hovering the resize handle ([#1972](https://github.com/tomtom-internal/maps-sdk-js/issues/1972))
|
|
1576
|
+
* **site-selection:** panel polish + BYOD titles, colour & containment ([#1973](https://github.com/tomtom-internal/maps-sdk-js/issues/1973))
|
|
1552
1577
|
|
|
1553
1578
|
|
|
1554
1579
|
### Performance Improvements
|
|
1555
1580
|
|
|
1556
|
-
* move scenario-tests to main pushes ([#1968](https://github.com/tomtom-internal/maps-sdk-js/issues/1968))
|
|
1581
|
+
* move scenario-tests to main pushes ([#1968](https://github.com/tomtom-internal/maps-sdk-js/issues/1968))
|
|
1557
1582
|
|
|
1558
1583
|
## [0.50.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.0...v0.50.1) (2026-07-03)
|
|
1559
1584
|
|
|
1560
1585
|
|
|
1561
1586
|
### Bug Fixes
|
|
1562
1587
|
|
|
1563
|
-
* **agent-toolkit:** unblock npm publishing of the plugin ([#1962](https://github.com/tomtom-internal/maps-sdk-js/issues/1962))
|
|
1588
|
+
* **agent-toolkit:** unblock npm publishing of the plugin ([#1962](https://github.com/tomtom-internal/maps-sdk-js/issues/1962))
|
|
1564
1589
|
|
|
1565
1590
|
## [0.50.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.49.1...v0.50.0) (2026-07-03)
|
|
1566
1591
|
|
|
@@ -1571,51 +1596,51 @@
|
|
|
1571
1596
|
|
|
1572
1597
|
### Features
|
|
1573
1598
|
|
|
1574
|
-
* agent eval integration ([#1873](https://github.com/tomtom-internal/maps-sdk-js/issues/1873))
|
|
1575
|
-
* **agent-eval:** llm judge with grounding veto and per-agent token monitoring ([#1912](https://github.com/tomtom-internal/maps-sdk-js/issues/1912))
|
|
1576
|
-
* **examples:** agent telemetry and Azure Monitor observability dashboard ([#1936](https://github.com/tomtom-internal/maps-sdk-js/issues/1936))
|
|
1577
|
-
* **examples:** berlin-based starter prompts ([#1946](https://github.com/tomtom-internal/maps-sdk-js/issues/1946))
|
|
1578
|
-
* **examples:** make site-selection agent state-driven + BYOD-capable ([#1932](https://github.com/tomtom-internal/maps-sdk-js/issues/1932))
|
|
1579
|
-
* **map:** expand geometry line config ([#1916](https://github.com/tomtom-internal/maps-sdk-js/issues/1916))
|
|
1580
|
-
* **map:** granular fill/line beforeLayerConfig + geometry-config-playground ([#1952](https://github.com/tomtom-internal/maps-sdk-js/issues/1952))
|
|
1581
|
-
* **site-selection:** align with latest ux designs ([#1950](https://github.com/tomtom-internal/maps-sdk-js/issues/1950))
|
|
1582
|
-
* **site-selection:** let the LLM name the BYOD label field from the schema ([#1958](https://github.com/tomtom-internal/maps-sdk-js/issues/1958))
|
|
1583
|
-
* **site-selection:** polish widget + map visuals to latest ux designs ([#1959](https://github.com/tomtom-internal/maps-sdk-js/issues/1959))
|
|
1599
|
+
* agent eval integration ([#1873](https://github.com/tomtom-internal/maps-sdk-js/issues/1873))
|
|
1600
|
+
* **agent-eval:** llm judge with grounding veto and per-agent token monitoring ([#1912](https://github.com/tomtom-internal/maps-sdk-js/issues/1912))
|
|
1601
|
+
* **examples:** agent telemetry and Azure Monitor observability dashboard ([#1936](https://github.com/tomtom-internal/maps-sdk-js/issues/1936))
|
|
1602
|
+
* **examples:** berlin-based starter prompts ([#1946](https://github.com/tomtom-internal/maps-sdk-js/issues/1946))
|
|
1603
|
+
* **examples:** make site-selection agent state-driven + BYOD-capable ([#1932](https://github.com/tomtom-internal/maps-sdk-js/issues/1932))
|
|
1604
|
+
* **map:** expand geometry line config ([#1916](https://github.com/tomtom-internal/maps-sdk-js/issues/1916))
|
|
1605
|
+
* **map:** granular fill/line beforeLayerConfig + geometry-config-playground ([#1952](https://github.com/tomtom-internal/maps-sdk-js/issues/1952))
|
|
1606
|
+
* **site-selection:** align with latest ux designs ([#1950](https://github.com/tomtom-internal/maps-sdk-js/issues/1950))
|
|
1607
|
+
* **site-selection:** let the LLM name the BYOD label field from the schema ([#1958](https://github.com/tomtom-internal/maps-sdk-js/issues/1958))
|
|
1608
|
+
* **site-selection:** polish widget + map visuals to latest ux designs ([#1959](https://github.com/tomtom-internal/maps-sdk-js/issues/1959))
|
|
1584
1609
|
|
|
1585
1610
|
|
|
1586
1611
|
### Bug Fixes
|
|
1587
1612
|
|
|
1588
|
-
* **agent-toolkit:** accept places entry ids in where.placeIds ([#1935](https://github.com/tomtom-internal/maps-sdk-js/issues/1935))
|
|
1589
|
-
* **agent-toolkit:** guard setMapStandardStyle against accidental style changes ([#1951](https://github.com/tomtom-internal/maps-sdk-js/issues/1951))
|
|
1590
|
-
* **agent-toolkit:** prefer dedicated tools over the MapLibre escape hatch ([#1954](https://github.com/tomtom-internal/maps-sdk-js/issues/1954))
|
|
1591
|
-
* **agent-toolkit:** validate processData places and trace derived ids ([#1949](https://github.com/tomtom-internal/maps-sdk-js/issues/1949))
|
|
1592
|
-
* **examples:** align agent chat UI across example apps ([#1930](https://github.com/tomtom-internal/maps-sdk-js/issues/1930))
|
|
1593
|
-
* **examples:** make agent telemetry optional in local dev ([#1960](https://github.com/tomtom-internal/maps-sdk-js/issues/1960))
|
|
1594
|
-
* **examples:** toolCall Figma polish + route corridor colors ([#1947](https://github.com/tomtom-internal/maps-sdk-js/issues/1947))
|
|
1595
|
-
* **landmarks-3d:** send session credentials so tiles load behind a proxy ([#1943](https://github.com/tomtom-internal/maps-sdk-js/issues/1943))
|
|
1596
|
-
* **site-selection:** render all parking points, add discoverPlaces ([#1948](https://github.com/tomtom-internal/maps-sdk-js/issues/1948))
|
|
1613
|
+
* **agent-toolkit:** accept places entry ids in where.placeIds ([#1935](https://github.com/tomtom-internal/maps-sdk-js/issues/1935))
|
|
1614
|
+
* **agent-toolkit:** guard setMapStandardStyle against accidental style changes ([#1951](https://github.com/tomtom-internal/maps-sdk-js/issues/1951))
|
|
1615
|
+
* **agent-toolkit:** prefer dedicated tools over the MapLibre escape hatch ([#1954](https://github.com/tomtom-internal/maps-sdk-js/issues/1954))
|
|
1616
|
+
* **agent-toolkit:** validate processData places and trace derived ids ([#1949](https://github.com/tomtom-internal/maps-sdk-js/issues/1949))
|
|
1617
|
+
* **examples:** align agent chat UI across example apps ([#1930](https://github.com/tomtom-internal/maps-sdk-js/issues/1930))
|
|
1618
|
+
* **examples:** make agent telemetry optional in local dev ([#1960](https://github.com/tomtom-internal/maps-sdk-js/issues/1960))
|
|
1619
|
+
* **examples:** toolCall Figma polish + route corridor colors ([#1947](https://github.com/tomtom-internal/maps-sdk-js/issues/1947))
|
|
1620
|
+
* **landmarks-3d:** send session credentials so tiles load behind a proxy ([#1943](https://github.com/tomtom-internal/maps-sdk-js/issues/1943))
|
|
1621
|
+
* **site-selection:** render all parking points, add discoverPlaces ([#1948](https://github.com/tomtom-internal/maps-sdk-js/issues/1948))
|
|
1597
1622
|
|
|
1598
1623
|
## [0.49.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.49.0...v0.49.1) (2026-06-30)
|
|
1599
1624
|
|
|
1600
1625
|
|
|
1601
1626
|
### Features
|
|
1602
1627
|
|
|
1603
|
-
* **agent-toolkit:** expose sandbox data-tool inputs as per-entry records only ([#1890](https://github.com/tomtom-internal/maps-sdk-js/issues/1890))
|
|
1604
|
-
* **examples:** align chat agent UI with the traffic agent Figma design ([#1911](https://github.com/tomtom-internal/maps-sdk-js/issues/1911))
|
|
1605
|
-
* **examples:** align traffic agent UI with Figma + playbook tokens ([#1902](https://github.com/tomtom-internal/maps-sdk-js/issues/1902))
|
|
1606
|
-
* **examples:** group tool calls under a 'Used N tools' pill ([#1918](https://github.com/tomtom-internal/maps-sdk-js/issues/1918))
|
|
1607
|
-
* **examples:** polish traffic-agent prose and fix null-driven map errors ([#1927](https://github.com/tomtom-internal/maps-sdk-js/issues/1927))
|
|
1608
|
-
* **examples:** render clarifyIntent as an interactive survey form ([#1919](https://github.com/tomtom-internal/maps-sdk-js/issues/1919))
|
|
1609
|
-
* **examples:** site selection implementation ([#1878](https://github.com/tomtom-internal/maps-sdk-js/issues/1878))
|
|
1610
|
-
* **examples:** unify the agent example UI + clarifyIntent survey wizard ([#1923](https://github.com/tomtom-internal/maps-sdk-js/issues/1923))
|
|
1611
|
-
* **plugins:** add landmarks-3d plugin for Orbis 3D Landmarks ([#1772](https://github.com/tomtom-internal/maps-sdk-js/issues/1772))
|
|
1612
|
-
* **toolkit:** add clarifyIntent tool and add alwaysActive flag to tools ([#1883](https://github.com/tomtom-internal/maps-sdk-js/issues/1883))
|
|
1613
|
-
* **traffic-agent:** watched-area highlight, grouped Event tracker, summary follows focus ([#1914](https://github.com/tomtom-internal/maps-sdk-js/issues/1914))
|
|
1628
|
+
* **agent-toolkit:** expose sandbox data-tool inputs as per-entry records only ([#1890](https://github.com/tomtom-internal/maps-sdk-js/issues/1890))
|
|
1629
|
+
* **examples:** align chat agent UI with the traffic agent Figma design ([#1911](https://github.com/tomtom-internal/maps-sdk-js/issues/1911))
|
|
1630
|
+
* **examples:** align traffic agent UI with Figma + playbook tokens ([#1902](https://github.com/tomtom-internal/maps-sdk-js/issues/1902))
|
|
1631
|
+
* **examples:** group tool calls under a 'Used N tools' pill ([#1918](https://github.com/tomtom-internal/maps-sdk-js/issues/1918))
|
|
1632
|
+
* **examples:** polish traffic-agent prose and fix null-driven map errors ([#1927](https://github.com/tomtom-internal/maps-sdk-js/issues/1927))
|
|
1633
|
+
* **examples:** render clarifyIntent as an interactive survey form ([#1919](https://github.com/tomtom-internal/maps-sdk-js/issues/1919))
|
|
1634
|
+
* **examples:** site selection implementation ([#1878](https://github.com/tomtom-internal/maps-sdk-js/issues/1878))
|
|
1635
|
+
* **examples:** unify the agent example UI + clarifyIntent survey wizard ([#1923](https://github.com/tomtom-internal/maps-sdk-js/issues/1923))
|
|
1636
|
+
* **plugins:** add landmarks-3d plugin for Orbis 3D Landmarks ([#1772](https://github.com/tomtom-internal/maps-sdk-js/issues/1772))
|
|
1637
|
+
* **toolkit:** add clarifyIntent tool and add alwaysActive flag to tools ([#1883](https://github.com/tomtom-internal/maps-sdk-js/issues/1883))
|
|
1638
|
+
* **traffic-agent:** watched-area highlight, grouped Event tracker, summary follows focus ([#1914](https://github.com/tomtom-internal/maps-sdk-js/issues/1914))
|
|
1614
1639
|
|
|
1615
1640
|
|
|
1616
1641
|
### Bug Fixes
|
|
1617
1642
|
|
|
1618
|
-
* **agent-toolkit:** register an empty entry for zero-incident results ([#1924](https://github.com/tomtom-internal/maps-sdk-js/issues/1924))
|
|
1643
|
+
* **agent-toolkit:** register an empty entry for zero-incident results ([#1924](https://github.com/tomtom-internal/maps-sdk-js/issues/1924))
|
|
1619
1644
|
|
|
1620
1645
|
## [0.49.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.3...v0.49.0) (2026-06-24)
|
|
1621
1646
|
|
|
@@ -1628,66 +1653,66 @@
|
|
|
1628
1653
|
|
|
1629
1654
|
### Features
|
|
1630
1655
|
|
|
1631
|
-
* agent-eval framework Initial MVP baseline ([#1842](https://github.com/tomtom-internal/maps-sdk-js/issues/1842))
|
|
1632
|
-
* **agent-toolkit:** `resolvedAreas` — surface where every query resolved ([#1863](https://github.com/tomtom-internal/maps-sdk-js/issues/1863))
|
|
1633
|
-
* **agent-toolkit:** analysis and incidents clustering improvements ([#1851](https://github.com/tomtom-internal/maps-sdk-js/issues/1851))
|
|
1634
|
-
* **agent-toolkit:** app-supplied URL-validator hook for addByodSource ([#1855](https://github.com/tomtom-internal/maps-sdk-js/issues/1855))
|
|
1635
|
-
* **agent-toolkit:** fold incident monitoring into getTrafficIncidents ([#1847](https://github.com/tomtom-internal/maps-sdk-js/issues/1847))
|
|
1636
|
-
* **agent-toolkit:** generic trackers on the analyses registry ([#1876](https://github.com/tomtom-internal/maps-sdk-js/issues/1876))
|
|
1637
|
-
* **agent-toolkit:** keep untrusted BYOD free-text out of model context ([#1854](https://github.com/tomtom-internal/maps-sdk-js/issues/1854))
|
|
1638
|
-
* **agent-toolkit:** monitor routes — periodic live-traffic recalculation ([#1869](https://github.com/tomtom-internal/maps-sdk-js/issues/1869))
|
|
1639
|
-
* **agent-toolkit:** sandbox data-tool execution in a browser iframe-worker ([#1857](https://github.com/tomtom-internal/maps-sdk-js/issues/1857))
|
|
1640
|
-
* **agent-toolkit:** split and compact the base system prompt ([#1884](https://github.com/tomtom-internal/maps-sdk-js/issues/1884))
|
|
1641
|
-
* **agent-toolkit:** unify where-resolution ([#1834](https://github.com/tomtom-internal/maps-sdk-js/issues/1834))
|
|
1642
|
-
* **proxy:** bundle proxy config into static-html examples ([#1867](https://github.com/tomtom-internal/maps-sdk-js/issues/1867))
|
|
1643
|
-
* **services:** forward common service params ev availability util service ([#1888](https://github.com/tomtom-internal/maps-sdk-js/issues/1888))
|
|
1644
|
-
* **traffic, map-display:** migrate to Orbis v2 GA ([#1829](https://github.com/tomtom-internal/maps-sdk-js/issues/1829))
|
|
1656
|
+
* agent-eval framework Initial MVP baseline ([#1842](https://github.com/tomtom-internal/maps-sdk-js/issues/1842))
|
|
1657
|
+
* **agent-toolkit:** `resolvedAreas` — surface where every query resolved ([#1863](https://github.com/tomtom-internal/maps-sdk-js/issues/1863))
|
|
1658
|
+
* **agent-toolkit:** analysis and incidents clustering improvements ([#1851](https://github.com/tomtom-internal/maps-sdk-js/issues/1851))
|
|
1659
|
+
* **agent-toolkit:** app-supplied URL-validator hook for addByodSource ([#1855](https://github.com/tomtom-internal/maps-sdk-js/issues/1855))
|
|
1660
|
+
* **agent-toolkit:** fold incident monitoring into getTrafficIncidents ([#1847](https://github.com/tomtom-internal/maps-sdk-js/issues/1847))
|
|
1661
|
+
* **agent-toolkit:** generic trackers on the analyses registry ([#1876](https://github.com/tomtom-internal/maps-sdk-js/issues/1876))
|
|
1662
|
+
* **agent-toolkit:** keep untrusted BYOD free-text out of model context ([#1854](https://github.com/tomtom-internal/maps-sdk-js/issues/1854))
|
|
1663
|
+
* **agent-toolkit:** monitor routes — periodic live-traffic recalculation ([#1869](https://github.com/tomtom-internal/maps-sdk-js/issues/1869))
|
|
1664
|
+
* **agent-toolkit:** sandbox data-tool execution in a browser iframe-worker ([#1857](https://github.com/tomtom-internal/maps-sdk-js/issues/1857))
|
|
1665
|
+
* **agent-toolkit:** split and compact the base system prompt ([#1884](https://github.com/tomtom-internal/maps-sdk-js/issues/1884))
|
|
1666
|
+
* **agent-toolkit:** unify where-resolution ([#1834](https://github.com/tomtom-internal/maps-sdk-js/issues/1834))
|
|
1667
|
+
* **proxy:** bundle proxy config into static-html examples ([#1867](https://github.com/tomtom-internal/maps-sdk-js/issues/1867))
|
|
1668
|
+
* **services:** forward common service params ev availability util service ([#1888](https://github.com/tomtom-internal/maps-sdk-js/issues/1888))
|
|
1669
|
+
* **traffic, map-display:** migrate to Orbis v2 GA ([#1829](https://github.com/tomtom-internal/maps-sdk-js/issues/1829))
|
|
1645
1670
|
|
|
1646
1671
|
|
|
1647
1672
|
### Bug Fixes
|
|
1648
1673
|
|
|
1649
|
-
* **examples:** inject multi-chunk plugin builds correctly for Sandpack ([#1871](https://github.com/tomtom-internal/maps-sdk-js/issues/1871))
|
|
1650
|
-
* **examples:** keep illegal-request rejection rule in traffic agent prompt ([#1891](https://github.com/tomtom-internal/maps-sdk-js/issues/1891))
|
|
1651
|
-
* **examples:** re-enable demo-BFF proxy bootstrap ([#1835](https://github.com/tomtom-internal/maps-sdk-js/issues/1835))
|
|
1652
|
-
* **examples:** unblock CI lint — suppress noUnusedVariables ([#1861](https://github.com/tomtom-internal/maps-sdk-js/issues/1861))
|
|
1653
|
-
* **map:** style-change handlers return an unsubscribe disposer ([#1870](https://github.com/tomtom-internal/maps-sdk-js/issues/1870))
|
|
1654
|
-
* **skill:** trim tomtom-maps-sdk-js description under 1024-char limit ([#1838](https://github.com/tomtom-internal/maps-sdk-js/issues/1838))
|
|
1674
|
+
* **examples:** inject multi-chunk plugin builds correctly for Sandpack ([#1871](https://github.com/tomtom-internal/maps-sdk-js/issues/1871))
|
|
1675
|
+
* **examples:** keep illegal-request rejection rule in traffic agent prompt ([#1891](https://github.com/tomtom-internal/maps-sdk-js/issues/1891))
|
|
1676
|
+
* **examples:** re-enable demo-BFF proxy bootstrap ([#1835](https://github.com/tomtom-internal/maps-sdk-js/issues/1835))
|
|
1677
|
+
* **examples:** unblock CI lint — suppress noUnusedVariables ([#1861](https://github.com/tomtom-internal/maps-sdk-js/issues/1861))
|
|
1678
|
+
* **map:** style-change handlers return an unsubscribe disposer ([#1870](https://github.com/tomtom-internal/maps-sdk-js/issues/1870))
|
|
1679
|
+
* **skill:** trim tomtom-maps-sdk-js description under 1024-char limit ([#1838](https://github.com/tomtom-internal/maps-sdk-js/issues/1838))
|
|
1655
1680
|
|
|
1656
1681
|
|
|
1657
1682
|
### Reverts
|
|
1658
1683
|
|
|
1659
|
-
* feat(traffic, map-display)!: migrate to Orbis v2 GA ([#1829](https://github.com/tomtom-internal/maps-sdk-js/issues/1829)) ([#1880](https://github.com/tomtom-internal/maps-sdk-js/issues/1880))
|
|
1684
|
+
* feat(traffic, map-display)!: migrate to Orbis v2 GA ([#1829](https://github.com/tomtom-internal/maps-sdk-js/issues/1829)) ([#1880](https://github.com/tomtom-internal/maps-sdk-js/issues/1880))
|
|
1660
1685
|
|
|
1661
1686
|
|
|
1662
1687
|
### Code Refactoring
|
|
1663
1688
|
|
|
1664
|
-
* **agent-toolkit:** consolidate per-kind recall tools into recallState ([#1868](https://github.com/tomtom-internal/maps-sdk-js/issues/1868))
|
|
1689
|
+
* **agent-toolkit:** consolidate per-kind recall tools into recallState ([#1868](https://github.com/tomtom-internal/maps-sdk-js/issues/1868))
|
|
1665
1690
|
|
|
1666
1691
|
## [0.48.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.2...v0.48.3) (2026-06-10)
|
|
1667
1692
|
|
|
1668
1693
|
|
|
1669
1694
|
### Features
|
|
1670
1695
|
|
|
1671
|
-
* **routing:** migrate routing service to OrbisV3 API ([#1784](https://github.com/tomtom-internal/maps-sdk-js/issues/1784))
|
|
1696
|
+
* **routing:** migrate routing service to OrbisV3 API ([#1784](https://github.com/tomtom-internal/maps-sdk-js/issues/1784))
|
|
1672
1697
|
|
|
1673
1698
|
## [0.48.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.1...v0.48.2) (2026-06-09)
|
|
1674
1699
|
|
|
1675
1700
|
|
|
1676
1701
|
### Bug Fixes
|
|
1677
1702
|
|
|
1678
|
-
* remove sdk dep in examples ([#1832](https://github.com/tomtom-internal/maps-sdk-js/issues/1832))
|
|
1703
|
+
* remove sdk dep in examples ([#1832](https://github.com/tomtom-internal/maps-sdk-js/issues/1832))
|
|
1679
1704
|
|
|
1680
1705
|
## [0.48.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.0...v0.48.1) (2026-06-09)
|
|
1681
1706
|
|
|
1682
1707
|
|
|
1683
1708
|
### Features
|
|
1684
1709
|
|
|
1685
|
-
* **agent-toolkit:** deterministic DBSCAN clustering tool
|
|
1710
|
+
* **agent-toolkit:** deterministic DBSCAN clustering tool
|
|
1686
1711
|
|
|
1687
1712
|
|
|
1688
1713
|
### Bug Fixes
|
|
1689
1714
|
|
|
1690
|
-
* pin assistant-ui ([#1828](https://github.com/tomtom-internal/maps-sdk-js/issues/1828))
|
|
1715
|
+
* pin assistant-ui ([#1828](https://github.com/tomtom-internal/maps-sdk-js/issues/1828))
|
|
1691
1716
|
|
|
1692
1717
|
## [0.48.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.9...v0.48.0) (2026-06-05)
|
|
1693
1718
|
|
|
@@ -1699,119 +1724,119 @@
|
|
|
1699
1724
|
|
|
1700
1725
|
### Features
|
|
1701
1726
|
|
|
1702
|
-
* **agent-toolkit:** byod improvements ([#1816](https://github.com/tomtom-internal/maps-sdk-js/issues/1816))
|
|
1703
|
-
* **ci:** wire up Docs Portal PR preview environments ([#1812](https://github.com/tomtom-internal/maps-sdk-js/issues/1812))
|
|
1704
|
-
* **events:** scope + dedupe allEventFeatures, typed substitution
|
|
1705
|
-
* sdk proxy mode for demo-BFF ([#1810](https://github.com/tomtom-internal/maps-sdk-js/issues/1810))
|
|
1727
|
+
* **agent-toolkit:** byod improvements ([#1816](https://github.com/tomtom-internal/maps-sdk-js/issues/1816))
|
|
1728
|
+
* **ci:** wire up Docs Portal PR preview environments ([#1812](https://github.com/tomtom-internal/maps-sdk-js/issues/1812))
|
|
1729
|
+
* **events:** scope + dedupe allEventFeatures, typed substitution
|
|
1730
|
+
* sdk proxy mode for demo-BFF ([#1810](https://github.com/tomtom-internal/maps-sdk-js/issues/1810))
|
|
1706
1731
|
|
|
1707
1732
|
|
|
1708
1733
|
### Bug Fixes
|
|
1709
1734
|
|
|
1710
|
-
* **agent-toolkit:** add missing [@group](https://github.com/group) tags on exported types ([#1803](https://github.com/tomtom-internal/maps-sdk-js/issues/1803))
|
|
1711
|
-
* **agent-toolkit:** public docs cleanup — links, system-prompt guidance, internal refs ([#1804](https://github.com/tomtom-internal/maps-sdk-js/issues/1804))
|
|
1712
|
-
* proxy mode sdk ([#1815](https://github.com/tomtom-internal/maps-sdk-js/issues/1815))
|
|
1735
|
+
* **agent-toolkit:** add missing [@group](https://github.com/group) tags on exported types ([#1803](https://github.com/tomtom-internal/maps-sdk-js/issues/1803))
|
|
1736
|
+
* **agent-toolkit:** public docs cleanup — links, system-prompt guidance, internal refs ([#1804](https://github.com/tomtom-internal/maps-sdk-js/issues/1804))
|
|
1737
|
+
* proxy mode sdk ([#1815](https://github.com/tomtom-internal/maps-sdk-js/issues/1815))
|
|
1713
1738
|
|
|
1714
1739
|
## [0.47.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.8...v0.47.9) (2026-05-22)
|
|
1715
1740
|
|
|
1716
1741
|
|
|
1717
1742
|
### Bug Fixes
|
|
1718
1743
|
|
|
1719
|
-
* d2 diagram in documentation
|
|
1720
|
-
* d2 diagram in documentation
|
|
1744
|
+
* d2 diagram in documentation
|
|
1745
|
+
* d2 diagram in documentation
|
|
1721
1746
|
|
|
1722
1747
|
## [0.47.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.7...v0.47.8) (2026-05-22)
|
|
1723
1748
|
|
|
1724
1749
|
|
|
1725
1750
|
### Features
|
|
1726
1751
|
|
|
1727
|
-
* **agent-toolkit:** expand plugin documentation ([#1793](https://github.com/tomtom-internal/maps-sdk-js/issues/1793))
|
|
1752
|
+
* **agent-toolkit:** expand plugin documentation ([#1793](https://github.com/tomtom-internal/maps-sdk-js/issues/1793))
|
|
1728
1753
|
|
|
1729
1754
|
|
|
1730
1755
|
### Bug Fixes
|
|
1731
1756
|
|
|
1732
|
-
* **agent-toolkit:** split scenario tests into sanity / full suites ([#1798](https://github.com/tomtom-internal/maps-sdk-js/issues/1798))
|
|
1733
|
-
* **agent-toolkit:** stabilize locate-place scenario prompt ([#1795](https://github.com/tomtom-internal/maps-sdk-js/issues/1795))
|
|
1757
|
+
* **agent-toolkit:** split scenario tests into sanity / full suites ([#1798](https://github.com/tomtom-internal/maps-sdk-js/issues/1798))
|
|
1758
|
+
* **agent-toolkit:** stabilize locate-place scenario prompt ([#1795](https://github.com/tomtom-internal/maps-sdk-js/issues/1795))
|
|
1734
1759
|
|
|
1735
1760
|
## [0.47.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.6...v0.47.7) (2026-05-21)
|
|
1736
1761
|
|
|
1737
1762
|
|
|
1738
1763
|
### Features
|
|
1739
1764
|
|
|
1740
|
-
* code generation tools with updated docs
|
|
1741
|
-
* upgrade SDK agent toolkit and fix release process ([#1782](https://github.com/tomtom-internal/maps-sdk-js/issues/1782))
|
|
1765
|
+
* code generation tools with updated docs
|
|
1766
|
+
* upgrade SDK agent toolkit and fix release process ([#1782](https://github.com/tomtom-internal/maps-sdk-js/issues/1782))
|
|
1742
1767
|
|
|
1743
1768
|
|
|
1744
1769
|
### Bug Fixes
|
|
1745
1770
|
|
|
1746
|
-
* **agent-toolkit:** point README docs link at overview page
|
|
1747
|
-
* engineering guideline updates for agent toolkit
|
|
1748
|
-
* tool doc updates for agent toolkit
|
|
1771
|
+
* **agent-toolkit:** point README docs link at overview page
|
|
1772
|
+
* engineering guideline updates for agent toolkit
|
|
1773
|
+
* tool doc updates for agent toolkit
|
|
1749
1774
|
|
|
1750
1775
|
## [0.47.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.5...v0.47.6) (2026-05-15)
|
|
1751
1776
|
|
|
1752
1777
|
|
|
1753
1778
|
### Features
|
|
1754
1779
|
|
|
1755
|
-
* exploration search with area tags ([#1763](https://github.com/tomtom-internal/maps-sdk-js/issues/1763))
|
|
1756
|
-
* new custom geojson module in SDK ([#1771](https://github.com/tomtom-internal/maps-sdk-js/issues/1771))
|
|
1780
|
+
* exploration search with area tags ([#1763](https://github.com/tomtom-internal/maps-sdk-js/issues/1763))
|
|
1781
|
+
* new custom geojson module in SDK ([#1771](https://github.com/tomtom-internal/maps-sdk-js/issues/1771))
|
|
1757
1782
|
|
|
1758
1783
|
|
|
1759
1784
|
### Bug Fixes
|
|
1760
1785
|
|
|
1761
|
-
* agent toolkit place prompt fixes and clearing unnecessary modules ([#1773](https://github.com/tomtom-internal/maps-sdk-js/issues/1773))
|
|
1786
|
+
* agent toolkit place prompt fixes and clearing unnecessary modules ([#1773](https://github.com/tomtom-internal/maps-sdk-js/issues/1773))
|
|
1762
1787
|
|
|
1763
1788
|
## [0.47.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.4...v0.47.5) (2026-05-13)
|
|
1764
1789
|
|
|
1765
1790
|
|
|
1766
1791
|
### Features
|
|
1767
1792
|
|
|
1768
|
-
* migrate all map chat agent demos to tailwind ([#1764](https://github.com/tomtom-internal/maps-sdk-js/issues/1764))
|
|
1793
|
+
* migrate all map chat agent demos to tailwind ([#1764](https://github.com/tomtom-internal/maps-sdk-js/issues/1764))
|
|
1769
1794
|
|
|
1770
1795
|
|
|
1771
1796
|
### Bug Fixes
|
|
1772
1797
|
|
|
1773
|
-
* restore incident module on style change
|
|
1774
|
-
* updated a couple of schemas and bumped zod dependencies to ^4.4.3 ([#1757](https://github.com/tomtom-internal/maps-sdk-js/issues/1757))
|
|
1798
|
+
* restore incident module on style change
|
|
1799
|
+
* updated a couple of schemas and bumped zod dependencies to ^4.4.3 ([#1757](https://github.com/tomtom-internal/maps-sdk-js/issues/1757))
|
|
1775
1800
|
|
|
1776
1801
|
## [0.47.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.3...v0.47.4) (2026-05-12)
|
|
1777
1802
|
|
|
1778
1803
|
|
|
1779
1804
|
### Features
|
|
1780
1805
|
|
|
1781
|
-
* agent evaluation testing [LSI-285] ([#1747](https://github.com/tomtom-internal/maps-sdk-js/issues/1747))
|
|
1806
|
+
* agent evaluation testing [LSI-285] ([#1747](https://github.com/tomtom-internal/maps-sdk-js/issues/1747))
|
|
1782
1807
|
|
|
1783
1808
|
|
|
1784
1809
|
### Bug Fixes
|
|
1785
1810
|
|
|
1786
|
-
* add missing traffic incidents geojson module into agent coding skills
|
|
1787
|
-
* upgrade and fix deps ([#1762](https://github.com/tomtom-internal/maps-sdk-js/issues/1762))
|
|
1811
|
+
* add missing traffic incidents geojson module into agent coding skills
|
|
1812
|
+
* upgrade and fix deps ([#1762](https://github.com/tomtom-internal/maps-sdk-js/issues/1762))
|
|
1788
1813
|
|
|
1789
1814
|
## [0.47.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.2...v0.47.3) (2026-05-11)
|
|
1790
1815
|
|
|
1791
1816
|
|
|
1792
1817
|
### Bug Fixes
|
|
1793
1818
|
|
|
1794
|
-
* example thumbnail reference
|
|
1819
|
+
* example thumbnail reference
|
|
1795
1820
|
|
|
1796
1821
|
## [0.47.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.1...v0.47.2) (2026-05-11)
|
|
1797
1822
|
|
|
1798
1823
|
|
|
1799
1824
|
### Bug Fixes
|
|
1800
1825
|
|
|
1801
|
-
* example thumbnail reference
|
|
1826
|
+
* example thumbnail reference
|
|
1802
1827
|
|
|
1803
1828
|
## [0.47.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.0...v0.47.1) (2026-05-11)
|
|
1804
1829
|
|
|
1805
1830
|
|
|
1806
1831
|
### Features
|
|
1807
1832
|
|
|
1808
|
-
* **agent-toolkit:** live traffic agent
|
|
1809
|
-
* **map:** TrafficIncidentOverlayModule
|
|
1833
|
+
* **agent-toolkit:** live traffic agent
|
|
1834
|
+
* **map:** TrafficIncidentOverlayModule
|
|
1810
1835
|
|
|
1811
1836
|
|
|
1812
1837
|
### Bug Fixes
|
|
1813
1838
|
|
|
1814
|
-
* **traffic-incident-details:** drop non-filterable iconCategory codes
|
|
1839
|
+
* **traffic-incident-details:** drop non-filterable iconCategory codes
|
|
1815
1840
|
|
|
1816
1841
|
## [0.47.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.13...v0.47.0) (2026-05-01)
|
|
1817
1842
|
|
|
@@ -1822,184 +1847,184 @@
|
|
|
1822
1847
|
|
|
1823
1848
|
### Features
|
|
1824
1849
|
|
|
1825
|
-
* add managePlaces tool and centralize places display state
|
|
1826
|
-
* add model name to header
|
|
1827
|
-
* expand deployment workflow to support multiple SDK demos
|
|
1828
|
-
* improve api reference types, adjust syntax for agent toolkit plugin, and improve agents.md
|
|
1829
|
-
* improvements in places module themes
|
|
1850
|
+
* add managePlaces tool and centralize places display state
|
|
1851
|
+
* add model name to header
|
|
1852
|
+
* expand deployment workflow to support multiple SDK demos
|
|
1853
|
+
* improve api reference types, adjust syntax for agent toolkit plugin, and improve agents.md
|
|
1854
|
+
* improvements in places module themes
|
|
1830
1855
|
|
|
1831
1856
|
|
|
1832
1857
|
### Bug Fixes
|
|
1833
1858
|
|
|
1834
|
-
* dynamic import ApplicationInsights to avoid adblocker crash ([#1709](https://github.com/tomtom-internal/maps-sdk-js/issues/1709))
|
|
1835
|
-
* escape $web variable reference in upload step echo
|
|
1836
|
-
* LSI-259 Fix tests that were failing because API changed response from 403 to 401 ([#1729](https://github.com/tomtom-internal/maps-sdk-js/issues/1729))
|
|
1837
|
-
* LSI-265 Fix branch name sanitation in 'Publish Examples' step ([#1732](https://github.com/tomtom-internal/maps-sdk-js/issues/1732))
|
|
1859
|
+
* dynamic import ApplicationInsights to avoid adblocker crash ([#1709](https://github.com/tomtom-internal/maps-sdk-js/issues/1709))
|
|
1860
|
+
* escape $web variable reference in upload step echo
|
|
1861
|
+
* LSI-259 Fix tests that were failing because API changed response from 403 to 401 ([#1729](https://github.com/tomtom-internal/maps-sdk-js/issues/1729))
|
|
1862
|
+
* LSI-265 Fix branch name sanitation in 'Publish Examples' step ([#1732](https://github.com/tomtom-internal/maps-sdk-js/issues/1732))
|
|
1838
1863
|
|
|
1839
1864
|
## [0.46.13](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.12...v0.46.13) (2026-04-14)
|
|
1840
1865
|
|
|
1841
1866
|
|
|
1842
1867
|
### Features
|
|
1843
1868
|
|
|
1844
|
-
* upgrade maplibre dependency
|
|
1869
|
+
* upgrade maplibre dependency
|
|
1845
1870
|
|
|
1846
1871
|
|
|
1847
1872
|
### Bug Fixes
|
|
1848
1873
|
|
|
1849
|
-
* exporting map agent from plugins so it's included in API reference
|
|
1850
|
-
* rename map-agent plugin to agent-toolkit
|
|
1851
|
-
* update agent toolkit link in readme
|
|
1852
|
-
* update mobile breakpoint for chat agent demos ([#1697](https://github.com/tomtom-internal/maps-sdk-js/issues/1697))
|
|
1874
|
+
* exporting map agent from plugins so it's included in API reference
|
|
1875
|
+
* rename map-agent plugin to agent-toolkit
|
|
1876
|
+
* update agent toolkit link in readme
|
|
1877
|
+
* update mobile breakpoint for chat agent demos ([#1697](https://github.com/tomtom-internal/maps-sdk-js/issues/1697))
|
|
1853
1878
|
|
|
1854
1879
|
## [0.46.12](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.11...v0.46.12) (2026-04-10)
|
|
1855
1880
|
|
|
1856
1881
|
|
|
1857
1882
|
### Bug Fixes
|
|
1858
1883
|
|
|
1859
|
-
* missing example images
|
|
1884
|
+
* missing example images
|
|
1860
1885
|
|
|
1861
1886
|
## [0.46.11](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.10...v0.46.11) (2026-04-10)
|
|
1862
1887
|
|
|
1863
1888
|
|
|
1864
1889
|
### Bug Fixes
|
|
1865
1890
|
|
|
1866
|
-
* examples type exports
|
|
1891
|
+
* examples type exports
|
|
1867
1892
|
|
|
1868
1893
|
## [0.46.10](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.9...v0.46.10) (2026-04-10)
|
|
1869
1894
|
|
|
1870
1895
|
|
|
1871
1896
|
### Features
|
|
1872
1897
|
|
|
1873
|
-
* add traffic area analytics tools to map agent
|
|
1874
|
-
* enable ai-agent plugin for release
|
|
1875
|
-
* enhance traffic area analytics with improved filter handling and validation
|
|
1876
|
-
* expand TrafficAreaAnalyticsModule API with tiles mode, filtering, custom styling, and tooltip
|
|
1877
|
-
* improve mobile view for chat
|
|
1878
|
-
* new module events to react to config changes and shown features
|
|
1879
|
-
* parameterize tool registry with unified ToolMetadata and MapAgentTool types
|
|
1880
|
-
* remove canvas area analytics chart from main sdk, ported to example using html elements instead of canvas
|
|
1881
|
-
* traffic area analytics configuration improvements
|
|
1882
|
-
* traffic area analytics configuration improvements
|
|
1898
|
+
* add traffic area analytics tools to map agent
|
|
1899
|
+
* enable ai-agent plugin for release
|
|
1900
|
+
* enhance traffic area analytics with improved filter handling and validation
|
|
1901
|
+
* expand TrafficAreaAnalyticsModule API with tiles mode, filtering, custom styling, and tooltip
|
|
1902
|
+
* improve mobile view for chat
|
|
1903
|
+
* new module events to react to config changes and shown features
|
|
1904
|
+
* parameterize tool registry with unified ToolMetadata and MapAgentTool types
|
|
1905
|
+
* remove canvas area analytics chart from main sdk, ported to example using html elements instead of canvas
|
|
1906
|
+
* traffic area analytics configuration improvements
|
|
1907
|
+
* traffic area analytics configuration improvements
|
|
1883
1908
|
|
|
1884
1909
|
|
|
1885
1910
|
### Bug Fixes
|
|
1886
1911
|
|
|
1887
|
-
* ai plugin docs diagrams
|
|
1888
|
-
* disambiguate traffic tools, add analytics to clearMap, fix restoration race
|
|
1889
|
-
* mobile speech input continuous
|
|
1890
|
-
* serialize dates as ISO strings for safe LLM parsing. Example transport cleanup
|
|
1912
|
+
* ai plugin docs diagrams
|
|
1913
|
+
* disambiguate traffic tools, add analytics to clearMap, fix restoration race
|
|
1914
|
+
* mobile speech input continuous
|
|
1915
|
+
* serialize dates as ISO strings for safe LLM parsing. Example transport cleanup
|
|
1891
1916
|
|
|
1892
1917
|
## [0.46.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.8...v0.46.9) (2026-03-30)
|
|
1893
1918
|
|
|
1894
1919
|
|
|
1895
1920
|
### Features
|
|
1896
1921
|
|
|
1897
|
-
* add internal optional metadata header
|
|
1922
|
+
* add internal optional metadata header
|
|
1898
1923
|
|
|
1899
1924
|
## [0.46.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.7...v0.46.8) (2026-03-27)
|
|
1900
1925
|
|
|
1901
1926
|
|
|
1902
1927
|
### Features
|
|
1903
1928
|
|
|
1904
|
-
* add traffic area analytics example with configuration and visualization options ([#1632](https://github.com/tomtom-internal/maps-sdk-js/issues/1632))
|
|
1905
|
-
* **ai-eval, map-chat-agent:** extend eval harness and update eval cases
|
|
1906
|
-
* ensure area analytics dates start at least 2 days before the current day
|
|
1907
|
-
* improve circle theme visuals with dynamic POI sizing and unified centered-icon offset logic
|
|
1908
|
-
* **map-agent:** add extension tools and map-data-agent example
|
|
1909
|
-
* **map-agent:** redesign core tool layer
|
|
1910
|
-
* **map-agent:** switch focusOnPlace from geocode to search, add biasPosition
|
|
1911
|
-
* show area analytics hexagons below place labels
|
|
1929
|
+
* add traffic area analytics example with configuration and visualization options ([#1632](https://github.com/tomtom-internal/maps-sdk-js/issues/1632))
|
|
1930
|
+
* **ai-eval, map-chat-agent:** extend eval harness and update eval cases
|
|
1931
|
+
* ensure area analytics dates start at least 2 days before the current day
|
|
1932
|
+
* improve circle theme visuals with dynamic POI sizing and unified centered-icon offset logic
|
|
1933
|
+
* **map-agent:** add extension tools and map-data-agent example
|
|
1934
|
+
* **map-agent:** redesign core tool layer
|
|
1935
|
+
* **map-agent:** switch focusOnPlace from geocode to search, add biasPosition
|
|
1936
|
+
* show area analytics hexagons below place labels
|
|
1912
1937
|
|
|
1913
1938
|
|
|
1914
1939
|
### Bug Fixes
|
|
1915
1940
|
|
|
1916
|
-
* **map-agent:** fix P0/P1/P2 tool bugs and design weaknesses
|
|
1917
|
-
* maplibre version reliability in SDK built examples
|
|
1918
|
-
* poi category codes and mappings, and formatting
|
|
1919
|
-
* traffic area analytics layer id inits
|
|
1941
|
+
* **map-agent:** fix P0/P1/P2 tool bugs and design weaknesses
|
|
1942
|
+
* maplibre version reliability in SDK built examples
|
|
1943
|
+
* poi category codes and mappings, and formatting
|
|
1944
|
+
* traffic area analytics layer id inits
|
|
1920
1945
|
|
|
1921
1946
|
## [0.46.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.6...v0.46.7) (2026-03-20)
|
|
1922
1947
|
|
|
1923
1948
|
|
|
1924
1949
|
### Features
|
|
1925
1950
|
|
|
1926
|
-
* add area analytics module with visualization layers and utilities
|
|
1927
|
-
* add color scheme selector and update legend functionality in TrafficAreaAnalyticsModule
|
|
1928
|
-
* add color scheme support for TrafficAreaAnalyticsModule and related components
|
|
1929
|
-
* add integration tests and data for TrafficAreaAnalyticsModule following pr comments
|
|
1930
|
-
* add layer ID properties for explicit access in TrafficAreaAnalyticsModule
|
|
1931
|
-
* add theme propertie to RoutingModule and set-route-theme tool
|
|
1932
|
-
* add traffic area analytics example with city search and hex grid
|
|
1933
|
-
* add TrafficAreaAnalyticsModule with hexgrid and heatmap layers
|
|
1934
|
-
* add TrafficAreaAnalyticsModule with visualization layers
|
|
1935
|
-
* derive outline color from mainColor, update waypoint icons at runtime
|
|
1936
|
-
* remove hexTransform module and simplify analytics display logic
|
|
1951
|
+
* add area analytics module with visualization layers and utilities
|
|
1952
|
+
* add color scheme selector and update legend functionality in TrafficAreaAnalyticsModule
|
|
1953
|
+
* add color scheme support for TrafficAreaAnalyticsModule and related components
|
|
1954
|
+
* add integration tests and data for TrafficAreaAnalyticsModule following pr comments
|
|
1955
|
+
* add layer ID properties for explicit access in TrafficAreaAnalyticsModule
|
|
1956
|
+
* add theme propertie to RoutingModule and set-route-theme tool
|
|
1957
|
+
* add traffic area analytics example with city search and hex grid
|
|
1958
|
+
* add TrafficAreaAnalyticsModule with hexgrid and heatmap layers
|
|
1959
|
+
* add TrafficAreaAnalyticsModule with visualization layers
|
|
1960
|
+
* derive outline color from mainColor, update waypoint icons at runtime
|
|
1961
|
+
* remove hexTransform module and simplify analytics display logic
|
|
1937
1962
|
|
|
1938
1963
|
|
|
1939
1964
|
### Bug Fixes
|
|
1940
1965
|
|
|
1941
|
-
* add type annotation for madridCenter in TrafficAreaAnalyticsModule tests
|
|
1942
|
-
* migrate reachable range service from V3 to V2 API and update docs link
|
|
1943
|
-
* omit tomtom-user-agent header for area analytics requests (CORS)
|
|
1944
|
-
* resolve lint errors and remove non-null assertions
|
|
1945
|
-
* restore .npmrc before creating pull request
|
|
1946
|
-
* wait ForMapIdle race condition
|
|
1966
|
+
* add type annotation for madridCenter in TrafficAreaAnalyticsModule tests
|
|
1967
|
+
* migrate reachable range service from V3 to V2 API and update docs link
|
|
1968
|
+
* omit tomtom-user-agent header for area analytics requests (CORS)
|
|
1969
|
+
* resolve lint errors and remove non-null assertions
|
|
1970
|
+
* restore .npmrc before creating pull request
|
|
1971
|
+
* wait ForMapIdle race condition
|
|
1947
1972
|
|
|
1948
1973
|
## [0.46.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.5...v0.46.6) (2026-03-17)
|
|
1949
1974
|
|
|
1950
1975
|
|
|
1951
1976
|
### Bug Fixes
|
|
1952
1977
|
|
|
1953
|
-
* dep and sandpack upgrades
|
|
1978
|
+
* dep and sandpack upgrades
|
|
1954
1979
|
|
|
1955
1980
|
## [0.46.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.4...v0.46.5) (2026-03-17)
|
|
1956
1981
|
|
|
1957
1982
|
|
|
1958
1983
|
### Bug Fixes
|
|
1959
1984
|
|
|
1960
|
-
* add thumbnails for nodejs examples
|
|
1985
|
+
* add thumbnails for nodejs examples
|
|
1961
1986
|
|
|
1962
1987
|
## [0.46.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.3...v0.46.4) (2026-03-17)
|
|
1963
1988
|
|
|
1964
1989
|
|
|
1965
1990
|
### Bug Fixes
|
|
1966
1991
|
|
|
1967
|
-
* sandpack examples relying on Set logic
|
|
1992
|
+
* sandpack examples relying on Set logic
|
|
1968
1993
|
|
|
1969
1994
|
## [0.46.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.2...v0.46.3) (2026-03-17)
|
|
1970
1995
|
|
|
1971
1996
|
|
|
1972
1997
|
### Features
|
|
1973
1998
|
|
|
1974
|
-
* along route search service with examples, docs and minor refactorings
|
|
1975
|
-
* along route search service with examples, docs and minor refactorings
|
|
1999
|
+
* along route search service with examples, docs and minor refactorings
|
|
2000
|
+
* along route search service with examples, docs and minor refactorings
|
|
1976
2001
|
|
|
1977
2002
|
|
|
1978
2003
|
### Bug Fixes
|
|
1979
2004
|
|
|
1980
|
-
* ensure geometry search and along route search cannot accept position params
|
|
2005
|
+
* ensure geometry search and along route search cannot accept position params
|
|
1981
2006
|
|
|
1982
2007
|
## [0.46.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.1...v0.46.2) (2026-03-16)
|
|
1983
2008
|
|
|
1984
2009
|
|
|
1985
2010
|
### Features
|
|
1986
2011
|
|
|
1987
|
-
* add context7 json to help manage ai assisted coding
|
|
2012
|
+
* add context7 json to help manage ai assisted coding
|
|
1988
2013
|
|
|
1989
2014
|
## [0.46.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.0...v0.46.1) (2026-03-13)
|
|
1990
2015
|
|
|
1991
2016
|
|
|
1992
2017
|
### Features
|
|
1993
2018
|
|
|
1994
|
-
* add skills for agents to develop with the SDK
|
|
1995
|
-
* enhance documentation for map agent and setup with new examples and boilerplate
|
|
1996
|
-
* make tool-activation opt-out
|
|
2019
|
+
* add skills for agents to develop with the SDK
|
|
2020
|
+
* enhance documentation for map agent and setup with new examples and boilerplate
|
|
2021
|
+
* make tool-activation opt-out
|
|
1997
2022
|
|
|
1998
2023
|
|
|
1999
2024
|
### Bug Fixes
|
|
2000
2025
|
|
|
2001
|
-
* ensure traffic area analytics report name
|
|
2002
|
-
* poi category codes agent tool reliability with languages
|
|
2026
|
+
* ensure traffic area analytics report name
|
|
2027
|
+
* poi category codes agent tool reliability with languages
|
|
2003
2028
|
|
|
2004
2029
|
## [0.46.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.12...v0.46.0) (2026-03-12)
|
|
2005
2030
|
|
|
@@ -2010,96 +2035,96 @@
|
|
|
2010
2035
|
|
|
2011
2036
|
### Features
|
|
2012
2037
|
|
|
2013
|
-
* improve poi categories relationship with search
|
|
2014
|
-
* traffic area analytics lite service
|
|
2038
|
+
* improve poi categories relationship with search
|
|
2039
|
+
* traffic area analytics lite service
|
|
2015
2040
|
|
|
2016
2041
|
## [0.45.12](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.11...v0.45.12) (2026-03-04)
|
|
2017
2042
|
|
|
2018
2043
|
|
|
2019
2044
|
### Bug Fixes
|
|
2020
2045
|
|
|
2021
|
-
* missing example thumbnail
|
|
2046
|
+
* missing example thumbnail
|
|
2022
2047
|
|
|
2023
2048
|
## [0.45.11](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.10...v0.45.11) (2026-03-03)
|
|
2024
2049
|
|
|
2025
2050
|
|
|
2026
2051
|
### Features
|
|
2027
2052
|
|
|
2028
|
-
* add avoid areas parameter for route calculations
|
|
2029
|
-
* add avoid areas parameter for route calculations
|
|
2030
|
-
* add intent-based classification and selective tooling with tool groups and step scope
|
|
2031
|
-
* improve pois and traffic map feature mappings
|
|
2032
|
-
* improve pois and traffic map feature mappings
|
|
2033
|
-
* multiple agent tool improvements
|
|
2053
|
+
* add avoid areas parameter for route calculations
|
|
2054
|
+
* add avoid areas parameter for route calculations
|
|
2055
|
+
* add intent-based classification and selective tooling with tool groups and step scope
|
|
2056
|
+
* improve pois and traffic map feature mappings
|
|
2057
|
+
* improve pois and traffic map feature mappings
|
|
2058
|
+
* multiple agent tool improvements
|
|
2034
2059
|
|
|
2035
2060
|
|
|
2036
2061
|
### Bug Fixes
|
|
2037
2062
|
|
|
2038
|
-
* clear geometry labels property
|
|
2039
|
-
* geometries label size
|
|
2040
|
-
* remove unused section props
|
|
2041
|
-
* routing module incident events type
|
|
2042
|
-
* switch from geojsonobject to geojson types for correctness
|
|
2063
|
+
* clear geometry labels property
|
|
2064
|
+
* geometries label size
|
|
2065
|
+
* remove unused section props
|
|
2066
|
+
* routing module incident events type
|
|
2067
|
+
* switch from geojsonobject to geojson types for correctness
|
|
2043
2068
|
|
|
2044
2069
|
## [0.45.10](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.9...v0.45.10) (2026-02-26)
|
|
2045
2070
|
|
|
2046
2071
|
|
|
2047
2072
|
### Features
|
|
2048
2073
|
|
|
2049
|
-
* improve traffic details service parameters and documentation
|
|
2074
|
+
* improve traffic details service parameters and documentation
|
|
2050
2075
|
|
|
2051
2076
|
## [0.45.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.8...v0.45.9) (2026-02-26)
|
|
2052
2077
|
|
|
2053
2078
|
|
|
2054
2079
|
### Features
|
|
2055
2080
|
|
|
2056
|
-
* improve inverted theme support for reachable ranges, migrate examples to use theme: 'inverted'
|
|
2057
|
-
* incident details service improvements and added agent tools
|
|
2058
|
-
* traffic incident details service
|
|
2081
|
+
* improve inverted theme support for reachable ranges, migrate examples to use theme: 'inverted'
|
|
2082
|
+
* incident details service improvements and added agent tools
|
|
2083
|
+
* traffic incident details service
|
|
2059
2084
|
|
|
2060
2085
|
## [0.45.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.7...v0.45.8) (2026-02-24)
|
|
2061
2086
|
|
|
2062
2087
|
|
|
2063
2088
|
### Bug Fixes
|
|
2064
2089
|
|
|
2065
|
-
* ensure reachable ranges is visible on docs portal
|
|
2090
|
+
* ensure reachable ranges is visible on docs portal
|
|
2066
2091
|
|
|
2067
2092
|
## [0.45.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.6...v0.45.7) (2026-02-24)
|
|
2068
2093
|
|
|
2069
2094
|
|
|
2070
2095
|
### Features
|
|
2071
2096
|
|
|
2072
|
-
* add themed geometry config and make reachable-ranges zero-plumbing geometry display
|
|
2073
|
-
* reinstate displayReachableRanges and reachable-ranges example, allowing custom multi-budget-type, palette, and theme support
|
|
2074
|
-
* typed features for map traffic incidents and flow, with extra properties
|
|
2097
|
+
* add themed geometry config and make reachable-ranges zero-plumbing geometry display
|
|
2098
|
+
* reinstate displayReachableRanges and reachable-ranges example, allowing custom multi-budget-type, palette, and theme support
|
|
2099
|
+
* typed features for map traffic incidents and flow, with extra properties
|
|
2075
2100
|
|
|
2076
2101
|
|
|
2077
2102
|
### Bug Fixes
|
|
2078
2103
|
|
|
2079
|
-
* remove roadShieldReferences guidance param — road shields are requested via sectionTypes, and are included by default
|
|
2104
|
+
* remove roadShieldReferences guidance param — road shields are requested via sectionTypes, and are included by default
|
|
2080
2105
|
|
|
2081
2106
|
## [0.45.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.5...v0.45.6) (2026-02-23)
|
|
2082
2107
|
|
|
2083
2108
|
|
|
2084
2109
|
### Features
|
|
2085
2110
|
|
|
2086
|
-
* opt-out visibility for route summary bubbles
|
|
2111
|
+
* opt-out visibility for route summary bubbles
|
|
2087
2112
|
|
|
2088
2113
|
|
|
2089
2114
|
### Bug Fixes
|
|
2090
2115
|
|
|
2091
|
-
* pois module feature mappings and type fixes
|
|
2116
|
+
* pois module feature mappings and type fixes
|
|
2092
2117
|
|
|
2093
2118
|
## [0.45.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.4...v0.45.5) (2026-02-20)
|
|
2094
2119
|
|
|
2095
2120
|
|
|
2096
2121
|
### Features
|
|
2097
2122
|
|
|
2098
|
-
* add new get section progress tool, and improve existing tools
|
|
2099
|
-
* core utilities related to routes and tool description improvements
|
|
2100
|
-
* new hover-move event type which keeps firing as you move the pointer over the relevant features
|
|
2101
|
-
* new utility to find route progress matching a nearby arbitrary location
|
|
2102
|
-
* refactor core utility guides and add new example for add stops to route
|
|
2123
|
+
* add new get section progress tool, and improve existing tools
|
|
2124
|
+
* core utilities related to routes and tool description improvements
|
|
2125
|
+
* new hover-move event type which keeps firing as you move the pointer over the relevant features
|
|
2126
|
+
* new utility to find route progress matching a nearby arbitrary location
|
|
2127
|
+
* refactor core utility guides and add new example for add stops to route
|
|
2103
2128
|
|
|
2104
2129
|
|
|
2105
2130
|
## [0.45.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.3...v0.45.4) (2026-02-17)
|
|
@@ -2110,48 +2135,48 @@
|
|
|
2110
2135
|
|
|
2111
2136
|
### Features
|
|
2112
2137
|
|
|
2113
|
-
* add shared CSS design system and reusable HTML templates for examples
|
|
2114
|
-
* add template CSS inlining and local SDK dependency resolution to Sandpack
|
|
2115
|
-
* migrate all examples to use the shared CSS design system
|
|
2116
|
-
* zod and lodash are now peer dependencies, not bundled in sdk anymore
|
|
2138
|
+
* add shared CSS design system and reusable HTML templates for examples
|
|
2139
|
+
* add template CSS inlining and local SDK dependency resolution to Sandpack
|
|
2140
|
+
* migrate all examples to use the shared CSS design system
|
|
2141
|
+
* zod and lodash are now peer dependencies, not bundled in sdk anymore
|
|
2117
2142
|
|
|
2118
2143
|
|
|
2119
2144
|
### Bug Fixes
|
|
2120
2145
|
|
|
2121
|
-
* update Playwright config for Chrome for Testing WebGL support and refresh snapshots
|
|
2146
|
+
* update Playwright config for Chrome for Testing WebGL support and refresh snapshots
|
|
2122
2147
|
|
|
2123
2148
|
## [0.42.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.42.1...v0.42.2) (2026-02-06)
|
|
2124
2149
|
|
|
2125
2150
|
|
|
2126
2151
|
### Bug Fixes
|
|
2127
2152
|
|
|
2128
|
-
* ensure map theme switching is smooth
|
|
2153
|
+
* ensure map theme switching is smooth
|
|
2129
2154
|
|
|
2130
2155
|
## [0.42.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.42.0...v0.42.1) (2026-02-03)
|
|
2131
2156
|
|
|
2132
2157
|
|
|
2133
2158
|
### Features
|
|
2134
2159
|
|
|
2135
|
-
* add traffic incident playground example
|
|
2160
|
+
* add traffic incident playground example
|
|
2136
2161
|
|
|
2137
2162
|
|
|
2138
2163
|
### Bug Fixes
|
|
2139
2164
|
|
|
2140
|
-
* enable documentation indexing
|
|
2141
|
-
* filter by incidents by magnitude_of_delay
|
|
2142
|
-
* omit bounding box and position from search options in viewport places plugin since they should be automatically set
|
|
2165
|
+
* enable documentation indexing
|
|
2166
|
+
* filter by incidents by magnitude_of_delay
|
|
2167
|
+
* omit bounding box and position from search options in viewport places plugin since they should be automatically set
|
|
2143
2168
|
|
|
2144
2169
|
## [0.42.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.8...v0.42.0) (2026-01-30)
|
|
2145
2170
|
|
|
2146
2171
|
|
|
2147
2172
|
### Features
|
|
2148
2173
|
|
|
2149
|
-
* **viewport-places:** improve types
|
|
2174
|
+
* **viewport-places:** improve types
|
|
2150
2175
|
|
|
2151
2176
|
|
|
2152
2177
|
### Bug Fixes
|
|
2153
2178
|
|
|
2154
|
-
* viewport places plugin example
|
|
2179
|
+
* viewport places plugin example
|
|
2155
2180
|
|
|
2156
2181
|
|
|
2157
2182
|
## [0.41.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.7...v0.41.8) (2026-01-30)
|
|
@@ -2159,71 +2184,71 @@
|
|
|
2159
2184
|
|
|
2160
2185
|
### Bug Fixes
|
|
2161
2186
|
|
|
2162
|
-
* viewport places plugin example
|
|
2187
|
+
* viewport places plugin example
|
|
2163
2188
|
|
|
2164
2189
|
## [0.41.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.6...v0.41.7) (2026-01-30)
|
|
2165
2190
|
|
|
2166
2191
|
|
|
2167
2192
|
### Bug Fixes
|
|
2168
2193
|
|
|
2169
|
-
* improve release workflow and update documentation
|
|
2194
|
+
* improve release workflow and update documentation
|
|
2170
2195
|
|
|
2171
2196
|
## [0.41.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.5...v0.41.6) (2026-01-30)
|
|
2172
2197
|
|
|
2173
2198
|
|
|
2174
2199
|
### Features
|
|
2175
2200
|
|
|
2176
|
-
* **viewport-places:** improve types
|
|
2201
|
+
* **viewport-places:** improve types
|
|
2177
2202
|
|
|
2178
2203
|
## [0.41.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.4...v0.41.5) (2026-01-30)
|
|
2179
2204
|
|
|
2180
2205
|
|
|
2181
2206
|
### Features
|
|
2182
2207
|
|
|
2183
|
-
* **viewport-places:** improve TSDocs
|
|
2208
|
+
* **viewport-places:** improve TSDocs
|
|
2184
2209
|
|
|
2185
2210
|
## [0.41.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.3...v0.41.4) (2026-01-30)
|
|
2186
2211
|
|
|
2187
2212
|
|
|
2188
2213
|
### Bug Fixes
|
|
2189
2214
|
|
|
2190
|
-
* missing [@ignore](https://github.com/ignore) for internal routing variable
|
|
2191
|
-
* missing tsdoc group for type
|
|
2215
|
+
* missing [@ignore](https://github.com/ignore) for internal routing variable
|
|
2216
|
+
* missing tsdoc group for type
|
|
2192
2217
|
|
|
2193
2218
|
## [0.41.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.2...v0.41.3) (2026-01-29)
|
|
2194
2219
|
|
|
2195
2220
|
|
|
2196
2221
|
### Features
|
|
2197
2222
|
|
|
2198
|
-
* simplify viewport places method name, and improve api reference docs
|
|
2199
|
-
* upgrade deps
|
|
2223
|
+
* simplify viewport places method name, and improve api reference docs
|
|
2224
|
+
* upgrade deps
|
|
2200
2225
|
|
|
2201
2226
|
## [0.41.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.1...v0.41.2) (2026-01-29)
|
|
2202
2227
|
|
|
2203
2228
|
|
|
2204
2229
|
### Features
|
|
2205
2230
|
|
|
2206
|
-
* add availability-aware custom EV icons to example
|
|
2207
|
-
* add EV availability icon selection with custom icon support
|
|
2208
|
-
* add EVAvailabilityConfig type with opt-in configuration
|
|
2209
|
-
* add plugins workspace with first plugin to easily display search-powered layers of places on the map
|
|
2210
|
-
* add theme awareness and availability-level icon image handling to PlacesModule
|
|
2211
|
-
* enhance EV custom display example with theme switching and improved controls
|
|
2212
|
-
* implement EV availability display in layer specs
|
|
2213
|
-
* rename ev playground to search
|
|
2231
|
+
* add availability-aware custom EV icons to example
|
|
2232
|
+
* add EV availability icon selection with custom icon support
|
|
2233
|
+
* add EVAvailabilityConfig type with opt-in configuration
|
|
2234
|
+
* add plugins workspace with first plugin to easily display search-powered layers of places on the map
|
|
2235
|
+
* add theme awareness and availability-level icon image handling to PlacesModule
|
|
2236
|
+
* enhance EV custom display example with theme switching and improved controls
|
|
2237
|
+
* implement EV availability display in layer specs
|
|
2238
|
+
* rename ev playground to search
|
|
2214
2239
|
|
|
2215
2240
|
|
|
2216
2241
|
### Bug Fixes
|
|
2217
2242
|
|
|
2218
|
-
* make StyleChangeHandler callbacks optional
|
|
2219
|
-
* try to fail gracefully when some layers cannot be added in map modules, likely due to misconfiguration
|
|
2243
|
+
* make StyleChangeHandler callbacks optional
|
|
2244
|
+
* try to fail gracefully when some layers cannot be added in map modules, likely due to misconfiguration
|
|
2220
2245
|
|
|
2221
2246
|
## [0.41.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.0...v0.41.1) (2026-01-16)
|
|
2222
2247
|
|
|
2223
2248
|
|
|
2224
2249
|
### Bug Fixes
|
|
2225
2250
|
|
|
2226
|
-
* **examples:** import in ev-charging-stations-playground
|
|
2251
|
+
* **examples:** import in ev-charging-stations-playground
|
|
2227
2252
|
|
|
2228
2253
|
## [0.41.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.40.1...v0.41.0) (2026-01-16)
|
|
2229
2254
|
|
|
@@ -2236,297 +2261,297 @@
|
|
|
2236
2261
|
|
|
2237
2262
|
### Bug Fixes
|
|
2238
2263
|
|
|
2239
|
-
* css responsiveness
|
|
2240
|
-
* **ev-search:** getPlacesWithEvAvailability return type
|
|
2264
|
+
* css responsiveness
|
|
2265
|
+
* **ev-search:** getPlacesWithEvAvailability return type
|
|
2241
2266
|
|
|
2242
2267
|
|
|
2243
2268
|
### Code Refactoring
|
|
2244
2269
|
|
|
2245
|
-
* **ev-search:** merge connectors and connectorCounts
|
|
2246
|
-
* merge mapParams and mapLibreOptions
|
|
2270
|
+
* **ev-search:** merge connectors and connectorCounts
|
|
2271
|
+
* merge mapParams and mapLibreOptions
|
|
2247
2272
|
|
|
2248
2273
|
## [0.40.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.40.0...v0.40.1) (2026-01-08)
|
|
2249
2274
|
|
|
2250
2275
|
|
|
2251
2276
|
### Bug Fixes
|
|
2252
2277
|
|
|
2253
|
-
* calculate padded bboxes correctly if any of the surrounding elements goes beyond the visible screen
|
|
2254
|
-
* ensure map style parts which were excluded are loaded more robustly
|
|
2278
|
+
* calculate padded bboxes correctly if any of the surrounding elements goes beyond the visible screen
|
|
2279
|
+
* ensure map style parts which were excluded are loaded more robustly
|
|
2255
2280
|
|
|
2256
2281
|
## [0.40.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.39.0...v0.40.0) (2026-01-07)
|
|
2257
2282
|
|
|
2258
2283
|
|
|
2259
2284
|
### Features
|
|
2260
2285
|
|
|
2261
|
-
* new padded bbox calculation utilities for map bundle
|
|
2262
|
-
* new polygonFromBBox core utility
|
|
2263
|
-
* sdk upgrade
|
|
2286
|
+
* new padded bbox calculation utilities for map bundle
|
|
2287
|
+
* new polygonFromBBox core utility
|
|
2288
|
+
* sdk upgrade
|
|
2264
2289
|
|
|
2265
2290
|
## [0.39.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.38.1...v0.39.0) (2026-01-06)
|
|
2266
2291
|
|
|
2267
2292
|
|
|
2268
2293
|
### Features
|
|
2269
2294
|
|
|
2270
|
-
* add live coding for few guides
|
|
2271
|
-
* new map style switcher example
|
|
2295
|
+
* add live coding for few guides
|
|
2296
|
+
* new map style switcher example
|
|
2272
2297
|
|
|
2273
2298
|
|
|
2274
2299
|
### Bug Fixes
|
|
2275
2300
|
|
|
2276
|
-
* simplify how sandpack examples are exposed
|
|
2301
|
+
* simplify how sandpack examples are exposed
|
|
2277
2302
|
|
|
2278
2303
|
## [0.38.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.38.0...v0.38.1) (2025-12-17)
|
|
2279
2304
|
|
|
2280
2305
|
|
|
2281
2306
|
### Bug Fixes
|
|
2282
2307
|
|
|
2283
|
-
* quickstart guide link text
|
|
2308
|
+
* quickstart guide link text
|
|
2284
2309
|
|
|
2285
2310
|
## [0.38.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.37.0...v0.38.0) (2025-12-17)
|
|
2286
2311
|
|
|
2287
2312
|
|
|
2288
2313
|
### Features
|
|
2289
2314
|
|
|
2290
|
-
* improve bbox types for places, routes and geometries
|
|
2315
|
+
* improve bbox types for places, routes and geometries
|
|
2291
2316
|
|
|
2292
2317
|
## [0.37.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.9...v0.37.0) (2025-12-16)
|
|
2293
2318
|
|
|
2294
2319
|
|
|
2295
2320
|
### Features
|
|
2296
2321
|
|
|
2297
|
-
* improve bbox types for places and routes so they reflect 4-dimensional types
|
|
2298
|
-
* optional events configuration for each map module
|
|
2322
|
+
* improve bbox types for places and routes so they reflect 4-dimensional types
|
|
2323
|
+
* optional events configuration for each map module
|
|
2299
2324
|
|
|
2300
2325
|
|
|
2301
2326
|
### Bug Fixes
|
|
2302
2327
|
|
|
2303
|
-
* add sandpack wrapper for each example
|
|
2304
|
-
* move sandpack local preview inside sandpack folder
|
|
2305
|
-
* use release please version in tests
|
|
2306
|
-
* use vite to resolve dependencies and examples map
|
|
2328
|
+
* add sandpack wrapper for each example
|
|
2329
|
+
* move sandpack local preview inside sandpack folder
|
|
2330
|
+
* use release please version in tests
|
|
2331
|
+
* use vite to resolve dependencies and examples map
|
|
2307
2332
|
|
|
2308
2333
|
## [0.36.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.8...v0.36.9) (2025-12-11)
|
|
2309
2334
|
|
|
2310
2335
|
|
|
2311
2336
|
### Bug Fixes
|
|
2312
2337
|
|
|
2313
|
-
* upgrade deps
|
|
2338
|
+
* upgrade deps
|
|
2314
2339
|
|
|
2315
2340
|
## [0.36.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.7...v0.36.8) (2025-12-11)
|
|
2316
2341
|
|
|
2317
2342
|
|
|
2318
2343
|
### Bug Fixes
|
|
2319
2344
|
|
|
2320
|
-
* upgrade deps
|
|
2345
|
+
* upgrade deps
|
|
2321
2346
|
|
|
2322
2347
|
## [0.36.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.6...v0.36.7) (2025-12-11)
|
|
2323
2348
|
|
|
2324
2349
|
|
|
2325
2350
|
### Bug Fixes
|
|
2326
2351
|
|
|
2327
|
-
* consistency with naming map module instance variables
|
|
2352
|
+
* consistency with naming map module instance variables
|
|
2328
2353
|
|
|
2329
2354
|
## [0.36.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.5...v0.36.6) (2025-12-10)
|
|
2330
2355
|
|
|
2331
2356
|
|
|
2332
2357
|
### Bug Fixes
|
|
2333
2358
|
|
|
2334
|
-
* remove leftover console logs
|
|
2359
|
+
* remove leftover console logs
|
|
2335
2360
|
|
|
2336
2361
|
## [0.36.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.4...v0.36.5) (2025-12-09)
|
|
2337
2362
|
|
|
2338
2363
|
|
|
2339
2364
|
### Bug Fixes
|
|
2340
2365
|
|
|
2341
|
-
* type exports
|
|
2366
|
+
* type exports
|
|
2342
2367
|
|
|
2343
2368
|
## [0.36.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.3...v0.36.4) (2025-12-08)
|
|
2344
2369
|
|
|
2345
2370
|
|
|
2346
2371
|
### Bug Fixes
|
|
2347
2372
|
|
|
2348
|
-
* regression fix for additional layers vs multiple routing modules support
|
|
2349
|
-
* regression fix regarding unnecessarily suffixing custom images in routing module instances
|
|
2373
|
+
* regression fix for additional layers vs multiple routing modules support
|
|
2374
|
+
* regression fix regarding unnecessarily suffixing custom images in routing module instances
|
|
2350
2375
|
|
|
2351
2376
|
## [0.36.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.2...v0.36.3) (2025-12-08)
|
|
2352
2377
|
|
|
2353
2378
|
|
|
2354
2379
|
### Bug Fixes
|
|
2355
2380
|
|
|
2356
|
-
* prevent querying features without passing any layers
|
|
2381
|
+
* prevent querying features without passing any layers
|
|
2357
2382
|
|
|
2358
2383
|
## [0.36.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.1...v0.36.2) (2025-12-08)
|
|
2359
2384
|
|
|
2360
2385
|
|
|
2361
2386
|
### Bug Fixes
|
|
2362
2387
|
|
|
2363
|
-
* example content hotfix
|
|
2364
|
-
* simplify and improve category mappings for places
|
|
2388
|
+
* example content hotfix
|
|
2389
|
+
* simplify and improve category mappings for places
|
|
2365
2390
|
|
|
2366
2391
|
## [0.36.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.0...v0.36.1) (2025-12-08)
|
|
2367
2392
|
|
|
2368
2393
|
|
|
2369
2394
|
### Bug Fixes
|
|
2370
2395
|
|
|
2371
|
-
* simplify and improve category mappings for places
|
|
2396
|
+
* simplify and improve category mappings for places
|
|
2372
2397
|
|
|
2373
2398
|
## [0.36.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.5...v0.36.0) (2025-12-05)
|
|
2374
2399
|
|
|
2375
2400
|
|
|
2376
2401
|
### Features
|
|
2377
2402
|
|
|
2378
|
-
* multiple routing module instances possible, including two new examples
|
|
2403
|
+
* multiple routing module instances possible, including two new examples
|
|
2379
2404
|
|
|
2380
2405
|
|
|
2381
2406
|
### Bug Fixes
|
|
2382
2407
|
|
|
2383
|
-
* ensure feature ids and feature properties ids are always set
|
|
2408
|
+
* ensure feature ids and feature properties ids are always set
|
|
2384
2409
|
|
|
2385
2410
|
## [0.35.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.4...v0.35.5) (2025-12-04)
|
|
2386
2411
|
|
|
2387
2412
|
|
|
2388
2413
|
### Bug Fixes
|
|
2389
2414
|
|
|
2390
|
-
* skip validating styles when changing them for performance
|
|
2391
|
-
* upgrade maplibre dependency and ensure place properties always have id
|
|
2415
|
+
* skip validating styles when changing them for performance
|
|
2416
|
+
* upgrade maplibre dependency and ensure place properties always have id
|
|
2392
2417
|
|
|
2393
2418
|
## [0.35.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.3...v0.35.4) (2025-12-03)
|
|
2394
2419
|
|
|
2395
2420
|
|
|
2396
2421
|
### Bug Fixes
|
|
2397
2422
|
|
|
2398
|
-
* use right icon for toll roads along routes
|
|
2423
|
+
* use right icon for toll roads along routes
|
|
2399
2424
|
|
|
2400
2425
|
## [0.35.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.2...v0.35.3) (2025-12-03)
|
|
2401
2426
|
|
|
2402
2427
|
|
|
2403
2428
|
### Bug Fixes
|
|
2404
2429
|
|
|
2405
|
-
* custom image loading reliability across different browsers
|
|
2430
|
+
* custom image loading reliability across different browsers
|
|
2406
2431
|
|
|
2407
2432
|
## [0.35.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.1...v0.35.2) (2025-12-03)
|
|
2408
2433
|
|
|
2409
2434
|
|
|
2410
2435
|
### Bug Fixes
|
|
2411
2436
|
|
|
2412
|
-
* rev geo playground init
|
|
2437
|
+
* rev geo playground init
|
|
2413
2438
|
|
|
2414
2439
|
## [0.35.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.0...v0.35.1) (2025-12-03)
|
|
2415
2440
|
|
|
2416
2441
|
|
|
2417
2442
|
### Bug Fixes
|
|
2418
2443
|
|
|
2419
|
-
* mitigation to try to be more reliable on detecting that maplibre css was already loaded
|
|
2420
|
-
* remove noisy console warnings when deserializing potential JSON from features
|
|
2444
|
+
* mitigation to try to be more reliable on detecting that maplibre css was already loaded
|
|
2445
|
+
* remove noisy console warnings when deserializing potential JSON from features
|
|
2421
2446
|
|
|
2422
2447
|
## [0.35.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.34.1...v0.35.0) (2025-12-02)
|
|
2423
2448
|
|
|
2424
2449
|
|
|
2425
2450
|
### Features
|
|
2426
2451
|
|
|
2427
|
-
* new searchOne convenience function for fast single result searches
|
|
2428
|
-
* showRoutes in RoutingModule also accepts a single Route now
|
|
2429
|
-
* switching to a simplified BBox type in SDK with only 4 coordinates since we don't use the other 2 and this way we are more compatible with Maplibre
|
|
2452
|
+
* new searchOne convenience function for fast single result searches
|
|
2453
|
+
* showRoutes in RoutingModule also accepts a single Route now
|
|
2454
|
+
* switching to a simplified BBox type in SDK with only 4 coordinates since we don't use the other 2 and this way we are more compatible with Maplibre
|
|
2430
2455
|
|
|
2431
2456
|
|
|
2432
2457
|
### Bug Fixes
|
|
2433
2458
|
|
|
2434
|
-
* base map module undefined config consistency
|
|
2459
|
+
* base map module undefined config consistency
|
|
2435
2460
|
|
|
2436
2461
|
## [0.34.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.34.0...v0.34.1) (2025-12-01)
|
|
2437
2462
|
|
|
2438
2463
|
|
|
2439
2464
|
### Bug Fixes
|
|
2440
2465
|
|
|
2441
|
-
* add config file to maintain example api key
|
|
2442
|
-
* move all files for examples under its src folder
|
|
2443
|
-
* nodejs examples based on es modules
|
|
2444
|
-
* use sandpack to preview map in guides
|
|
2466
|
+
* add config file to maintain example api key
|
|
2467
|
+
* move all files for examples under its src folder
|
|
2468
|
+
* nodejs examples based on es modules
|
|
2469
|
+
* use sandpack to preview map in guides
|
|
2445
2470
|
|
|
2446
2471
|
## [0.34.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.33.0...v0.34.0) (2025-11-26)
|
|
2447
2472
|
|
|
2448
2473
|
|
|
2449
2474
|
### Features
|
|
2450
2475
|
|
|
2451
|
-
* hide fuzzySearch call to avoid overlap with search
|
|
2452
|
-
* improve visibility state management in traffic and hillshade modules, fix e2e tests, misc improvements
|
|
2453
|
-
* improvements in PlacesModule and added examples
|
|
2454
|
-
* upgrade sdk dependency
|
|
2476
|
+
* hide fuzzySearch call to avoid overlap with search
|
|
2477
|
+
* improve visibility state management in traffic and hillshade modules, fix e2e tests, misc improvements
|
|
2478
|
+
* improvements in PlacesModule and added examples
|
|
2479
|
+
* upgrade sdk dependency
|
|
2455
2480
|
|
|
2456
2481
|
|
|
2457
2482
|
### Bug Fixes
|
|
2458
2483
|
|
|
2459
|
-
* types and test data migrated to ts
|
|
2484
|
+
* types and test data migrated to ts
|
|
2460
2485
|
|
|
2461
2486
|
## [0.33.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.32.3...v0.33.0) (2025-11-20)
|
|
2462
2487
|
|
|
2463
2488
|
|
|
2464
2489
|
### Bug Fixes
|
|
2465
2490
|
|
|
2466
|
-
* update diagram how-the-sdk-works
|
|
2491
|
+
* update diagram how-the-sdk-works
|
|
2467
2492
|
|
|
2468
2493
|
## [0.32.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.32.2...v0.32.3) (2025-11-20)
|
|
2469
2494
|
|
|
2470
2495
|
|
|
2471
2496
|
### Bug Fixes
|
|
2472
2497
|
|
|
2473
|
-
* route instruction arrows to be above incidents
|
|
2474
|
-
* update license
|
|
2498
|
+
* route instruction arrows to be above incidents
|
|
2499
|
+
* update license
|
|
2475
2500
|
|
|
2476
2501
|
## [0.32.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.32.1...v0.32.2) (2025-11-18)
|
|
2477
2502
|
|
|
2478
2503
|
|
|
2479
2504
|
### Bug Fixes
|
|
2480
2505
|
|
|
2481
|
-
* es exports to prevent having to mention dist in imports
|
|
2506
|
+
* es exports to prevent having to mention dist in imports
|
|
2482
2507
|
|
|
2483
2508
|
## [0.32.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.31.1...v0.32.0) (2025-11-13)
|
|
2484
2509
|
|
|
2485
2510
|
|
|
2486
2511
|
### Features
|
|
2487
2512
|
|
|
2488
|
-
* export sdk as es modules only
|
|
2489
|
-
* simplify map style initialization
|
|
2513
|
+
* export sdk as es modules only
|
|
2514
|
+
* simplify map style initialization
|
|
2490
2515
|
|
|
2491
2516
|
## [0.31.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.30.2...v0.31.0) (2025-11-11)
|
|
2492
2517
|
|
|
2493
2518
|
|
|
2494
2519
|
### Features
|
|
2495
2520
|
|
|
2496
|
-
* improve places module configuration and examples
|
|
2497
|
-
* sdk automatically loads MapLibre CSS if not done by the caller
|
|
2498
|
-
* upgrade to new map style with new traffic incident icons
|
|
2521
|
+
* improve places module configuration and examples
|
|
2522
|
+
* sdk automatically loads MapLibre CSS if not done by the caller
|
|
2523
|
+
* upgrade to new map style with new traffic incident icons
|
|
2499
2524
|
|
|
2500
2525
|
|
|
2501
2526
|
### Bug Fixes
|
|
2502
2527
|
|
|
2503
|
-
* search exports and using typeahead true for fuzzy search examples
|
|
2528
|
+
* search exports and using typeahead true for fuzzy search examples
|
|
2504
2529
|
|
|
2505
2530
|
## [0.30.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.30.1...v0.30.2) (2025-11-06)
|
|
2506
2531
|
|
|
2507
2532
|
|
|
2508
2533
|
### Bug Fixes
|
|
2509
2534
|
|
|
2510
|
-
* example having incorrect references
|
|
2535
|
+
* example having incorrect references
|
|
2511
2536
|
|
|
2512
2537
|
## [0.30.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.30.0...v0.30.1) (2025-11-05)
|
|
2513
2538
|
|
|
2514
2539
|
|
|
2515
2540
|
### Bug Fixes
|
|
2516
2541
|
|
|
2517
|
-
* pin category mapping
|
|
2542
|
+
* pin category mapping
|
|
2518
2543
|
|
|
2519
2544
|
## [0.30.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.29.2...v0.30.0) (2025-11-05)
|
|
2520
2545
|
|
|
2521
2546
|
|
|
2522
2547
|
### Features
|
|
2523
2548
|
|
|
2524
|
-
* enable tomtom user agent headers by default
|
|
2549
|
+
* enable tomtom user agent headers by default
|
|
2525
2550
|
|
|
2526
2551
|
|
|
2527
2552
|
### Bug Fixes
|
|
2528
2553
|
|
|
2529
|
-
* route example content
|
|
2554
|
+
* route example content
|
|
2530
2555
|
|
|
2531
2556
|
## [0.29.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.29.1...v0.29.2) (2025-11-04)
|
|
2532
2557
|
|