@tomtom-org/maps-sdk 1.0.0-rc.6 → 1.0.0
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 +1351 -795
- package/README.md +1 -1
- package/core/dist/core.es.js +1 -1
- package/core/dist/index.d.ts +3 -1
- package/map/dist/index.d.ts +5 -2
- package/map/dist/map.es.js +2 -2
- package/map/package.json +1 -1
- package/package.json +2 -1
- package/services/dist/services.es.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,632 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- **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))
|
|
8
|
+
|
|
9
|
+
- 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'`
|
|
10
|
+
- 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
|
|
11
|
+
- examples: `react-route-planner` shows the traffic delay against free flow, and the delay of the traffic events on a row of its own
|
|
12
|
+
|
|
13
|
+
- 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))
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- **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))
|
|
18
|
+
|
|
19
|
+
- **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]`
|
|
20
|
+
- **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]`
|
|
21
|
+
- **Breaking:** core: `bboxFromBBoxes`, and `bboxFromGeoJSON` on several features or parts, return the narrowest box containing every input, so merging a box across the antimeridian with another keeps both
|
|
22
|
+
- **Breaking:** core: `polygonFromBBox` draws a box across the antimeridian with its east edge at `east + 360`, around the box rather than the rest of the world, and `bboxFromGeoJSON` reads that ring back as the same box
|
|
23
|
+
- map: `TomTomMap.getBBox` with padding returns a view across the antimeridian as `west > east`, and a view wider than 180° whole
|
|
24
|
+
- services: `geometrySearch` ranks a polygon across the antimeridian by its own width when it keeps the largest 50
|
|
25
|
+
- 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
|
|
26
|
+
|
|
27
|
+
- **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))
|
|
28
|
+
|
|
29
|
+
- **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
|
|
30
|
+
- 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"`
|
|
31
|
+
- examples: the route, traffic and store examples drop their fallbacks for a short duration
|
|
32
|
+
|
|
33
|
+
- **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))
|
|
34
|
+
|
|
35
|
+
- **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
|
|
36
|
+
- map: the map labels in each of them, and the traffic incident descriptions in Catalan, Estonian, Hebrew, Japanese, Latvian and Romanian
|
|
37
|
+
- services: a behaviour change. `zh-Hans` goes out as `zh-CN` and `zh-Hant` as `zh-TW`, so every service but traffic incidents, which lack Simplified Chinese, answers in that script, where it picked the script by place and answered Singapore in English. Search, geocoding, suggestions and POI categories take both, where they answered each with a 400
|
|
38
|
+
- services: search, geocoding and suggestions answer `hi-IN` and `ja-JP` in local names, and POI categories in English. All four answer `en-CA` in British English and `es-MX` in Latin American Spanish, where they answered each with a 400. POI categories take `ngt` and `ngt-Latn` too
|
|
39
|
+
- 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
|
|
40
|
+
- examples: `map-language` offers Hebrew, Hindi, Japanese, Serbian and Ukrainian
|
|
41
|
+
|
|
42
|
+
- **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))
|
|
43
|
+
|
|
44
|
+
- **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
|
|
45
|
+
- **Breaking:** core: a `Record<POICategory, …>` needs an entry for each of the ten codes
|
|
46
|
+
- services: a `poiCategoryQuery` or `resolvePOICategories` word that names a plain sub-category best, such as `'rto'` or `'open car parking area'`, resolves to its `_GENERIC` code, which searches that sub-category alone rather than its parent and the parent's other sub-categories
|
|
47
|
+
- 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`
|
|
48
|
+
- map: a place with one of the new codes takes its parent's base-map icon, pin and `categoryIcons` entry
|
|
49
|
+
|
|
50
|
+
- **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))
|
|
51
|
+
|
|
52
|
+
- **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
|
|
53
|
+
- **Breaking:** services: `calculateRoute` with `useEntryPoints: 'main-when-available'` sends such a stop at that entry point
|
|
54
|
+
- **Breaking:** map: `RoutingModule` with `waypoints.entryPoints: 'main-when-available'` draws such a waypoint at that entry point
|
|
55
|
+
|
|
56
|
+
- **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))
|
|
57
|
+
|
|
58
|
+
- 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.
|
|
59
|
+
- 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.
|
|
60
|
+
- Migration: drop `alignment` from `countryCrossings`. A bubble stays level with the screen.
|
|
61
|
+
- 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.
|
|
62
|
+
|
|
63
|
+
- **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))
|
|
64
|
+
|
|
65
|
+
- `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
|
|
66
|
+
- The logos are black with a white outline on every style, light and dark
|
|
67
|
+
- 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
|
|
68
|
+
- Your own `credits` follow the logos
|
|
69
|
+
- **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`
|
|
70
|
+
- examples: `attribution-playground` places the logos in each corner, over every standard style, with or without their backdrop
|
|
71
|
+
|
|
72
|
+
- 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))
|
|
73
|
+
|
|
74
|
+
- **Breaking:** a `lanes` section's `properties` read `IS_MANEUVER`, as documented, where they passed the API's `isManeuver` through. Match `'IS_MANEUVER'` instead.
|
|
75
|
+
|
|
76
|
+
- **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))
|
|
77
|
+
**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
|
|
78
|
+
- 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
|
|
79
|
+
- 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
|
|
80
|
+
- 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 }`
|
|
81
|
+
- map: a style, tile, sprite or glyph answered `403` reaches the error handlers as `INSUFFICIENT_PERMISSIONS`
|
|
82
|
+
|
|
83
|
+
- **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))
|
|
84
|
+
|
|
85
|
+
- map: `LayerQuery` takes `ids`, the exact style layer ids to select
|
|
86
|
+
- 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
|
|
87
|
+
- map: `addFilterClause` and `removeFilterClause` add a clause to a layer's filter, `and`-ed with the style's own and with the filters other modules add, instead of replacing it as `setFilter` does
|
|
88
|
+
- map: `POIsModule`'s `filters.ids` takes a `ValuesFilter` of POI ids, beside `filters.categories`
|
|
89
|
+
- **Breaking:** map: `POIsModuleConfig`'s `filters.categories` is optional, so `filters` can hold `ids` alone. Code reading `config.filters.categories` must handle `undefined`
|
|
90
|
+
- 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
|
|
91
|
+
|
|
92
|
+
- 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))
|
|
93
|
+
- `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
|
|
94
|
+
- An id the map already has throws, until that layer's `remove()`
|
|
95
|
+
- 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
|
|
96
|
+
- 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
|
|
97
|
+
|
|
98
|
+
- **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))
|
|
99
|
+
|
|
100
|
+
- **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
|
|
101
|
+
- **Breaking:** map: `roadSubcategory` is optional on `TrafficIncidentsModuleFeature`, and absent off `street` and `service` roads, as on `TrafficFlowModuleFeature`
|
|
102
|
+
- **Breaking:** map: a `TrafficFlowModuleFeature`'s geometry is a `LineString` or a `MultiLineString`, so check `geometry.type` before you read its coordinates
|
|
103
|
+
- **Breaking:** map: a waypoint keeps the id you give it, a number included, so `WaypointDisplayProps.id` is `string | number`
|
|
104
|
+
|
|
105
|
+
- **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))
|
|
106
|
+
|
|
107
|
+
- 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`
|
|
108
|
+
- 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
|
|
109
|
+
- **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
|
|
110
|
+
- 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
|
|
111
|
+
|
|
112
|
+
- **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))
|
|
113
|
+
- core: `APIErrorDetails` declares `apiErrorCode` and `privatePreviewAccess` once, for one function to read a service call's error and the map's alike
|
|
114
|
+
- map: `TomTomMapError` implements it, as `SDKServiceError` does
|
|
115
|
+
- 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`
|
|
116
|
+
- 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
|
|
117
|
+
- 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
|
|
118
|
+
|
|
119
|
+
- **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))
|
|
120
|
+
- 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
|
|
121
|
+
- map: `TrafficIncidentsModule` `filters: { delays: { mustHaveDelay, minDelayMinutes } }` is `filters: { delays: { required, minMinutes } }`, and the knob ids follow
|
|
122
|
+
- 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
|
|
123
|
+
- agent-toolkit: `setMapStyling`'s globe example sets `view.sky.visible`
|
|
124
|
+
|
|
125
|
+
- **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))
|
|
126
|
+
- `PlacesKnob` no longer includes `text`
|
|
127
|
+
- `TrafficFlowKnob`, `TrafficIncidentsKnob`, `TrafficIncidentDetailsKnob` and `TrafficAreaAnalyticsKnob` no longer include `image`
|
|
128
|
+
|
|
129
|
+
- **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))
|
|
130
|
+
- 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
|
|
131
|
+
- map: `RoutingModule` `width`, `sections.<type>.width` and `waypoints.size` are `widthPreset`, `sections.<type>.widthPreset` and `waypoints.sizePreset`
|
|
132
|
+
- map: `PlacesModule` `cluster.source` takes `radius`, `maxZoom`, `minPoints` and `properties` instead of MapLibre's `clusterRadius`, `clusterMaxZoom`, `clusterMinPoints` and `clusterProperties`, typed by `PlacesClusterSourceConfig`
|
|
133
|
+
- map: `PlacesModule` `label.offset` is `label.distance`, since an `offset` is an `[x, y]` displacement on every module
|
|
134
|
+
- map: `TrafficAreaAnalyticsModule` `height.maxHeightMeters` and `height.minHeightMeters` are `height.maxMeters` and `height.minMeters`, in `setHeight` too
|
|
135
|
+
- map: each renamed property's knob id follows it
|
|
136
|
+
- agent-toolkit: the tools keep their parameters, and the plugin needs SDK 1.0.0-rc.0
|
|
137
|
+
|
|
138
|
+
- **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))
|
|
139
|
+
- 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
|
|
140
|
+
- 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
|
|
141
|
+
- 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
|
|
142
|
+
- map: a `KnobTarget` implements `_setKnobValues(values)` instead of `_setKnobValue(id, value)`, and a subclass of `AbstractMapModule` inherits it. For a plugin's own target, `knobValueIn`, `configWithKnobs` and `configWithoutKnob` implement the hooks
|
|
143
|
+
- map-effects: `MapEffectsSettings` is `MapEffectsConfig`, and nests each knob along its id: `new MapEffects(map, { bloom: { intensity: 0.5 } })`. `updateConfig` replaces each effect it names, while `setKnob` and `setKnobs` keep the rest of an effect. The constructor, `applyConfig` and `updateConfig` no longer check values at run time, as on a map module. `setKnob` and `setKnobs` do. The plugin needs SDK 1.0.0-rc.2
|
|
144
|
+
- agent-toolkit: `setMapStyling` reads the styling knobs at their paths, and the plugin needs SDK 1.0.0-rc.2
|
|
145
|
+
- examples: the map effects playground restores its panel from `localStorage` with `setKnobs`
|
|
146
|
+
|
|
147
|
+
- 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))
|
|
148
|
+
- It turns `defaultProjectionData.mainMatrix` into a `Float64Array`, composed in double precision, which a three.js camera or a WebGL uniform takes
|
|
149
|
+
- `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
|
|
150
|
+
|
|
151
|
+
- **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))
|
|
152
|
+
|
|
153
|
+
- **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))
|
|
154
|
+
- `StyleInput` no longer takes `{ type: 'custom', url }` or `{ type: 'custom', json }`, and `CustomStyle` and `CustomStyleSource` are no longer exported
|
|
155
|
+
- `lightDarkTheme` is gone with them: `map.styleLightDarkTheme` follows from the standard style ID
|
|
156
|
+
- Restyle a standard style at runtime with `StylingFoundationsModule` and `setMapColors` instead
|
|
157
|
+
|
|
158
|
+
- **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))
|
|
159
|
+
|
|
160
|
+
- map: `transformRequest`, typed `MapRequestTransform`, gets the request the SDK built, with its URL, headers and credentials, and stays in place through `setLanguage` and `setGeopoliticalView`
|
|
161
|
+
- **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; }`
|
|
162
|
+
- examples: `map-request-transform` holds the map's tile requests behind a toggle and counts them
|
|
163
|
+
|
|
164
|
+
- **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))
|
|
165
|
+
|
|
166
|
+
- **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
|
|
167
|
+
- 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`
|
|
168
|
+
- examples: `multiple-maps-landmarks` logs a map whose style fails to load instead of leaving an unhandled rejection
|
|
169
|
+
|
|
170
|
+
- **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))
|
|
171
|
+
- services: `evChargingStationsAvailability`, `getPlacesWithEVAvailability`, `getPlaceWithEVAvailability` and `hasChargingAvailability` are removed
|
|
172
|
+
- services: long-distance EV routing is removed: `vehicle.preferences`, `chargingStopsStrategy` and `chargingStopsStrategies`
|
|
173
|
+
- 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
|
|
174
|
+
- core: the reachable-range budgets `remainingChargePCT`, `spentChargePCT` and `spentFuelLiters` are removed; a budget is `timeMinutes` or `distanceKM`
|
|
175
|
+
- core: route and leg summaries lose their battery, charge and fuel fields and `chargingInformationAtEndOfLeg`, with `ChargingStop`
|
|
176
|
+
- core: `ChargingPark.availability`, `ChargingPoint.status` and `dataSources.chargingAvailability` are removed; `StaticChargingPoint` becomes `ChargingPoint`, and `ChargingStation` takes no type parameter
|
|
177
|
+
- map: `PlacesModule` loses `evAvailability`, `categoryIcons` entries lose `availabilityLevel`, and `RoutingModule` loses `chargingStops`, with their knobs, events and shown data
|
|
178
|
+
|
|
179
|
+
The *Upgrading to 1.0 from a 0.x release* guide lists every removed name.
|
|
180
|
+
|
|
181
|
+
- **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))
|
|
182
|
+
|
|
183
|
+
- **Breaking:** core: `SectionType`, `sectionTypes`, `inputSectionTypes` and `inputSectionTypesWithGuidance` include `'curve'` and `'curvyStretch'`. A `Record<SectionType, …>` needs an entry for each
|
|
184
|
+
- **Breaking:** services: `InputSectionType` includes them too
|
|
185
|
+
- **Breaking:** map: `DrawnSectionType`, `GeneratedSectionType`, `drawnSectionTypes` and `generatedSectionTypes` include them, so a `Record<DrawnSectionType, …>` needs an entry for each. `SectionKnobName` includes `'kerb'`, so a `Record<SectionKnobName, …>` needs one for it
|
|
186
|
+
- core: each curve has its `headingChangeInDegrees`, positive to the right, its `radiusInMeters` where it turns tightest, its `lengthInMeters` and a `curvinessScore`, its arc weighted by how tight it is as roadcurvature.com scores roads, a `severity` from 0 to 1, how much a driver slows down for it from the speed limit on the road into it, weighing its radius, how far it turns and whether it's a turn at a junction, and on a route with guidance the `maneuver` of a junction instruction on it. An instruction that keeps to the road, such as "Turn left to stay on the SS38" at a hairpin, names none
|
|
187
|
+
- core: each curvy stretch groups three or more curves within 500 m of each other, ended by a curve with a maneuver, with its `curveCount`, `hairpinCount` (its hairpins, curves turning 140° or more on a radius of 40 m or less, which the new `isHairpin` tells), `lengthInMeters`, `minRadiusInMeters` and `curvinessScore`, its curves' scores added up
|
|
188
|
+
- core: `getCurveSections` and `getCurvyStretchSections` find them with thresholds of your own. A curve's `severity` reads the route's `speedLimit` sections, so ask for them along with the curves
|
|
189
|
+
- services: `calculateRoute` takes those thresholds as `curveDetection`, a `CurveDetectionOptions` with the turn, radius and straight that make a curve and the curve count and gap that make a curvy stretch
|
|
190
|
+
- core: the new `withCurveSections` finds a route's curves and curvy stretches again with other thresholds, keeping its other sections, so you can tune them on routes you already have, with no new request
|
|
191
|
+
- core: `compareRoutes` and `getSectionsWithin` weigh `curve` and `curvyStretch` when you pass no `types`, on routes that carry them
|
|
192
|
+
- services: the SDK finds `curve` and `curvyStretch` in the route's geometry, only when a `sectionTypes` list names them, so a `calculateRoute` without `sectionTypes` does no more work than before. `inputSectionTypes` and `inputSectionTypesWithGuidance` name them, so a list built from those finds them too. It never sends them to the routing API
|
|
193
|
+
- core: the new `defaultSectionTypes` names the sections a `calculateRoute` without `sectionTypes` returns, so `sectionTypes: [...defaultSectionTypes, 'curve', 'curvyStretch']` keeps them all and adds the curves
|
|
194
|
+
- map: the routing module draws `curve` and `curvyStretch` as bands when you switch them on with `sections.curve: { visible: true }`, at the width of every other section band. The curves draw rose, a colour no traffic delay takes, deeper the higher their `severity`, above the stretch they make up, which draws the same rose fainter
|
|
195
|
+
- map: from zoom 12, a curve of 60 m radius or less carries a kerb, short stripes of a tint of its colour, nearly white on a light map and nearly black on a dark one. The new `sections.curve.kerb.color` knob sets the stripes' colour, and `sections.curve.kerb.visible: false` draws one plain line. `layers.sections.curve` takes the kerb as `routeSectionCurveKerb`
|
|
196
|
+
- 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
|
|
197
|
+
- 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
|
|
198
|
+
|
|
199
|
+
- **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))
|
|
200
|
+
|
|
201
|
+
- **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
|
|
202
|
+
- **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
|
|
203
|
+
- core: each distinct section runs from where its route leaves the others to where it rejoins them, with its `lengthInMeters`, and `minLengthInMeters` leaves out the short ones
|
|
204
|
+
- core: `getSectionOverlap` gives the stretch two sections of one route share, whatever their types, as a `RouteSpan`
|
|
205
|
+
- core: `getSectionsWithin` lists a route's sections of every type within spans of it, such as the ferries, tolls and traffic on its distinct sections, with each section's share there to prorate a jam's delay
|
|
206
|
+
- core: `compareRoutes` tells what a route adds and avoids against a reference route, such as the selected alternative, or the route `costModel: { traffic: 'historical' }` gives, to say which jams and closures the live route avoids
|
|
207
|
+
- core: `getImportantRoads` groups a route's `importantRoadStretch` sections road by road, each with its `name`, its length and its stretches to ring with `setSectionFocus`; `within: sections.distinct` names what sets a route apart
|
|
208
|
+
- map: summary bubbles sit on their route's longest distinct section, read from `sections.distinct` when every route carries it, so a route crossing another at a junction keeps its whole stretch for the bubble
|
|
209
|
+
- 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
|
|
210
|
+
- 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
|
|
211
|
+
|
|
212
|
+
- **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))
|
|
213
|
+
|
|
214
|
+
- **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
|
|
215
|
+
- 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
|
|
216
|
+
- 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
|
|
217
|
+
- examples: `route-summary-bubbles-playground` selects only alternatives on click
|
|
218
|
+
|
|
219
|
+
- **Breaking:** map: the `maplibre-gl` peer dependency moves up to `^6.15.0` ([#2722](https://github.com/tomtom-internal/maps-sdk-js/pull/2722))
|
|
220
|
+
- **Breaking:** services: the `zod` peer dependency moves up to `^4.6.7`.
|
|
221
|
+
- services: `geometryData` reports a `geometries` list over 20 as one issue on that field, not as a union mismatch.
|
|
222
|
+
|
|
223
|
+
- **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))
|
|
224
|
+
|
|
225
|
+
- **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
|
|
226
|
+
- services: `detourOffsetInMeters` comes with results sorted by `'detourOffset'`
|
|
227
|
+
- examples: `nodejs-along-route-search` prints each charger's detour
|
|
228
|
+
|
|
229
|
+
- 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))
|
|
230
|
+
- services: **Breaking:** `reverseGeocode` resolves a `ReverseGeocodingResponse`, a `Place` or, where nothing matches, the queried point without `properties`; checking `properties` narrows it to a `Place`
|
|
231
|
+
- 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`
|
|
232
|
+
- services: a service call's `retry` overrides the global one field by field, and `retry: undefined` turns retrying off for that call
|
|
233
|
+
- services: **Breaking:** a service call no longer takes `displayUnits`, which no service reads
|
|
234
|
+
- services: **Breaking:** `calculateReachableRanges` rejects a `404`, a `5xx` or an error without a status, as it does a `401`, `403` or `429`, and skips only the other `4xx`, such as the `400` `MAP_MATCHING_FAILURE` of an origin off the road network
|
|
235
|
+
- services: **Breaking:** `SDKError.service` is a `ServiceName`, the union of the services' names, and reachable ranges report `'ReachableRange'`, not `'Reachable Range'`
|
|
236
|
+
- services: **Breaking:** the wire-format types `PoiCategoriesResponseAPI`, `PoiCategoryAPI`, `PlaceDetailsResponseAPI` and `PlaceDetailsResultAPI` are no longer exported
|
|
237
|
+
- services: **Breaking:** `minFuzzyLevel` and `maxFuzzyLevel` take a `FuzzyLevel`, the whole numbers `1` to `4`
|
|
238
|
+
- core: **Breaking:** a route traffic section's `tec` is optional, and absent when the service sends no TEC codes
|
|
239
|
+
|
|
240
|
+
- **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))
|
|
241
|
+
|
|
242
|
+
- The message is unchanged. A `catch` that filters on `instanceof SDKError` now receives a miss too, where it used to get a plain `Error`.
|
|
243
|
+
|
|
244
|
+
- **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))
|
|
245
|
+
|
|
246
|
+
- **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
|
|
247
|
+
- **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"`
|
|
248
|
+
- services: `calculateRoute` validates `useEntryPoints`, `extendedRouteRepresentations` and `guidance`
|
|
249
|
+
|
|
250
|
+
- **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))
|
|
251
|
+
|
|
252
|
+
- What the request builder threw is on `cause`, and the message is unchanged.
|
|
253
|
+
- If the parameters passed validation and the request still can't be built, the code is `INTERNAL`.
|
|
254
|
+
|
|
255
|
+
- **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))
|
|
256
|
+
|
|
257
|
+
- **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))
|
|
258
|
+
|
|
259
|
+
- With `arriveBy`, `calculateRoute` reads a `localDateTime` in the time zone of the route's final destination. `calculateReachableRange` takes it with `departAt`
|
|
260
|
+
- 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`
|
|
261
|
+
- **Breaking:** `DepartArriveParams` is a union of `{ date }` and `{ localDateTime }`, so code reading `when.date` off it gets `Date | undefined`. Narrow it first, for example with `Extract<DepartArriveParams, { date: Date }>`. Passing `{ option, date }` is unchanged
|
|
262
|
+
|
|
263
|
+
- **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))
|
|
264
|
+
- map: `standardLight`, `standardDark`, `drivingLight`, `drivingDark` and `satellite` are `streetLight`, `streetDark`, `streetLightDriving`, `streetDarkDriving` and `streetSatellite`; `monoLight` and `monoDark` stay
|
|
265
|
+
- agent-toolkit: `setMapStandardStyle` takes the new IDs, `resetState` reverts to `streetLight`, and the plugin needs SDK 1.0.0-rc.0
|
|
266
|
+
- map-theme, landmarks-3d: their docs name the new IDs
|
|
267
|
+
|
|
268
|
+
### Patch Changes
|
|
269
|
+
|
|
270
|
+
- core: `PUBLIC_HEALTH_TECHNOLOGY_COMPANY` is a POI category, for the id the POI categories service now lists, so `getPOICategories` no longer reports it as unknown ([#2876](https://github.com/tomtom-internal/maps-sdk-js/pull/2876))
|
|
271
|
+
|
|
272
|
+
- map: The attribution's logos and credits follow the style's theme: black with a white halo on a light style, and white with a black halo on a dark one, satellite included. ([#2887](https://github.com/tomtom-internal/maps-sdk-js/pull/2887))
|
|
273
|
+
|
|
274
|
+
- They switch with their backdrop on `setStyle`, so the attribution needs no restyling of yours
|
|
275
|
+
- examples: `attribution-playground` shows the logos turning white on a dark style
|
|
276
|
+
|
|
277
|
+
- services: an API error keeps the API's message when the body puts `error` in an object ([#2905](https://github.com/tomtom-internal/maps-sdk-js/pull/2905))
|
|
278
|
+
|
|
279
|
+
- 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))
|
|
280
|
+
|
|
281
|
+
- 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))
|
|
282
|
+
|
|
283
|
+
- A building reacts while a `BaseMapModule` handler reaches the `buildings3D` group, and stays as drawn while you leave both colours unset
|
|
284
|
+
- A building the map data splits into parts lights up and takes its colour whole, by the id of any of its parts
|
|
285
|
+
- `getBuildingIdAt` names the building standing at a position, to highlight buildings you know by place
|
|
286
|
+
- 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
|
|
287
|
+
- 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
|
|
288
|
+
- The four settings are knobs of `baseMapKnobCatalogue`, `buildings3D.{hover,click}.{color,intensity}`
|
|
289
|
+
- The new `base-map-buildings-interaction` example hovers, selects and paints buildings over Midtown Manhattan
|
|
290
|
+
|
|
291
|
+
- 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))
|
|
292
|
+
|
|
293
|
+
- 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
|
|
294
|
+
- examples: `map-styling-playground` adds a 3D buildings section with the knob
|
|
295
|
+
|
|
296
|
+
- 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))
|
|
297
|
+
|
|
298
|
+
- 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
|
|
299
|
+
- 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
|
|
300
|
+
- examples: `byod-geojson-cells-custom-module` colours Berlin by the median asking price per square metre in each hexagon or square
|
|
301
|
+
|
|
302
|
+
- 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))
|
|
303
|
+
|
|
304
|
+
- 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`
|
|
305
|
+
- core: `bboxCenter` centres a box that crosses the antimeridian, and `bboxFromGeoJSON` reads the 2D edges of a 3D `bbox`
|
|
306
|
+
- core: `getProgressAtNearestRoutePoint` returns `undefined` on a route under two coordinates, rather than throwing
|
|
307
|
+
- core: `getCoordinateAtRouteProgress` returns `undefined` past an end whose progress entry lacks the value, rather than `0`
|
|
308
|
+
- core: `findBestWaypointInsertionIndices` and `withInsertedWaypoints` prepend on a route under two coordinates
|
|
309
|
+
- core: `getRouteProgressForSection` and `getSectionBBox` take any `RouteSpan`, such as the one `getSectionOverlap` returns
|
|
310
|
+
- core: `TomTomConfig.instance.reset()` restores the retry defaults, even after a caller edited `get().retry`
|
|
311
|
+
|
|
312
|
+
- 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))
|
|
313
|
+
|
|
314
|
+
- core: `GeopoliticalViewAPI` names the APIs it answers for: `'mapTiles'`, `'search'`, `'placeDetails'`, `'reverseGeocoding'` and `'geocoding'`
|
|
315
|
+
- 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
|
|
316
|
+
- examples: `geopolitical-views-playground` labels each address with the view its reverse geocoding request carried
|
|
317
|
+
|
|
318
|
+
- 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))
|
|
319
|
+
|
|
320
|
+
- 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))
|
|
321
|
+
|
|
322
|
+
- 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))
|
|
323
|
+
|
|
324
|
+
- 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.
|
|
325
|
+
|
|
326
|
+
- license: the privacy clause of `LICENSE.txt` now links the TomTom Privacy Policy, https://www.tomtom.com/privacy/ ([#2592](https://github.com/tomtom-internal/maps-sdk-js/pull/2592))
|
|
327
|
+
|
|
328
|
+
- 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))
|
|
329
|
+
|
|
330
|
+
- examples: `byod-geojson-heatmap-custom-module` credits its listed-buildings dataset in the map's attribution
|
|
331
|
+
|
|
332
|
+
- 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))
|
|
333
|
+
- 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
|
|
334
|
+
|
|
335
|
+
- 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))
|
|
336
|
+
|
|
337
|
+
- map: with `park` left unset, the parks keep the style's own colour whatever `artificial` is set to
|
|
338
|
+
|
|
339
|
+
- 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))
|
|
340
|
+
- 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
|
|
341
|
+
|
|
342
|
+
- 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))
|
|
343
|
+
|
|
344
|
+
- 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`
|
|
345
|
+
- 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
|
|
346
|
+
- 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
|
|
347
|
+
|
|
348
|
+
- 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))
|
|
349
|
+
|
|
350
|
+
- 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
|
|
351
|
+
- 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
|
|
352
|
+
- map: `line.pattern` (`'solid'`, `'dashed'` or `'dotted'`) breaks up the borders of `GeometriesModule` and `ReachableRangesModule`, scaled with the border width
|
|
353
|
+
- map: the new settings are knobs of `geometriesKnobCatalogue` and `reachableRangesKnobCatalogue`
|
|
354
|
+
- map: `LinePattern` now types every line pattern; `SectionLinePattern` is deprecated in its favour
|
|
355
|
+
- 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
|
|
356
|
+
|
|
357
|
+
- 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))
|
|
358
|
+
|
|
359
|
+
- 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
|
|
360
|
+
|
|
361
|
+
- 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))
|
|
362
|
+
|
|
363
|
+
- 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
|
|
364
|
+
- examples: `traffic-incident-details` fades the other incidents when you click one
|
|
365
|
+
|
|
366
|
+
- 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))
|
|
367
|
+
|
|
368
|
+
- examples: `map-language` offers Simplified and Traditional Chinese
|
|
369
|
+
|
|
370
|
+
- 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))
|
|
371
|
+
|
|
372
|
+
- `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
|
|
373
|
+
- `stylingFoundationsKnobKinds` gains `number`, the kind of the direction, altitude and intensity
|
|
374
|
+
- `exportStyle()` carries the light the knobs set
|
|
375
|
+
- 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
|
|
376
|
+
- examples: `map-styling-playground` shows the light knobs in a View light section
|
|
377
|
+
|
|
378
|
+
- 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))
|
|
379
|
+
|
|
380
|
+
- 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
|
|
381
|
+
- 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
|
|
382
|
+
|
|
383
|
+
- 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))
|
|
384
|
+
|
|
385
|
+
- 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))
|
|
386
|
+
|
|
387
|
+
- 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))
|
|
388
|
+
|
|
389
|
+
- map: `RoutingModule` draws its routes when `sections.traffic.style` is `'halo'`, at creation, after a style switch and when switched at runtime
|
|
390
|
+
- 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
|
|
391
|
+
- map: `selectRoute` waits for the module before reading the shown routes, so a `showRoutes` it follows unawaited keeps its routes; a new `showRoutes` starts its summary bubbles with no click state
|
|
392
|
+
- map: route jam labels follow `displayUnits.time`, and a speed limit that changes at a border takes the country the route enters
|
|
393
|
+
- map: speed-limit signs anchor to their own instance's layers, and go to the top on a style without their usual anchor
|
|
394
|
+
- map: `PlacesModule` restores what it showed synchronously on a style switch, repaints its default pin when created with no config, and no longer fires `shown-features` for the restore
|
|
395
|
+
- map: a place category icon with no image resolves to the sprite's own id, a `poiCategory` icon mapping draws the `categoryIcons` entry for the category it returns, and `layers.*.layout` overrides win over the computed text and icon offsets
|
|
396
|
+
- map: `POIsModule` keeps its category icons after a `setStyle` to the style already loaded, and `FOOD_DRINKS_GROUP`, `HEALTH_GROUP` and `ENTERTAINMENT_GROUP` no longer pull in delicatessens, welfare organisations and clubs
|
|
397
|
+
- map: a centre title keeps its own hover and click state rather than its polygon's, and two identical reachable ranges no longer shade the inverted style
|
|
398
|
+
- map: raw layer edits stay on top of every module's knobs, a preset switch fires `config-change` once per module, and an unknown preset id such as `'toString'` throws the documented error
|
|
399
|
+
- map: event handlers survive a style switch that leaves their scope with no layers, hover detects a feature with id 0 and the same id in two sources, and a handler that unsubscribes mid-dispatch no longer skips the next one
|
|
400
|
+
- map: a slow image load no longer overwrites a newer image or re-adds a removed one, and `addOrUpdateImage` leaves a caller's `onload` alone
|
|
401
|
+
- map: a `setStyle` called before the first style load finishes on the style it asked for, or on the first style when its own fails to load
|
|
402
|
+
- map: `TrafficAreaAnalyticsModule` moves its hover outlines and highlights with their cells on a `beforeLayerConfig` change, and its heatmap stays valid when every tile has the same value
|
|
403
|
+
- map: an incident with an average speed of 0 km/h keeps it, and the jam delay label rounds to whole minutes first, with a marker sized for the rounded label
|
|
404
|
+
- map: `CustomGeoJSONModule` gives a feature with no id one no other feature holds, keeps a layer hidden that its spec sets to `visibility: 'none'`, re-adds an image whose options change, and no longer fires `shown-features` on a style switch
|
|
405
|
+
- map: a retry after the first style fails to load loads it, and a `setGeopoliticalView` or `setLanguage` called mid-switch applies once the map is ready without undoing a later call
|
|
406
|
+
- map: a display-units change keeps the hover and click states of route jams and speed-limit signs, `showWaypoints` draws with a config applied while it waited, a waypoint Feature with `properties: null` no longer throws, and speed-limit signs show mph in Jersey, Guernsey, the Isle of Man, the US territories, seven British Overseas Territories, eight Caribbean states and Samoa
|
|
407
|
+
- map: a dotted ferry or tunnel line draws its dots, and a named routing layer override placed under another routing layer, by its bare name or its full id, lands there rather than on top
|
|
408
|
+
- map: `PlacesModule` keeps entry point and connection event states across a style switch, a cluster rebuild and a config change, and a custom icon's label offset accounts for its `pixelRatio` and an SVG's drawn size, an SVG with only a width or a height taking the other from its viewBox
|
|
409
|
+
- map: `POIsModule` no longer turns on micro markers the style hides, `styling.layers` visibility edits no longer show a layer a module hides, a style sky that draws nothing no longer hides the theme sky while one with colours but no atmosphere counts as shown, and base-map group knobs apply in the order given
|
|
410
|
+
- map: an events scope you hold registers on the current sources after a style switch, clicking the empty map clears a click state set before one, an `on()` unsubscribe removes only its own registration, and a hovered place redrawn as selected doesn't fire `hover` twice
|
|
411
|
+
- map: a layer added in the same config change follows the layer it is pinned under when that layer moves
|
|
412
|
+
- map: geometries with their own ids keep them, and their event states, after a config change
|
|
413
|
+
- map: area analytics cells stop at `maxMeters`, their hover outlines and highlights follow the metric filter, and an empty `colorStops` falls back to the palette; `TrafficIncidentDetailsModule.show()` keeps the layers its `layers` config hides; an incident delay or report count of 0 is kept
|
|
414
|
+
- map: `calculateFittingBBox` clamps latitudes to the Web Mercator range and handles a box across the antimeridian, and `calculatePaddedBBox` covers a rotated map and cuts a panel touching one edge from its closest edge
|
|
415
|
+
- map: a module's `applyConfig` and `resetConfig` reach the event handlers already registered, so a new hover cursor or grace period applies, and a click on a cluster whose id matches a shown feature's hands the handler the cluster
|
|
416
|
+
- map: `TrafficFlowModule`, `TrafficIncidentsModule` and `TerrainModule` show and hide their layers alongside `styling.layers` edits, so an edit no longer shows traffic or a hillshade the module hides, and `BaseMapModule` no longer misrecords an `all-except` visibility for a layer group the style has no layers for
|
|
417
|
+
- map: a section's halo no longer vanishes under the route outline when the section sets a narrower `widthFactor` or `widthPreset`, and setting `countryCrossings.visible: true` while they are shown keeps a clicked crossing's state
|
|
418
|
+
- map: a `setStyle` call a newer one supersedes resolves even when its style fails to load, as documented
|
|
419
|
+
- map: area analytics extrusion highlights follow an extrusion height that ramps with zoom
|
|
420
|
+
- map: `POIsModuleSerializableConfig` is exported, and `stylingFoundationsKnobIds` is `readonly` like the other modules' knob id lists, so code that mutates it stops compiling
|
|
421
|
+
- map: `PlaceLayerName` leaves out `'additional'`, which names no layer, and `RouteLayersConfig.sections` names only the layers each type draws: `speedLimit` its sign layer, the other generated types their line and icon layers
|
|
422
|
+
- map: `PlacesModule.updateData` and a show after a config change drop the category, icon and extra properties the previous config added, and a custom module's layers that reference each other stack in dependency order at creation, on `applyConfig` and after a style switch
|
|
423
|
+
- map: `CustomGeoJSONLayerSpec` takes only the six layer types a GeoJSON source draws (circle, line, fill, fill-extrusion, symbol and heatmap)
|
|
424
|
+
- map: a route module with only some `displayUnits` of its own follows a global unit-system change for the rest
|
|
425
|
+
- map: a POIs event handler no longer receives base-map features, nor a base-map handler POI ones, and a `recently-hovered` state clears after its handler unsubscribes
|
|
426
|
+
- map: area analytics fall back to the defaults for each fill and line field left `undefined`, an inverted display cuts every region out of the mask, and `setHeight(undefined)` clears the extrusion height
|
|
427
|
+
- map: a jam with a delay of 0 shows no "1 min" marker, and a whole-hour jam delay gets the small sprite
|
|
428
|
+
- map: `setLayout` takes `visibility` as `'visible'` or `'none'` only, since a visibility expression was drawn as always visible, and `getStyleInput()` is typed as never `undefined`
|
|
429
|
+
- map: routes relabel on the next config change after a global display-units change, a style switch in between included, and a layer override's `reset()` after a style switch restores the new style's value, or after a `setStyle` to the style already loaded the value it replaced
|
|
430
|
+
- map: an `off()` followed by a style switch no longer leaves a hover, click or recently-hovered state stuck on a source
|
|
431
|
+
- map: a place config change gives back the place's own value of a property an `extraFeatureProps` entry replaced, and a clicked `micro` dot under `pin-clustered` keeps its state across a config change and a style switch
|
|
432
|
+
- 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
|
|
433
|
+
- map: area analytics hover and click highlights stay off the cells a layer filter hides
|
|
434
|
+
|
|
435
|
+
- 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))
|
|
436
|
+
|
|
437
|
+
- The `labels.typeface` knob of `StylingFoundationsModule` takes `sans`, `sans-italic`, `serif` or `serif-italic` (`mapTypefaces`), each label keeping its weight
|
|
438
|
+
- `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
|
|
439
|
+
- The labels of routes, places, geometries, reachable ranges and incident details follow the map's typeface unless their module sets its own
|
|
440
|
+
- Each module's label settings take the same `typeface` (a knob: `label.typeface`, `waypoints.label.typeface`, `lineLabel.typeface`) and `customTypeface`, for those labels alone
|
|
441
|
+
- The waypoint, geometry and reachable-range `font` knobs have no default, so `getKnob` returns `undefined` until you set one. Unset, those labels are in `Noto-Bold` set in their typeface
|
|
442
|
+
- `exportStyle()` returns labels set in font files in the style's own Noto faces, since only the SDK can draw those files
|
|
443
|
+
- New `map-typeface` example, with ten open-source font families and a typeface each for the map, the waypoints, the museums and a district
|
|
444
|
+
- `map-styling-playground` shows the typefaces in its Labels section, beside a route, museums and a district, and its sections now collapse
|
|
445
|
+
- `themed-map` sets its labels in Fraunces from the first frame
|
|
446
|
+
|
|
447
|
+
- 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))
|
|
448
|
+
- 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`
|
|
449
|
+
|
|
450
|
+
- 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))
|
|
451
|
+
|
|
452
|
+
- 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
|
|
453
|
+
|
|
454
|
+
- 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))
|
|
455
|
+
|
|
456
|
+
- `RoutingModule` `opacity` fades the route lines and their outlines, selected and deselected; sections keep `sections.<type>.opacity`
|
|
457
|
+
- `TrafficFlowModule` and `TrafficIncidentsModule` `opacityFactor` multiply the style's own line opacity, its zoom ramp kept; the incident icons stay opaque
|
|
458
|
+
- `TrafficIncidentDetailsModule` `line.opacity` fades the incident lines; the markers and the highlight outline stay opaque
|
|
459
|
+
- `PlacesModule` `icon.opacity` fades the icons of every marker type, the cluster pin included; a selected place stays opaque
|
|
460
|
+
- Each is a knob in its module's catalogue
|
|
461
|
+
- `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`
|
|
462
|
+
|
|
463
|
+
- 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
|
+
|
|
465
|
+
- 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))
|
|
466
|
+
|
|
467
|
+
- 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))
|
|
468
|
+
|
|
469
|
+
- The README links the repository's security policy page, which sends a vulnerability report to TomTom's HackerOne program ([#2800](https://github.com/tomtom-internal/maps-sdk-js/pull/2800))
|
|
470
|
+
|
|
471
|
+
- 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))
|
|
472
|
+
|
|
473
|
+
- 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
|
|
474
|
+
- `highlight.section.outline.color` and `highlight.section.outline.widthFactor` restyle it, as config or as routing knobs
|
|
475
|
+
- `getShown().sectionFocus` holds the focused sections, and `showRoutes` clears them
|
|
476
|
+
- examples: `route-leg-options-playground` rings the leg you point at or focus in its panel
|
|
477
|
+
- examples: `route-styling-playground` rings the route's toll roads, with a colour and a width control for the ring
|
|
478
|
+
|
|
479
|
+
- 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))
|
|
480
|
+
|
|
481
|
+
- `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
|
|
482
|
+
- `summaryBubbles.minZoom`, `maxZoom`, `color` and `label` (`color`, `size`, `opacity`, `typeface`, `customTypeface`) are knobs in `routingKnobCatalogue`, all but `customTypeface`
|
|
483
|
+
- `summaryBubbles.label.title` takes a function of the route's summary, or a MapLibre expression, and writes its text in place of the fields
|
|
484
|
+
- 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
|
|
485
|
+
- New `route-summary-bubbles-playground` example, its panel built from the catalogue
|
|
486
|
+
|
|
487
|
+
- 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))
|
|
488
|
+
|
|
489
|
+
- 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
|
|
490
|
+
- `summaryBubbles.routes` shows the bubbles on `all` routes, the `selected` one alone or its `alternatives`
|
|
491
|
+
- The `durationDifference` field writes each other route's time against the selected one, such as `+6 min`, and `selectRoute` re-times the bubbles
|
|
492
|
+
- The `route-summary-bubbles-playground` example opens with bubbles timed against the selected route
|
|
493
|
+
|
|
494
|
+
- 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))
|
|
495
|
+
- 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.
|
|
496
|
+
- `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.
|
|
497
|
+
|
|
498
|
+
- `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))
|
|
499
|
+
|
|
500
|
+
- 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))
|
|
501
|
+
|
|
502
|
+
- map: the `maplibre-gl` peer dependency moves up to `^6.12.0` ([#2500](https://github.com/tomtom-internal/maps-sdk-js/pull/2500))
|
|
503
|
+
|
|
504
|
+
- map: the `maplibre-gl` peer dependency moves up to `^6.13.0` ([#2627](https://github.com/tomtom-internal/maps-sdk-js/pull/2627))
|
|
505
|
+
|
|
506
|
+
- 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))
|
|
507
|
+
- 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
|
|
508
|
+
|
|
509
|
+
- 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))
|
|
510
|
+
|
|
511
|
+
- 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))
|
|
512
|
+
|
|
513
|
+
- 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))
|
|
514
|
+
|
|
515
|
+
- 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))
|
|
516
|
+
|
|
517
|
+
- 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))
|
|
518
|
+
|
|
519
|
+
- 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))
|
|
520
|
+
|
|
521
|
+
- 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`
|
|
522
|
+
- 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`
|
|
523
|
+
- services: validation checks GeoJSON input against its type: a route waypoint's position, every position of a path, an along-route search route or a polygon ring, and a `geometrySearch` Circle centre must be on the globe, a bounding box can't be an empty array or collection, a path given as a Feature must hold a LineString, a stop's `pauseDurationSeconds` can't be negative and its `legCostModel` takes only known route types and avoid values, a geometry's coordinates must match its `type`, and a GeoJSON `bbox` must hold 4 or 6 numbers; `extendedPostalCodesFor`, `mapcodes`, `openingHours`, `timeZone`, `relatedPois` and `filters.indexes` reject values outside their types
|
|
524
|
+
- services: a validation error from a union schema lists what each branch rejected
|
|
525
|
+
- services: `onAPIResponse` receives the API's response body, as its type says, rather than the fetch envelope, and fires once per call
|
|
526
|
+
- services: proxy-credentials mode is decided per call, so a call with its own `apiKey` no longer sends `credentials: 'include'` under a global proxy setup
|
|
527
|
+
- services: an error response labelled JSON whose body doesn't parse still rejects with its status
|
|
528
|
+
- services: `calculateRoute` keeps the leg point indices right after a one-coordinate first leg, gives a road-shield section with no references `[]`, no longer lets an origin's `candidateEntryPoints` override `useEntryPoints`, maps TEC cause codes 16, 22 and 23 to `'other'` as the TPEG2-TEC table defines them, and gives each instruction with no road info an object of its own
|
|
529
|
+
- services: `trafficAreaAnalytics` no longer throws a `RangeError` over a region with hundreds of thousands of tiles, and `calculateReachableRanges` stops listening to the batch's abort signal once each call settles
|
|
530
|
+
- services: `getSearchSuggestions` shows a brand asked for alongside address-type kinds
|
|
531
|
+
- services: `getSearchSuggestions` no longer offers a category refinement whose `refine()` fails for a category id the SDK doesn't know, and leaves out autocomplete segments of a type the SDK doesn't know
|
|
532
|
+
- services: `getPOICategories` and `resolvePOICategories` validate their parameters and reject with `SDKAbortError` on an aborted signal even when the cache or the known codes answer the call
|
|
533
|
+
- services: `SDKServiceError.status` is `readonly`, like the other error fields
|
|
534
|
+
- services: `geocode` keeps in `geographyType` only the types core's `geographyTypes` lists, and rejects `extendedPostalCodesFor: ['POI']` as `INVALID_REQUEST`
|
|
535
|
+
- services: a blank `poiCategoryQuery` rejects rather than searching with no category filter
|
|
536
|
+
- services: `calculateReachableRanges` no longer needs `AbortSignal.any`, which React Native lacks, and the search cursor no longer needs `atob` and `btoa`
|
|
537
|
+
- services: a search or geocode result at distance 0 keeps its `distance`, Kosovo's `XK` maps to `XKX`, and `getPOICategories` hands out a copy of its cache
|
|
538
|
+
- services: `VehicleModel` and `VehicleDimensions` are exported
|
|
539
|
+
- core: `TomTomConfig.instance.put` drops `undefined` retry fields rather than storing them over the defaults
|
|
540
|
+
|
|
541
|
+
- 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))
|
|
542
|
+
|
|
543
|
+
- services: `discoverPlaces('coffee')` runs a fuzzy search and is typed as one
|
|
544
|
+
|
|
545
|
+
- 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))
|
|
546
|
+
|
|
547
|
+
- core: importing one helper, such as `generateId`, bundles under 1 KB minified instead of about 30 KB with lodash
|
|
548
|
+
- services: `geocode` bundles about 14 KB minified instead of 68 KB, and `calculateRoute` 32 KB instead of 86 KB, with lodash
|
|
549
|
+
- map: `TomTomMap` bundles about 44 KB minified on top of MapLibre instead of 123 KB, with lodash
|
|
550
|
+
- core, services, map: the package declares `sideEffects: false`, so bundlers drop the modules an app doesn't import
|
|
551
|
+
|
|
552
|
+
- 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))
|
|
553
|
+
|
|
554
|
+
- 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))
|
|
555
|
+
|
|
556
|
+
- 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
|
|
557
|
+
|
|
558
|
+
- 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))
|
|
559
|
+
|
|
560
|
+
- core: `bboxFromGeoJSON` gives the narrowest box around shapes on both sides of the antimeridian, and `undefined` for a geometry missing its coordinates
|
|
561
|
+
- core: route positions, owned polygons and hexagon cells wrap past ±180° instead of jumping across the map
|
|
562
|
+
- core: departure, arrival, waypoint, border and tollgate instructions carry no lanes
|
|
563
|
+
- core: `findBestWaypointInsertionIndex` and `withInsertedWaypoints` slot a new stop on a round trip between the right passes of its origin and destination
|
|
564
|
+
- core: `calculateProgressAtRoutePoint`, `getRouteProgressBetween` and `getRouteProgressForSection` return `undefined` for a path index that is no whole number, where they returned `NaN` values
|
|
565
|
+
- core: `formatDuration` rounds a half minute up, and `formatDistance` and `formatDuration` keep the global units for an option left `undefined`
|
|
566
|
+
- core: bundlers drop `TomTomConfig` from an app that never reads it
|
|
567
|
+
- core: a junction's instruction keeps its lanes where a waypoint instruction shares its path point
|
|
568
|
+
|
|
569
|
+
- 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))
|
|
570
|
+
|
|
571
|
+
- map: a sourceless map error is `STYLE_LOAD_FAILED` only while a style loads, and `INTERNAL` otherwise
|
|
572
|
+
- map: colour knobs refuse colour forms MapLibre can't paint, instead of drawing nothing
|
|
573
|
+
- map: `CustomGeoJSONModule.applyConfig` replaces a layer whose type changes instead of throwing
|
|
574
|
+
- map: a failed or superseded style switch finishes cleanly, and a switch to the same style resets knobs and raw edits
|
|
575
|
+
- map: route summary bubbles stay above their route on a rotated map, hidden sections stay hidden, and section icons follow their size knob
|
|
576
|
+
- map: places keep another module's config properties, draw a mapped category icon, and rebuild once per knob batch
|
|
577
|
+
- map: traffic incident icons keep their visibility across config changes, opacities clamp to 0–1, and area analytics grids take regions across the antimeridian
|
|
578
|
+
- map: `setLanguage` relabels only the map style's own labels, so module and app layers keep the text they were given
|
|
579
|
+
- map: `calculateFittingBBox` expands latitudes in Web Mercator, as `fitBounds` frames them, so its south and north move
|
|
580
|
+
- 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
|
|
581
|
+
- 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`
|
|
582
|
+
- map: shown-features handlers keep firing after one of them unsubscribes
|
|
583
|
+
- 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
|
|
584
|
+
- 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
|
|
585
|
+
- map: routes, places, area analytics and traffic filters reload only the sources a change reaches
|
|
586
|
+
- map: a clean switch to the style already loaded removes the traffic flow and incident filters, as it does the POI ones
|
|
587
|
+
- map: the map look reads a page background the browser reports in `oklch()` as painted
|
|
588
|
+
- map: POI and place category icon offsets apply where the style's own icon offset is a zoom ramp
|
|
589
|
+
|
|
590
|
+
- 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))
|
|
591
|
+
|
|
592
|
+
- services: search results map their fields, opening hours and polygon boxes as the service sends them, and keep area-scoped brands
|
|
593
|
+
- services: an XML error over HTTP/2 names its status, and an unread error body is freed
|
|
594
|
+
- services: a zero `Retry-After` still backs off before the next try
|
|
595
|
+
- services: suggestions pick their concept independently of `limit`
|
|
596
|
+
- services: traffic area analytics checks its date rules before the request, rejecting a call that breaks them as `INVALID_REQUEST`
|
|
597
|
+
- services: an along-route search whose filters hold only keys it doesn't declare fails validation, as one with no filter does
|
|
598
|
+
- 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
|
|
599
|
+
- services: `geometryData` sends a footprint that several places share once, and gives it the first place's properties, where the last place's won
|
|
600
|
+
- services: an `INVALID_REQUEST` message lists its issues without the `Issues:` JSON, which stays in the error's `issues`
|
|
601
|
+
- 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`
|
|
602
|
+
- services: `trafficIncidentDetails` sends a polygon cut at 180° as one box across the antimeridian, not one around the world
|
|
603
|
+
- services: a cached `getPOICategories` call rejects an insecure base URL, as an uncached one does
|
|
604
|
+
|
|
605
|
+
- 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))
|
|
606
|
+
- map: `hillshade.light.altitude`, in degrees above the horizon, and `hillshade.light.alignment`, `viewport` or `map` (`hillshadeLightAlignments`), in the config and as `terrainKnobCatalogue` knobs
|
|
607
|
+
- map: with `method: 'multidirectional'`, `hillshade.light.direction` is the centre of four lights spread over 135°
|
|
608
|
+
|
|
609
|
+
- 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))
|
|
610
|
+
|
|
611
|
+
- 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))
|
|
612
|
+
|
|
613
|
+
- `timeValidity: ['present', 'future']` brings scheduled roadworks and closures in next to the incidents under way, also as the `timeValidity` knob
|
|
614
|
+
- `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
|
|
615
|
+
- core: `trafficIncidentTimeValidities` lists every `TrafficIncidentTimeValidity`, `present` first
|
|
616
|
+
|
|
617
|
+
- tests: each package's unit test run now fails when its coverage drops below the goals in `TESTING.md` ([#2592](https://github.com/tomtom-internal/maps-sdk-js/pull/2592))
|
|
618
|
+
|
|
619
|
+
## 1.0.0-rc.7
|
|
620
|
+
|
|
621
|
+
### Patch Changes
|
|
622
|
+
|
|
623
|
+
- 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))
|
|
624
|
+
|
|
3
625
|
## 1.0.0-rc.6
|
|
4
626
|
|
|
5
627
|
### Minor Changes
|
|
6
628
|
|
|
7
|
-
-
|
|
629
|
+
- **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))
|
|
8
630
|
|
|
9
631
|
- `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
|
|
10
632
|
- The logos are black with a white outline on every style, light and dark
|
|
@@ -13,7 +635,7 @@
|
|
|
13
635
|
- **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`
|
|
14
636
|
- examples: `attribution-playground` places the logos in each corner, over every standard style, with or without their backdrop
|
|
15
637
|
|
|
16
|
-
-
|
|
638
|
+
- **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))
|
|
17
639
|
- core: `APIErrorDetails` declares `apiErrorCode` and `privatePreviewAccess` once, for one function to read a service call's error and the map's alike
|
|
18
640
|
- map: `TomTomMapError` implements it, as `SDKServiceError` does
|
|
19
641
|
- 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`
|
|
@@ -22,7 +644,7 @@
|
|
|
22
644
|
|
|
23
645
|
### Patch Changes
|
|
24
646
|
|
|
25
|
-
-
|
|
647
|
+
- 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))
|
|
26
648
|
|
|
27
649
|
- A building reacts while a `BaseMapModule` handler reaches the `buildings3D` group, and stays as drawn while you leave both colours unset
|
|
28
650
|
- A building the map data splits into parts lights up and takes its colour whole, by the id of any of its parts
|
|
@@ -32,13 +654,13 @@
|
|
|
32
654
|
- The four settings are knobs of `baseMapKnobCatalogue`, `buildings3D.{hover,click}.{color,intensity}`
|
|
33
655
|
- The new `base-map-buildings-interaction` example hovers, selects and paints buildings over Midtown Manhattan
|
|
34
656
|
|
|
35
|
-
-
|
|
657
|
+
- 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))
|
|
36
658
|
|
|
37
659
|
- 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
|
|
38
660
|
|
|
39
|
-
-
|
|
661
|
+
- 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))
|
|
40
662
|
|
|
41
|
-
-
|
|
663
|
+
- 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))
|
|
42
664
|
|
|
43
665
|
- core: `bboxFromGeoJSON` gives the narrowest box around shapes on both sides of the antimeridian, and `undefined` for a geometry missing its coordinates
|
|
44
666
|
- core: route positions, owned polygons and hexagon cells wrap past ±180° instead of jumping across the map
|
|
@@ -49,7 +671,7 @@
|
|
|
49
671
|
- core: bundlers drop `TomTomConfig` from an app that never reads it
|
|
50
672
|
- core: a junction's instruction keeps its lanes where a waypoint instruction shares its path point
|
|
51
673
|
|
|
52
|
-
-
|
|
674
|
+
- 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))
|
|
53
675
|
|
|
54
676
|
- map: a sourceless map error is `STYLE_LOAD_FAILED` only while a style loads, and `INTERNAL` otherwise
|
|
55
677
|
- map: colour knobs refuse colour forms MapLibre can't paint, instead of drawing nothing
|
|
@@ -70,7 +692,7 @@
|
|
|
70
692
|
- map: the map look reads a page background the browser reports in `oklch()` as painted
|
|
71
693
|
- map: POI and place category icon offsets apply where the style's own icon offset is a zoom ramp
|
|
72
694
|
|
|
73
|
-
-
|
|
695
|
+
- 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))
|
|
74
696
|
|
|
75
697
|
- services: search results map their fields, opening hours and polygon boxes as the service sends them, and keep area-scoped brands
|
|
76
698
|
- services: an XML error over HTTP/2 names its status, and an unread error body is freed
|
|
@@ -89,7 +711,7 @@
|
|
|
89
711
|
|
|
90
712
|
### Minor Changes
|
|
91
713
|
|
|
92
|
-
-
|
|
714
|
+
- **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))
|
|
93
715
|
|
|
94
716
|
- **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
|
|
95
717
|
- 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"`
|
|
@@ -97,18 +719,18 @@
|
|
|
97
719
|
|
|
98
720
|
### Patch Changes
|
|
99
721
|
|
|
100
|
-
-
|
|
722
|
+
- 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))
|
|
101
723
|
|
|
102
724
|
- 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
|
|
103
725
|
- 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
|
|
104
726
|
|
|
105
|
-
-
|
|
727
|
+
- 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))
|
|
106
728
|
|
|
107
|
-
-
|
|
729
|
+
- 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))
|
|
108
730
|
- 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.
|
|
109
731
|
- `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.
|
|
110
732
|
|
|
111
|
-
-
|
|
733
|
+
- 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))
|
|
112
734
|
|
|
113
735
|
- services: `discoverPlaces('coffee')` runs a fuzzy search and is typed as one
|
|
114
736
|
|
|
@@ -116,7 +738,7 @@
|
|
|
116
738
|
|
|
117
739
|
### Major Changes
|
|
118
740
|
|
|
119
|
-
-
|
|
741
|
+
- **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))
|
|
120
742
|
|
|
121
743
|
- 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'`
|
|
122
744
|
- 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
|
|
@@ -124,7 +746,7 @@
|
|
|
124
746
|
|
|
125
747
|
### Minor Changes
|
|
126
748
|
|
|
127
|
-
-
|
|
749
|
+
- **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))
|
|
128
750
|
|
|
129
751
|
- **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]`
|
|
130
752
|
- **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]`
|
|
@@ -134,7 +756,7 @@
|
|
|
134
756
|
- services: `geometrySearch` ranks a polygon across the antimeridian by its own width when it keeps the largest 50
|
|
135
757
|
- 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
|
|
136
758
|
|
|
137
|
-
-
|
|
759
|
+
- **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))
|
|
138
760
|
|
|
139
761
|
- **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
|
|
140
762
|
- map: the map labels in each of them, and the traffic incident descriptions in Catalan, Estonian, Hebrew, Japanese, Latvian and Romanian
|
|
@@ -143,13 +765,13 @@
|
|
|
143
765
|
- 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
|
|
144
766
|
- examples: `map-language` offers Hebrew, Hindi, Japanese, Serbian and Ukrainian
|
|
145
767
|
|
|
146
|
-
-
|
|
768
|
+
- **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))
|
|
147
769
|
|
|
148
770
|
- **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
|
|
149
771
|
- **Breaking:** services: `calculateRoute` with `useEntryPoints: 'main-when-available'` sends such a stop at that entry point
|
|
150
772
|
- **Breaking:** map: `RoutingModule` with `waypoints.entryPoints: 'main-when-available'` draws such a waypoint at that entry point
|
|
151
773
|
|
|
152
|
-
-
|
|
774
|
+
- **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))
|
|
153
775
|
|
|
154
776
|
- map: `LayerQuery` takes `ids`, the exact style layer ids to select
|
|
155
777
|
- 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
|
|
@@ -158,38 +780,38 @@
|
|
|
158
780
|
- **Breaking:** map: `POIsModuleConfig`'s `filters.categories` is optional, so `filters` can hold `ids` alone. Code reading `config.filters.categories` must handle `undefined`
|
|
159
781
|
- 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
|
|
160
782
|
|
|
161
|
-
-
|
|
783
|
+
- 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))
|
|
162
784
|
- `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
|
|
163
785
|
- An id the map already has throws, until that layer's `remove()`
|
|
164
786
|
- 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
|
|
165
787
|
- 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
|
|
166
788
|
|
|
167
|
-
-
|
|
789
|
+
- **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))
|
|
168
790
|
|
|
169
791
|
- 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`
|
|
170
792
|
- 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
|
|
171
793
|
- **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
|
|
172
794
|
- 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
|
|
173
795
|
|
|
174
|
-
-
|
|
796
|
+
- 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))
|
|
175
797
|
- It turns `defaultProjectionData.mainMatrix` into a `Float64Array`, composed in double precision, which a three.js camera or a WebGL uniform takes
|
|
176
798
|
- `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
|
|
177
799
|
|
|
178
|
-
-
|
|
800
|
+
- **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))
|
|
179
801
|
|
|
180
|
-
-
|
|
802
|
+
- **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))
|
|
181
803
|
|
|
182
804
|
- map: `transformRequest`, typed `MapRequestTransform`, gets the request the SDK built, with its URL, headers and credentials, and stays in place through `setLanguage` and `setGeopoliticalView`
|
|
183
805
|
- **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; }`
|
|
184
806
|
- examples: `map-request-transform` holds the map's tile requests behind a toggle and counts them
|
|
185
807
|
|
|
186
|
-
-
|
|
808
|
+
- **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))
|
|
187
809
|
|
|
188
810
|
- **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
|
|
189
811
|
- 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`
|
|
190
812
|
- examples: `multiple-maps-landmarks` logs a map whose style fails to load instead of leaving an unhandled rejection
|
|
191
813
|
|
|
192
|
-
-
|
|
814
|
+
- **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))
|
|
193
815
|
|
|
194
816
|
- **Breaking:** core: `SectionType`, `sectionTypes`, `inputSectionTypes` and `inputSectionTypesWithGuidance` include `'curve'` and `'curvyStretch'`. A `Record<SectionType, …>` needs an entry for each
|
|
195
817
|
- **Breaking:** services: `InputSectionType` includes them too
|
|
@@ -207,34 +829,34 @@
|
|
|
207
829
|
- 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
|
|
208
830
|
- 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
|
|
209
831
|
|
|
210
|
-
-
|
|
832
|
+
- **Breaking:** map: the `maplibre-gl` peer dependency moves up to `^6.15.0` ([#2722](https://github.com/tomtom-internal/maps-sdk-js/pull/2722))
|
|
211
833
|
- **Breaking:** services: the `zod` peer dependency moves up to `^4.6.7`.
|
|
212
834
|
- services: `geometryData` reports a `geometries` list over 20 as one issue on that field, not as a union mismatch.
|
|
213
835
|
|
|
214
|
-
-
|
|
836
|
+
- **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))
|
|
215
837
|
|
|
216
838
|
- **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
|
|
217
839
|
- services: `detourOffsetInMeters` comes with results sorted by `'detourOffset'`
|
|
218
840
|
- examples: `nodejs-along-route-search` prints each charger's detour
|
|
219
841
|
|
|
220
|
-
-
|
|
842
|
+
- **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))
|
|
221
843
|
|
|
222
844
|
- The message is unchanged. A `catch` that filters on `instanceof SDKError` now receives a miss too, where it used to get a plain `Error`.
|
|
223
845
|
|
|
224
|
-
-
|
|
846
|
+
- **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))
|
|
225
847
|
|
|
226
848
|
- **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
|
|
227
849
|
- **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"`
|
|
228
850
|
- services: `calculateRoute` validates `useEntryPoints`, `extendedRouteRepresentations` and `guidance`
|
|
229
851
|
|
|
230
|
-
-
|
|
852
|
+
- **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))
|
|
231
853
|
|
|
232
854
|
- What the request builder threw is on `cause`, and the message is unchanged.
|
|
233
855
|
- If the parameters passed validation and the request still can't be built, the code is `INTERNAL`.
|
|
234
856
|
|
|
235
|
-
-
|
|
857
|
+
- **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))
|
|
236
858
|
|
|
237
|
-
-
|
|
859
|
+
- **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))
|
|
238
860
|
|
|
239
861
|
- With `arriveBy`, `calculateRoute` reads a `localDateTime` in the time zone of the route's final destination. `calculateReachableRange` takes it with `departAt`
|
|
240
862
|
- 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`
|
|
@@ -242,59 +864,59 @@
|
|
|
242
864
|
|
|
243
865
|
### Patch Changes
|
|
244
866
|
|
|
245
|
-
-
|
|
867
|
+
- 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))
|
|
246
868
|
|
|
247
869
|
- 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
|
|
248
870
|
- examples: `map-styling-playground` adds a 3D buildings section with the knob
|
|
249
871
|
|
|
250
|
-
-
|
|
872
|
+
- 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))
|
|
251
873
|
|
|
252
874
|
- 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
|
|
253
875
|
- 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
|
|
254
876
|
- examples: `byod-geojson-cells-custom-module` colours Berlin by the median asking price per square metre in each hexagon or square
|
|
255
877
|
|
|
256
|
-
-
|
|
878
|
+
- 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))
|
|
257
879
|
|
|
258
880
|
- core: `GeopoliticalViewAPI` names the APIs it answers for: `'mapTiles'`, `'search'`, `'placeDetails'`, `'reverseGeocoding'` and `'geocoding'`
|
|
259
881
|
- 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
|
|
260
882
|
- examples: `geopolitical-views-playground` labels each address with the view its reverse geocoding request carried
|
|
261
883
|
|
|
262
|
-
-
|
|
884
|
+
- 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))
|
|
263
885
|
|
|
264
|
-
-
|
|
886
|
+
- 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))
|
|
265
887
|
|
|
266
888
|
- examples: `byod-geojson-heatmap-custom-module` credits its listed-buildings dataset in the map's attribution
|
|
267
889
|
|
|
268
|
-
-
|
|
890
|
+
- 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))
|
|
269
891
|
|
|
270
892
|
- map: with `park` left unset, the parks keep the style's own colour whatever `artificial` is set to
|
|
271
893
|
|
|
272
|
-
-
|
|
894
|
+
- 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))
|
|
273
895
|
|
|
274
896
|
- 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
|
|
275
897
|
- examples: `traffic-incident-details` fades the other incidents when you click one
|
|
276
898
|
|
|
277
|
-
-
|
|
899
|
+
- 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))
|
|
278
900
|
|
|
279
901
|
- examples: `map-language` offers Simplified and Traditional Chinese
|
|
280
902
|
|
|
281
|
-
-
|
|
903
|
+
- 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))
|
|
282
904
|
|
|
283
|
-
-
|
|
905
|
+
- 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))
|
|
284
906
|
|
|
285
|
-
-
|
|
907
|
+
- 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))
|
|
286
908
|
|
|
287
|
-
-
|
|
909
|
+
- 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))
|
|
288
910
|
|
|
289
|
-
-
|
|
911
|
+
- 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))
|
|
290
912
|
|
|
291
|
-
-
|
|
913
|
+
- 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))
|
|
292
914
|
|
|
293
915
|
## 1.0.0-rc.3
|
|
294
916
|
|
|
295
917
|
### Minor Changes
|
|
296
918
|
|
|
297
|
-
-
|
|
919
|
+
- **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))
|
|
298
920
|
|
|
299
921
|
- **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
|
|
300
922
|
- **Breaking:** core: a `Record<POICategory, …>` needs an entry for each of the ten codes
|
|
@@ -302,25 +924,25 @@
|
|
|
302
924
|
- 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`
|
|
303
925
|
- map: a place with one of the new codes takes its parent's base-map icon, pin and `categoryIcons` entry
|
|
304
926
|
|
|
305
|
-
-
|
|
927
|
+
- **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))
|
|
306
928
|
|
|
307
929
|
- 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.
|
|
308
930
|
- 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.
|
|
309
931
|
- Migration: drop `alignment` from `countryCrossings`. A bubble stays level with the screen.
|
|
310
932
|
- 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.
|
|
311
933
|
|
|
312
|
-
-
|
|
934
|
+
- 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))
|
|
313
935
|
|
|
314
936
|
- **Breaking:** a `lanes` section's `properties` read `IS_MANEUVER`, as documented, where they passed the API's `isManeuver` through. Match `'IS_MANEUVER'` instead.
|
|
315
937
|
|
|
316
|
-
-
|
|
938
|
+
- **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))
|
|
317
939
|
|
|
318
940
|
- **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
|
|
319
941
|
- **Breaking:** map: `roadSubcategory` is optional on `TrafficIncidentsModuleFeature`, and absent off `street` and `service` roads, as on `TrafficFlowModuleFeature`
|
|
320
942
|
- **Breaking:** map: a `TrafficFlowModuleFeature`'s geometry is a `LineString` or a `MultiLineString`, so check `geometry.type` before you read its coordinates
|
|
321
943
|
- **Breaking:** map: a waypoint keeps the id you give it, a number included, so `WaypointDisplayProps.id` is `string | number`
|
|
322
944
|
|
|
323
|
-
-
|
|
945
|
+
- **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))
|
|
324
946
|
|
|
325
947
|
- **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
|
|
326
948
|
- **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
|
|
@@ -333,14 +955,14 @@
|
|
|
333
955
|
- 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
|
|
334
956
|
- 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
|
|
335
957
|
|
|
336
|
-
-
|
|
958
|
+
- **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))
|
|
337
959
|
|
|
338
960
|
- **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
|
|
339
961
|
- 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
|
|
340
962
|
- 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
|
|
341
963
|
- examples: `route-summary-bubbles-playground` selects only alternatives on click
|
|
342
964
|
|
|
343
|
-
-
|
|
965
|
+
- 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))
|
|
344
966
|
- services: **Breaking:** `reverseGeocode` resolves a `ReverseGeocodingResponse`, a `Place` or, where nothing matches, the queried point without `properties`; checking `properties` narrows it to a `Place`
|
|
345
967
|
- 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`
|
|
346
968
|
- services: a service call's `retry` overrides the global one field by field, and `retry: undefined` turns retrying off for that call
|
|
@@ -353,7 +975,7 @@
|
|
|
353
975
|
|
|
354
976
|
### Patch Changes
|
|
355
977
|
|
|
356
|
-
-
|
|
978
|
+
- 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))
|
|
357
979
|
|
|
358
980
|
- 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`
|
|
359
981
|
- core: `bboxCenter` centres a box that crosses the antimeridian, and `bboxFromGeoJSON` reads the 2D edges of a 3D `bbox`
|
|
@@ -363,17 +985,17 @@
|
|
|
363
985
|
- core: `getRouteProgressForSection` and `getSectionBBox` take any `RouteSpan`, such as the one `getSectionOverlap` returns
|
|
364
986
|
- core: `TomTomConfig.instance.reset()` restores the retry defaults, even after a caller edited `get().retry`
|
|
365
987
|
|
|
366
|
-
-
|
|
988
|
+
- 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))
|
|
367
989
|
|
|
368
990
|
- 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.
|
|
369
991
|
|
|
370
|
-
-
|
|
992
|
+
- 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))
|
|
371
993
|
|
|
372
994
|
- 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`
|
|
373
995
|
- 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
|
|
374
996
|
- 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
|
|
375
997
|
|
|
376
|
-
-
|
|
998
|
+
- 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))
|
|
377
999
|
|
|
378
1000
|
- 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
|
|
379
1001
|
- 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
|
|
@@ -382,7 +1004,7 @@
|
|
|
382
1004
|
- map: `LinePattern` now types every line pattern; `SectionLinePattern` is deprecated in its favour
|
|
383
1005
|
- 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
|
|
384
1006
|
|
|
385
|
-
-
|
|
1007
|
+
- 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))
|
|
386
1008
|
|
|
387
1009
|
- `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
|
|
388
1010
|
- `stylingFoundationsKnobKinds` gains `number`, the kind of the direction, altitude and intensity
|
|
@@ -390,9 +1012,9 @@
|
|
|
390
1012
|
- 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
|
|
391
1013
|
- examples: `map-styling-playground` shows the light knobs in a View light section
|
|
392
1014
|
|
|
393
|
-
-
|
|
1015
|
+
- 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))
|
|
394
1016
|
|
|
395
|
-
-
|
|
1017
|
+
- 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))
|
|
396
1018
|
|
|
397
1019
|
- map: `RoutingModule` draws its routes when `sections.traffic.style` is `'halo'`, at creation, after a style switch and when switched at runtime
|
|
398
1020
|
- 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
|
|
@@ -440,11 +1062,11 @@
|
|
|
440
1062
|
- 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
|
|
441
1063
|
- map: area analytics hover and click highlights stay off the cells a layer filter hides
|
|
442
1064
|
|
|
443
|
-
-
|
|
1065
|
+
- 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))
|
|
444
1066
|
|
|
445
1067
|
- 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
|
|
446
1068
|
|
|
447
|
-
-
|
|
1069
|
+
- 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))
|
|
448
1070
|
|
|
449
1071
|
- `RoutingModule` `opacity` fades the route lines and their outlines, selected and deselected; sections keep `sections.<type>.opacity`
|
|
450
1072
|
- `TrafficFlowModule` and `TrafficIncidentsModule` `opacityFactor` multiply the style's own line opacity, its zoom ramp kept; the incident icons stay opaque
|
|
@@ -453,9 +1075,9 @@
|
|
|
453
1075
|
- Each is a knob in its module's catalogue
|
|
454
1076
|
- `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`
|
|
455
1077
|
|
|
456
|
-
-
|
|
1078
|
+
- 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))
|
|
457
1079
|
|
|
458
|
-
-
|
|
1080
|
+
- 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))
|
|
459
1081
|
|
|
460
1082
|
- `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
|
|
461
1083
|
- `summaryBubbles.minZoom`, `maxZoom`, `color` and `label` (`color`, `size`, `opacity`, `typeface`, `customTypeface`) are knobs in `routingKnobCatalogue`, all but `customTypeface`
|
|
@@ -463,14 +1085,14 @@
|
|
|
463
1085
|
- 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
|
|
464
1086
|
- New `route-summary-bubbles-playground` example, its panel built from the catalogue
|
|
465
1087
|
|
|
466
|
-
-
|
|
1088
|
+
- 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))
|
|
467
1089
|
|
|
468
1090
|
- 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
|
|
469
1091
|
- `summaryBubbles.routes` shows the bubbles on `all` routes, the `selected` one alone or its `alternatives`
|
|
470
1092
|
- The `durationDifference` field writes each other route's time against the selected one, such as `+6 min`, and `selectRoute` re-times the bubbles
|
|
471
1093
|
- The `route-summary-bubbles-playground` example opens with bubbles timed against the selected route
|
|
472
1094
|
|
|
473
|
-
-
|
|
1095
|
+
- 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))
|
|
474
1096
|
|
|
475
1097
|
- 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`
|
|
476
1098
|
- 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`
|
|
@@ -492,14 +1114,14 @@
|
|
|
492
1114
|
- services: `VehicleModel` and `VehicleDimensions` are exported
|
|
493
1115
|
- core: `TomTomConfig.instance.put` drops `undefined` retry fields rather than storing them over the defaults
|
|
494
1116
|
|
|
495
|
-
-
|
|
1117
|
+
- 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))
|
|
496
1118
|
|
|
497
1119
|
- core: importing one helper, such as `generateId`, bundles under 1 KB minified instead of about 30 KB with lodash
|
|
498
1120
|
- services: `geocode` bundles about 14 KB minified instead of 68 KB, and `calculateRoute` 32 KB instead of 86 KB, with lodash
|
|
499
1121
|
- map: `TomTomMap` bundles about 44 KB minified on top of MapLibre instead of 123 KB, with lodash
|
|
500
1122
|
- core, services, map: the package declares `sideEffects: false`, so bundlers drop the modules an app doesn't import
|
|
501
1123
|
|
|
502
|
-
-
|
|
1124
|
+
- 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))
|
|
503
1125
|
|
|
504
1126
|
- 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
|
|
505
1127
|
|
|
@@ -507,7 +1129,7 @@
|
|
|
507
1129
|
|
|
508
1130
|
### Minor Changes
|
|
509
1131
|
|
|
510
|
-
-
|
|
1132
|
+
- **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))
|
|
511
1133
|
- 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
|
|
512
1134
|
- 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
|
|
513
1135
|
- 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
|
|
@@ -518,19 +1140,19 @@
|
|
|
518
1140
|
|
|
519
1141
|
### Patch Changes
|
|
520
1142
|
|
|
521
|
-
-
|
|
1143
|
+
- 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))
|
|
522
1144
|
|
|
523
|
-
-
|
|
1145
|
+
- 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))
|
|
524
1146
|
|
|
525
|
-
-
|
|
1147
|
+
- 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))
|
|
526
1148
|
|
|
527
|
-
-
|
|
1149
|
+
- 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))
|
|
528
1150
|
- 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
|
|
529
1151
|
|
|
530
|
-
-
|
|
1152
|
+
- 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))
|
|
531
1153
|
- 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
|
|
532
1154
|
|
|
533
|
-
-
|
|
1155
|
+
- 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))
|
|
534
1156
|
|
|
535
1157
|
- The `labels.typeface` knob of `StylingFoundationsModule` takes `sans`, `sans-italic`, `serif` or `serif-italic` (`mapTypefaces`), each label keeping its weight
|
|
536
1158
|
- `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
|
|
@@ -542,12 +1164,12 @@
|
|
|
542
1164
|
- `map-styling-playground` shows the typefaces in its Labels section, beside a route, museums and a district, and its sections now collapse
|
|
543
1165
|
- `themed-map` sets its labels in Fraunces from the first frame
|
|
544
1166
|
|
|
545
|
-
-
|
|
1167
|
+
- 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))
|
|
546
1168
|
- 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`
|
|
547
1169
|
|
|
548
|
-
-
|
|
1170
|
+
- 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))
|
|
549
1171
|
|
|
550
|
-
-
|
|
1172
|
+
- 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))
|
|
551
1173
|
|
|
552
1174
|
- 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
|
|
553
1175
|
- `highlight.section.outline.color` and `highlight.section.outline.widthFactor` restyle it, as config or as routing knobs
|
|
@@ -555,46 +1177,46 @@
|
|
|
555
1177
|
- examples: `route-leg-options-playground` rings the leg you point at or focus in its panel
|
|
556
1178
|
- examples: `route-styling-playground` rings the route's toll roads, with a colour and a width control for the ring
|
|
557
1179
|
|
|
558
|
-
-
|
|
1180
|
+
- map: the `maplibre-gl` peer dependency moves up to `^6.13.0` ([#2627](https://github.com/tomtom-internal/maps-sdk-js/pull/2627))
|
|
559
1181
|
|
|
560
|
-
-
|
|
1182
|
+
- 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))
|
|
561
1183
|
|
|
562
|
-
-
|
|
1184
|
+
- 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))
|
|
563
1185
|
|
|
564
|
-
-
|
|
1186
|
+
- 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))
|
|
565
1187
|
|
|
566
1188
|
## 1.0.0-rc.1
|
|
567
1189
|
|
|
568
1190
|
### Patch Changes
|
|
569
1191
|
|
|
570
|
-
-
|
|
1192
|
+
- `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))
|
|
571
1193
|
|
|
572
1194
|
## 1.0.0-rc.0
|
|
573
1195
|
|
|
574
1196
|
### Major Changes
|
|
575
1197
|
|
|
576
|
-
-
|
|
1198
|
+
- 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))
|
|
577
1199
|
|
|
578
1200
|
### Minor Changes
|
|
579
1201
|
|
|
580
|
-
-
|
|
1202
|
+
- **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))
|
|
581
1203
|
**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
|
|
582
1204
|
- 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
|
|
583
1205
|
- 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
|
|
584
1206
|
- 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 }`
|
|
585
1207
|
- map: a style, tile, sprite or glyph answered `403` reaches the error handlers as `INSUFFICIENT_PERMISSIONS`
|
|
586
1208
|
|
|
587
|
-
-
|
|
1209
|
+
- **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))
|
|
588
1210
|
- 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
|
|
589
1211
|
- map: `TrafficIncidentsModule` `filters: { delays: { mustHaveDelay, minDelayMinutes } }` is `filters: { delays: { required, minMinutes } }`, and the knob ids follow
|
|
590
1212
|
- 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
|
|
591
1213
|
- agent-toolkit: `setMapStyling`'s globe example sets `view.sky.visible`
|
|
592
1214
|
|
|
593
|
-
-
|
|
1215
|
+
- **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))
|
|
594
1216
|
- `PlacesKnob` no longer includes `text`
|
|
595
1217
|
- `TrafficFlowKnob`, `TrafficIncidentsKnob`, `TrafficIncidentDetailsKnob` and `TrafficAreaAnalyticsKnob` no longer include `image`
|
|
596
1218
|
|
|
597
|
-
-
|
|
1219
|
+
- **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))
|
|
598
1220
|
- 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
|
|
599
1221
|
- map: `RoutingModule` `width`, `sections.<type>.width` and `waypoints.size` are `widthPreset`, `sections.<type>.widthPreset` and `waypoints.sizePreset`
|
|
600
1222
|
- map: `PlacesModule` `cluster.source` takes `radius`, `maxZoom`, `minPoints` and `properties` instead of MapLibre's `clusterRadius`, `clusterMaxZoom`, `clusterMinPoints` and `clusterProperties`, typed by `PlacesClusterSourceConfig`
|
|
@@ -603,12 +1225,12 @@
|
|
|
603
1225
|
- map: each renamed property's knob id follows it
|
|
604
1226
|
- agent-toolkit: the tools keep their parameters, and the plugin needs SDK 1.0.0-rc.0
|
|
605
1227
|
|
|
606
|
-
-
|
|
1228
|
+
- **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))
|
|
607
1229
|
- `StyleInput` no longer takes `{ type: 'custom', url }` or `{ type: 'custom', json }`, and `CustomStyle` and `CustomStyleSource` are no longer exported
|
|
608
1230
|
- `lightDarkTheme` is gone with them: `map.styleLightDarkTheme` follows from the standard style ID
|
|
609
1231
|
- Restyle a standard style at runtime with `StylingFoundationsModule` and `setMapColors` instead
|
|
610
1232
|
|
|
611
|
-
-
|
|
1233
|
+
- **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))
|
|
612
1234
|
- services: `evChargingStationsAvailability`, `getPlacesWithEVAvailability`, `getPlaceWithEVAvailability` and `hasChargingAvailability` are removed
|
|
613
1235
|
- services: long-distance EV routing is removed: `vehicle.preferences`, `chargingStopsStrategy` and `chargingStopsStrategies`
|
|
614
1236
|
- 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
|
|
@@ -619,23 +1241,23 @@
|
|
|
619
1241
|
|
|
620
1242
|
The *Upgrading to 1.0 from a 0.x release* guide lists every removed name.
|
|
621
1243
|
|
|
622
|
-
-
|
|
1244
|
+
- **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))
|
|
623
1245
|
- map: `standardLight`, `standardDark`, `drivingLight`, `drivingDark` and `satellite` are `streetLight`, `streetDark`, `streetLightDriving`, `streetDarkDriving` and `streetSatellite`; `monoLight` and `monoDark` stay
|
|
624
1246
|
- agent-toolkit: `setMapStandardStyle` takes the new IDs, `resetState` reverts to `streetLight`, and the plugin needs SDK 1.0.0-rc.0
|
|
625
1247
|
- map-theme, landmarks-3d: their docs name the new IDs
|
|
626
1248
|
|
|
627
1249
|
### Patch Changes
|
|
628
1250
|
|
|
629
|
-
-
|
|
1251
|
+
- map: the `maplibre-gl` peer dependency moves up to `^6.12.0` ([#2500](https://github.com/tomtom-internal/maps-sdk-js/pull/2500))
|
|
630
1252
|
|
|
631
|
-
-
|
|
1253
|
+
- 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))
|
|
632
1254
|
- 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
|
|
633
1255
|
|
|
634
|
-
-
|
|
1256
|
+
- 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))
|
|
635
1257
|
- map: `hillshade.light.altitude`, in degrees above the horizon, and `hillshade.light.alignment`, `viewport` or `map` (`hillshadeLightAlignments`), in the config and as `terrainKnobCatalogue` knobs
|
|
636
1258
|
- map: with `method: 'multidirectional'`, `hillshade.light.direction` is the centre of four lights spread over 135°
|
|
637
1259
|
|
|
638
|
-
-
|
|
1260
|
+
- 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))
|
|
639
1261
|
|
|
640
1262
|
- `timeValidity: ['present', 'future']` brings scheduled roadworks and closures in next to the incidents under way, also as the `timeValidity` knob
|
|
641
1263
|
- `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
|
|
@@ -645,49 +1267,49 @@
|
|
|
645
1267
|
|
|
646
1268
|
### Minor Changes
|
|
647
1269
|
|
|
648
|
-
-
|
|
1270
|
+
- **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))
|
|
649
1271
|
- 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
|
|
650
1272
|
- map: `beforeLayerConfig` on the module places every layer that sets none, `'top'` by default
|
|
651
1273
|
- agent-toolkit: `setByodLayers` keeps its `beforeID` parameter and needs SDK 0.64.0
|
|
652
1274
|
|
|
653
|
-
-
|
|
1275
|
+
- **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))
|
|
654
1276
|
- 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`
|
|
655
1277
|
- 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
|
|
656
1278
|
|
|
657
|
-
-
|
|
1279
|
+
- **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))
|
|
658
1280
|
- RoutingModule: `highlight: { outlineWidthFactor }` is `highlight: { outline: { widthFactor } }`, knob id `highlight.outline.widthFactor`
|
|
659
1281
|
- GeometriesModule and ReachableRangesModule: `highlight: { fillOpacityFactor, lineWidthFactor }` is `highlight: { fill: { opacityFactor }, line: { widthFactor } }`, knob ids `highlight.fill.opacityFactor` and `highlight.line.widthFactor`
|
|
660
1282
|
- TrafficIncidentDetailsModule: `highlight: { outlineColor, widthFactor }` is `highlight: { outline: { color }, line: { widthFactor } }`, knob ids `highlight.outline.color` and `highlight.line.widthFactor`
|
|
661
1283
|
|
|
662
|
-
-
|
|
1284
|
+
- **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))
|
|
663
1285
|
- services: such a call rejects with an `SDKError` coded `INSECURE_BASE_URL` before any request, even with `validateRequest: false`
|
|
664
1286
|
- map: the `TomTomMap` constructor throws a `TomTomMapError` coded `INSECURE_BASE_URL`
|
|
665
1287
|
- a relative base URL, such as `/api`, still follows the page
|
|
666
1288
|
|
|
667
|
-
-
|
|
1289
|
+
- **Breaking:** map, services: internals that were exported without documentation are no longer exported ([#2477](https://github.com/tomtom-internal/maps-sdk-js/pull/2477))
|
|
668
1290
|
- map: `EventsProxy`, `sharedInstance`, `TomTomMapSource`, `InternalTomTomMapParams`, `poiLayerIDs`, `buildRoutingLayers` and `ROUTE_LINE_OUTLINE_COLOR`, whose value the upgrade guide gives
|
|
669
1291
|
- services: the geometry data wire-format types `GeometryDataResponseAPI` and `AdditionalDataAPI`
|
|
670
1292
|
- flyover: the arrow marker keeps its default fill, now defined in the plugin rather than imported from the SDK
|
|
671
1293
|
|
|
672
|
-
-
|
|
1294
|
+
- **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))
|
|
673
1295
|
- map: the map colour `labelOutline` is `labelHalo`, knob id `colors.labelHalo`
|
|
674
1296
|
- map: PlacesModule `cluster.badge.strokeColor` and `strokeWidth` are `outlineColor` and `outlineWidth`, knob ids `cluster.badge.outlineColor` and `cluster.badge.outlineWidth`
|
|
675
1297
|
- map-theme: `deriveMapColors`, `deriveMapColorsFromCss` and `deriveMapColorsFromImage` return `labelHalo` in place of `labelOutline`, and need SDK 0.64.0
|
|
676
1298
|
|
|
677
|
-
-
|
|
1299
|
+
- **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))
|
|
678
1300
|
- `label` is `lineLabel`, its knob ids `lineLabel.*`, and `ReachableRangeLabelConfig` is `ReachableRangeLineLabelConfig`
|
|
679
1301
|
|
|
680
|
-
-
|
|
1302
|
+
- **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))
|
|
681
1303
|
- `getSearchSuggestions({ maxResults: 8, origin: [4.9, 52.37] })` is `getSearchSuggestions({ limit: 8, geoBias: { position: [4.9, 52.37] } })`; defaults and behaviour are unchanged
|
|
682
1304
|
|
|
683
|
-
-
|
|
1305
|
+
- **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))
|
|
684
1306
|
- 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`
|
|
685
1307
|
- services: a request that gets no response rejects with `NETWORK_ERROR`, keeping what `fetch` threw as its `cause`
|
|
686
1308
|
- **Breaking:** services: `SDKError`'s third constructor argument is an options object, `{ code, issues?, cause? }`, instead of the Zod issues
|
|
687
1309
|
- 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
|
|
688
1310
|
- 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
|
|
689
1311
|
|
|
690
|
-
-
|
|
1312
|
+
- **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))
|
|
691
1313
|
- **Breaking:** core: `bboxExpandedWithPosition`, `bboxExpandedWithBBox`, `bboxExpandedWithGeoJSON`, `toPointFeature`
|
|
692
1314
|
- **Breaking:** services: `ServiceTemplate`, `ParseResponseError`, `ParsedFetchResponse`, `RequestOptions`, `parseDefaultResponseError`, `buildResponseError`, `buildValidationError`
|
|
693
1315
|
- **Breaking:** map: `renderedRefId`, `findFeatureByRefId`, `filterLayersBySources`, `withEventState`, `combineEventScopes`, `scopedLayerSpecs`, `reservedScopeNames`, `assertNoReservedScopeNames`, `getIconIDForPlace`, `getPOIGroupForPlace`, `getPOILayerCategoryForPlace`, `STOP_DISPLAY_LABEL`, `getStyleCategories`
|
|
@@ -695,19 +1317,19 @@
|
|
|
695
1317
|
|
|
696
1318
|
### Patch Changes
|
|
697
1319
|
|
|
698
|
-
-
|
|
1320
|
+
- 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))
|
|
699
1321
|
- route TomTom requests through a proxy of your own with `commonBaseURL` instead
|
|
700
1322
|
|
|
701
|
-
-
|
|
1323
|
+
- 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))
|
|
702
1324
|
- `registerMapLibreWorker: false` keeps MapLibre's own worker lookup
|
|
703
1325
|
- 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
|
|
704
1326
|
|
|
705
|
-
-
|
|
1327
|
+
- 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))
|
|
706
1328
|
- `put({ retry: { timeoutMs: 10000 } })` no longer leaves `initialWaitMs` and `backoffFactor` undefined, which made `429` retries wait `NaN` milliseconds
|
|
707
1329
|
|
|
708
|
-
-
|
|
1330
|
+
- 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))
|
|
709
1331
|
|
|
710
|
-
- [#2479](https://github.com/tomtom-internal/maps-sdk-js/pull/2479)
|
|
1332
|
+
- services, map: import as values the catalogues that only exported their types ([#2479](https://github.com/tomtom-internal/maps-sdk-js/pull/2479))
|
|
711
1333
|
- services: `arrivalSides`, `chargingStopsStrategies` and `functionalRoadClasses` from `@tomtom-org/maps-sdk/services`, as `routeTypes` already is
|
|
712
1334
|
- map: `AREA_ANALYTICS_DEFAULTS` from `@tomtom-org/maps-sdk/map`
|
|
713
1335
|
|
|
@@ -715,40 +1337,40 @@
|
|
|
715
1337
|
|
|
716
1338
|
### Minor Changes
|
|
717
1339
|
|
|
718
|
-
-
|
|
1340
|
+
- **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))
|
|
719
1341
|
- `metricConfig` is `metrics`, and its knob ids `metrics.<metric>.*`
|
|
720
1342
|
- a colour stops' `valueType` is `scaleMode`, taking the height's values: `'predefinedRange'`, `'currentRange'` and `'raw'`; `AreaAnalyticsValueType` is `AreaAnalyticsScaleMode`
|
|
721
1343
|
- `regionPolygon` takes `fill: { opacity }`, `line: { opacity, width }` and `fillStyle: 'filled' | 'inverted'` in place of `fillOpacity`, `outlineOpacity`, `outlineWidth` and `inverted`
|
|
722
1344
|
|
|
723
|
-
-
|
|
1345
|
+
- **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))
|
|
724
1346
|
- map: show or hide a group with `baseMap.setVisible(visible, { layerGroups: { show: 'only', values: ['buildings3D'] } })`, or `setKnob(baseMap, baseMapKnobCatalogue, 'groups.buildings3D.visible', true)`
|
|
725
1347
|
- map: the `data-viz`, `night-driving` and `minimal` presets no longer show or hide the building groups and the road shields
|
|
726
1348
|
- 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
|
|
727
1349
|
|
|
728
|
-
-
|
|
1350
|
+
- **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))
|
|
729
1351
|
|
|
730
|
-
-
|
|
1352
|
+
- map: **Breaking:** `GeometriesModule` takes MapLibre border overrides only through `layers.line` ([#2465](https://github.com/tomtom-internal/maps-sdk-js/pull/2465))
|
|
731
1353
|
- **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
|
|
732
1354
|
|
|
733
|
-
-
|
|
1355
|
+
- **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))
|
|
734
1356
|
- map: `IncidentFocusStyle` is `IncidentHighlightConfig`, the knob ids `focus.outlineColor` and `focus.widthFactor` are `highlight.outlineColor` and `highlight.widthFactor`
|
|
735
1357
|
- map: the `layers.focusHalo` override is `layers.highlightHalo`, and the layer id suffix `-focus-halo` is `-highlight-halo`
|
|
736
1358
|
|
|
737
|
-
-
|
|
1359
|
+
- **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))
|
|
738
1360
|
- `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()`
|
|
739
1361
|
- `getKnob(module, catalogue, id)` returns the value in force, or the catalogue default where the configuration sets none
|
|
740
1362
|
- `resetKnob(module, catalogue, id)` drops the knob from the configuration, so a `setKnob` then a `resetKnob` leaves `getConfig()` as it was
|
|
741
1363
|
- `KnobTarget` types what the three functions take, for a control panel written once for any module
|
|
742
1364
|
|
|
743
|
-
-
|
|
1365
|
+
- **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))
|
|
744
1366
|
- `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`
|
|
745
1367
|
- `INCIDENT_FOCUS_WIDTH_FACTOR_RANGE` is `knobEntryOf(trafficIncidentDetailsKnobCatalogue, 'highlight.widthFactor').range`
|
|
746
1368
|
- **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
|
|
747
1369
|
- `knobEntryOf` throws an `Error` naming an id its catalogue lacks
|
|
748
1370
|
|
|
749
|
-
-
|
|
1371
|
+
- **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))
|
|
750
1372
|
|
|
751
|
-
-
|
|
1373
|
+
- **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))
|
|
752
1374
|
- 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`
|
|
753
1375
|
- 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`
|
|
754
1376
|
- map: the hillshade knobs are `TerrainModule`'s, under the same `hillshade.*` ids in `terrainKnobCatalogue` and `TerrainModuleConfig`
|
|
@@ -756,54 +1378,54 @@
|
|
|
756
1378
|
- 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
|
|
757
1379
|
- 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`
|
|
758
1380
|
|
|
759
|
-
-
|
|
1381
|
+
- **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))
|
|
760
1382
|
|
|
761
|
-
-
|
|
1383
|
+
- **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))
|
|
762
1384
|
- map: `stylingPresetIds`, `stylingPresetCatalogue`, `StylingPresetId` and `StylingPreset` are `mapPresetIds`, `mapPresetCatalogue`, `MapPresetId` and `MapPreset`, with `MapPresetSettings` giving each module's values by its own catalogue ids
|
|
763
1385
|
- map: `applyMapPreset` creates the modules the map lacks, takes `{ merge: true }` as before, and throws an `Error` for an unknown id
|
|
764
1386
|
|
|
765
|
-
-
|
|
1387
|
+
- **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))
|
|
766
1388
|
|
|
767
|
-
-
|
|
1389
|
+
- **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))
|
|
768
1390
|
- map: its types and catalogue follow: `StylingFoundationsModuleConfig`, `StylingFoundationsEvents`, `StylingFoundationsKnob`, `StylingFoundationsKnobId`, `StylingFoundationsKnobKind`, `StylingFoundationsKnobRange`, `StylingFoundationsKnobValue`, `StylingFoundationsKnobValueOf`, `StylingFoundationsKnobAppliesTo`, `stylingFoundationsKnobCatalogue`, `stylingFoundationsKnobIds`, `stylingFoundationsKnobKinds` and `stylingFoundationsKnobAppliesTo`
|
|
769
1391
|
- agent-toolkit: the base-map state's `getStylingModule()` is `getStylingFoundationsModule()`
|
|
770
1392
|
|
|
771
|
-
-
|
|
1393
|
+
- **Breaking:** map: `StylingSettings` is `StylingFoundationsModuleConfig`, the name every other module gives its configuration ([#2466](https://github.com/tomtom-internal/maps-sdk-js/pull/2466))
|
|
772
1394
|
|
|
773
|
-
-
|
|
1395
|
+
- **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))
|
|
774
1396
|
- `TerrainModule` takes `{ hillshade: { visible }, elevation: { visible, exaggeration } }`; its knob ids are `hillshade.visible`, `elevation.visible` and `elevation.exaggeration`
|
|
775
1397
|
- `terrain.setElevationEnabled` and `isElevationEnabled` are `setElevationVisible` and `isElevationVisible`
|
|
776
1398
|
- `PlacesModule`'s `evAvailability.enabled` is `evAvailability.visible`, in the config and as a knob id
|
|
777
1399
|
|
|
778
|
-
-
|
|
1400
|
+
- 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))
|
|
779
1401
|
|
|
780
1402
|
### Patch Changes
|
|
781
1403
|
|
|
782
|
-
-
|
|
1404
|
+
- 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))
|
|
783
1405
|
- Each such ramp made MapLibre reject the layer's colour, as did any ramp under `relativeToActualRangePCT` once the loaded data had one value only
|
|
784
1406
|
- Stops are sorted, and of stops sharing a value the last given wins
|
|
785
1407
|
|
|
786
|
-
-
|
|
1408
|
+
- 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))
|
|
787
1409
|
|
|
788
|
-
-
|
|
1410
|
+
- 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))
|
|
789
1411
|
- 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
|
|
790
1412
|
- 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
|
|
791
1413
|
- 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
|
|
792
1414
|
|
|
793
|
-
-
|
|
1415
|
+
- 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))
|
|
794
1416
|
|
|
795
|
-
-
|
|
1417
|
+
- 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))
|
|
796
1418
|
- 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
|
|
797
1419
|
|
|
798
1420
|
## 0.62.3
|
|
799
1421
|
|
|
800
1422
|
### Patch Changes
|
|
801
1423
|
|
|
802
|
-
-
|
|
1424
|
+
- 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))
|
|
803
1425
|
- Traffic Area Analytics cells with such a `beforeLayerConfig`
|
|
804
1426
|
- Custom GeoJSON layers with such a `beforeID`
|
|
805
1427
|
|
|
806
|
-
-
|
|
1428
|
+
- 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))
|
|
807
1429
|
- Their layers are kept through the switch and take on the new style's look in place
|
|
808
1430
|
- A clean switch (`resetState: true`) still removes them along with the old style
|
|
809
1431
|
|
|
@@ -811,26 +1433,26 @@
|
|
|
811
1433
|
|
|
812
1434
|
### Patch Changes
|
|
813
1435
|
|
|
814
|
-
-
|
|
1436
|
+
- 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))
|
|
815
1437
|
- 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
|
|
816
1438
|
|
|
817
|
-
-
|
|
1439
|
+
- 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))
|
|
818
1440
|
- `styling.layers.query` takes the layers of the other style-owned modules as a `group`: `pois`, `trafficFlow`, `trafficIncidents` and `hillshade` (`styleModuleLayerGroupNames`)
|
|
819
1441
|
- `styling.layers` and the styling knobs reach only the loaded style's own layers, never the layers a module adds on top of it
|
|
820
1442
|
- `GeometriesModule`'s `line.layer` is deprecated in favour of `layers.line`, which takes precedence over the curated `line` fields instead of sitting under them
|
|
821
1443
|
- `TrafficAreaAnalyticsModule` keeps the cells within both a metric filter's `min` and its `max`, where it kept the cells within either
|
|
822
1444
|
|
|
823
|
-
-
|
|
1445
|
+
- 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))
|
|
824
1446
|
- 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
|
|
825
1447
|
|
|
826
|
-
-
|
|
1448
|
+
- 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))
|
|
827
1449
|
- 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
|
|
828
1450
|
- Covers `getCoordinateAtRouteProgress`, `calculateProgressAtRoutePoint`, `getRouteProgressBetween`, `getRouteProgressForSection` and `getProgressAtNearestRoutePoint`; on a winding route, values between entries can move by a couple of kilometres or minutes
|
|
829
1451
|
|
|
830
|
-
-
|
|
1452
|
+
- 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))
|
|
831
1453
|
- Knobs set once the style has drawn keep the style's transition
|
|
832
1454
|
|
|
833
|
-
-
|
|
1455
|
+
- 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))
|
|
834
1456
|
|
|
835
1457
|
- `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`.
|
|
836
1458
|
- `routingKnobCatalogue` lists the new plain settings; `buildWaypointTitle` is exported, and handlers on `events.waypoints` receive the stop's mark as `stopDisplayLabel`.
|
|
@@ -844,7 +1466,7 @@
|
|
|
844
1466
|
|
|
845
1467
|
### Patch Changes
|
|
846
1468
|
|
|
847
|
-
-
|
|
1469
|
+
- 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))
|
|
848
1470
|
- Covers the speed limit, tunnel and closed-to-vehicles signs, and the ferry, toll-road and traffic icons.
|
|
849
1471
|
- The room follows the waypoint icon's `icon-anchor`, so a `layers.waypoints.routeWaypointSymbol` override is honoured.
|
|
850
1472
|
|
|
@@ -852,7 +1474,7 @@
|
|
|
852
1474
|
|
|
853
1475
|
### Minor Changes
|
|
854
1476
|
|
|
855
|
-
-
|
|
1477
|
+
- 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))
|
|
856
1478
|
|
|
857
1479
|
- map: **Breaking:** `AreaAnalyticsColorTheme` is `AreaAnalyticsPalette`, and `areaAnalyticsPalettes` lists its names. Rename the type
|
|
858
1480
|
- 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 }`
|
|
@@ -862,20 +1484,20 @@
|
|
|
862
1484
|
- 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 })`
|
|
863
1485
|
- 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
|
|
864
1486
|
|
|
865
|
-
-
|
|
1487
|
+
- **Breaking:** map: `TrafficIncidentsModule.isIconsVisible()` returns the incident icons setting, replacing `anyIconLayersVisible()`. ([#2422](https://github.com/tomtom-internal/maps-sdk-js/pull/2422))
|
|
866
1488
|
|
|
867
1489
|
- **Breaking:** map: `TrafficIncidentsModule.anyIconLayersVisible()` is removed. To read the icons setting, use `isIconsVisible()`; to read a layer itself, use `map.mapLibreMap.getLayoutProperty(layerId, 'visibility')`
|
|
868
1490
|
- 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 } }`
|
|
869
1491
|
- 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
|
|
870
1492
|
|
|
871
|
-
-
|
|
1493
|
+
- 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))
|
|
872
1494
|
|
|
873
1495
|
- `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`
|
|
874
1496
|
- `PlacesModule` connections take `connections.color`, `connections.textColor` and `connections.haloColor`, all three in `placesKnobCatalogue`
|
|
875
1497
|
- 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
|
|
876
1498
|
- 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
|
|
877
1499
|
|
|
878
|
-
- [#2431](https://github.com/tomtom-internal/maps-sdk-js/pull/2431)
|
|
1500
|
+
- Breaking changes ([#2431](https://github.com/tomtom-internal/maps-sdk-js/pull/2431)):
|
|
879
1501
|
- 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`
|
|
880
1502
|
- map: `trafficIncidentOverlayKnobCatalogue`, `trafficIncidentOverlayKnobIds`, `TrafficIncidentOverlayKnob`, `TrafficIncidentOverlayKnobId` and `TrafficIncidentOverlayKnobValueOf` follow the module: `trafficIncidentDetailsKnobCatalogue`, `trafficIncidentDetailsKnobIds`, `TrafficIncidentDetailsKnob`, `TrafficIncidentDetailsKnobId`, `TrafficIncidentDetailsKnobValueOf`
|
|
881
1503
|
- 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[]`
|
|
@@ -883,7 +1505,7 @@
|
|
|
883
1505
|
- map: `TomTomMap.getStyle()` is `getStyleInput()`, as it returns the `StyleInput` the map was given and not the style specification MapLibre's `getStyle()` returns
|
|
884
1506
|
- map: `POIsModule.getShown()` returns `{ pois }`, no longer `{ poi }`, and the module's source key is `pois` too
|
|
885
1507
|
|
|
886
|
-
-
|
|
1508
|
+
- **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))
|
|
887
1509
|
|
|
888
1510
|
- **Breaking:** map: `places.applyMarkerType(type)`, `applyIconConfig(icon)`, `applyLabelConfig(label)`, `applyExtraFeatureProps(props)` are removed: use `places.updateConfig({ markerType, icon, label, extraFeatureProps })`
|
|
889
1511
|
- **Breaking:** map: `geometries.applyLabelConfig(label)` is removed: use `geometries.updateConfig({ label })`
|
|
@@ -896,7 +1518,7 @@
|
|
|
896
1518
|
- map: `PlacesModule.applyConfig` and `updateConfig` take the place shape, so `label.title`, `extraFeatureProps` and the icon mapping read your own place properties typed
|
|
897
1519
|
- 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
|
|
898
1520
|
|
|
899
|
-
-
|
|
1521
|
+
- 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))
|
|
900
1522
|
|
|
901
1523
|
- 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
|
|
902
1524
|
- 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
|
|
@@ -912,7 +1534,7 @@
|
|
|
912
1534
|
|
|
913
1535
|
### Patch Changes
|
|
914
1536
|
|
|
915
|
-
-
|
|
1537
|
+
- 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))
|
|
916
1538
|
|
|
917
1539
|
- 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
|
|
918
1540
|
- map: a `TrafficAreaAnalyticsModule` style change no longer emits `shown-features`, as on the other modules
|
|
@@ -920,39 +1542,39 @@
|
|
|
920
1542
|
- map: an event state no longer writes into the feature objects you passed to `show`; `getShown()` returns a new collection after each state change
|
|
921
1543
|
- 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
|
|
922
1544
|
|
|
923
|
-
-
|
|
1545
|
+
- 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))
|
|
924
1546
|
|
|
925
1547
|
- 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
|
|
926
1548
|
- 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
|
|
927
1549
|
- 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`
|
|
928
1550
|
|
|
929
|
-
-
|
|
1551
|
+
- 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))
|
|
930
1552
|
|
|
931
1553
|
- 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
|
|
932
1554
|
- 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
|
|
933
1555
|
- 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
|
|
934
1556
|
|
|
935
|
-
-
|
|
1557
|
+
- 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))
|
|
936
1558
|
- 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
|
|
937
1559
|
- `applyConfig` and `updateConfig` restack the layers, a style change keeps them there and `resetConfig` puts them back. Unconfigured, the layer order is unchanged
|
|
938
1560
|
|
|
939
|
-
-
|
|
1561
|
+
- 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))
|
|
940
1562
|
|
|
941
|
-
-
|
|
1563
|
+
- 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))
|
|
942
1564
|
|
|
943
1565
|
## 0.61.0
|
|
944
1566
|
|
|
945
1567
|
### Minor Changes
|
|
946
1568
|
|
|
947
|
-
-
|
|
1569
|
+
- **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))
|
|
948
1570
|
|
|
949
1571
|
- **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`
|
|
950
1572
|
- **Breaking:** services: the response types of the three searches `discoverPlaces` runs are not exported: `AlongRouteSearchResponse`, `FuzzySearchResponse` and `GeometrySearchResponse` → `DiscoverPlacesResponse`, `GeometrySearchFeatureCollectionProps` → `SearchSummary`
|
|
951
1573
|
- **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`
|
|
952
1574
|
|
|
953
|
-
-
|
|
1575
|
+
- **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))
|
|
954
1576
|
|
|
955
|
-
-
|
|
1577
|
+
- **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))
|
|
956
1578
|
|
|
957
1579
|
- **Breaking:** map: `GeometriesModule.applyTextConfig()` is `applyLabelConfig()`, after the `label` it sets: `geometries.applyTextConfig({ text })` → `geometries.applyLabelConfig({ text })`
|
|
958
1580
|
- **Breaking:** map: `GeometryLabel` is `GeometryLabelConfig` and `GeometryLineLabel` is `GeometryLineLabelConfig`, like `GeometryFillConfig` and `GeometryLineConfig`
|
|
@@ -963,12 +1585,12 @@
|
|
|
963
1585
|
- map: `GeometryLabelConfig.text` is optional, so `label: { size: 18 }` restyles the center labels without restating their text
|
|
964
1586
|
- map: `FillStyledGeometryConfigOptions`, `ReachableRangeGeometryConfigOptions` and `ReachableRangesDisplayOptions` name the options objects
|
|
965
1587
|
|
|
966
|
-
-
|
|
1588
|
+
- **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))
|
|
967
1589
|
|
|
968
1590
|
- **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' }`
|
|
969
1591
|
- 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
|
|
970
1592
|
|
|
971
|
-
-
|
|
1593
|
+
- **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))
|
|
972
1594
|
|
|
973
1595
|
- **Breaking:** core: `View` is renamed `GeopoliticalView`, and `views` is renamed `geopoliticalViews`
|
|
974
1596
|
- **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
|
|
@@ -978,7 +1600,7 @@
|
|
|
978
1600
|
- 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
|
|
979
1601
|
- services: `getSearchSuggestions` uses the global geopolitical view when the call sets none
|
|
980
1602
|
|
|
981
|
-
-
|
|
1603
|
+
- **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))
|
|
982
1604
|
|
|
983
1605
|
- **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
|
|
984
1606
|
- **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
|
|
@@ -990,7 +1612,7 @@
|
|
|
990
1612
|
- map: `routingKnobCatalogue` holds the unit labels, `displayUnits.distance.*` and `displayUnits.time.*`, as `text` knobs
|
|
991
1613
|
- 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
|
|
992
1614
|
|
|
993
|
-
-
|
|
1615
|
+
- **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))
|
|
994
1616
|
|
|
995
1617
|
- **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
|
|
996
1618
|
- 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
|
|
@@ -998,7 +1620,7 @@
|
|
|
998
1620
|
- map: `StylingModule.set` and `setMapColors` check values with `validateKnobValue`, so their messages match every other module's
|
|
999
1621
|
- 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
|
|
1000
1622
|
|
|
1001
|
-
-
|
|
1623
|
+
- **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))
|
|
1002
1624
|
|
|
1003
1625
|
- **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')`
|
|
1004
1626
|
- **Breaking:** map: `TrafficIncidentsModule.isVisible()` is `false` when the incidents are set hidden with `icons: { visible: true }`. Read `anyIconLayersVisible()` for the icons
|
|
@@ -1008,14 +1630,14 @@
|
|
|
1008
1630
|
- 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
|
|
1009
1631
|
- map: `CustomGeoJSONModule.isVisible()` reads its `visible` setting
|
|
1010
1632
|
|
|
1011
|
-
-
|
|
1633
|
+
- **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))
|
|
1012
1634
|
|
|
1013
1635
|
- **Breaking:** map: `PlacesModuleConfig.text` is `label`, like `GeometriesModuleConfig.label`: `{ text: { title, color } }` → `{ label: { title, color } }`
|
|
1014
1636
|
- **Breaking:** map: `PlaceTextConfig` is `PlaceLabelConfig`
|
|
1015
1637
|
- **Breaking:** map: `PlacesModule.applyTextConfig()` is `applyLabelConfig()`, as on `GeometriesModule`: `places.applyTextConfig({ color })` → `places.applyLabelConfig({ color })`
|
|
1016
1638
|
- **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`
|
|
1017
1639
|
|
|
1018
|
-
-
|
|
1640
|
+
- **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))
|
|
1019
1641
|
|
|
1020
1642
|
- **Breaking:** map: `PlacesModuleConfig.theme` is `markerType`, with the same values: `{ theme: 'base-map' }` → `{ markerType: 'base-map' }`
|
|
1021
1643
|
- **Breaking:** map: `PlacesModule.applyTheme()` is `applyMarkerType()`: `places.applyTheme('pin')` → `places.applyMarkerType('pin')`
|
|
@@ -1025,18 +1647,18 @@
|
|
|
1025
1647
|
- map: a `label.size` or `label.haloWidth` of `0` on `PlacesModule` reaches its labels instead of being ignored
|
|
1026
1648
|
- map: a `PlacesModule` `layers.*.layout` override of `text-size`, `text-font` or `text-field` wins over `label`, as its paint overrides already did
|
|
1027
1649
|
|
|
1028
|
-
-
|
|
1650
|
+
- **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))
|
|
1029
1651
|
|
|
1030
1652
|
- **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
|
|
1031
1653
|
- services: `getPOICategories` merges several `filters` round-robin, so each filter's best match comes first
|
|
1032
1654
|
- services: `getPOICategories` `filters` fold accents, so `'cafe'` finds Café, and a blank filter matches nothing instead of every category
|
|
1033
1655
|
|
|
1034
|
-
-
|
|
1656
|
+
- **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))
|
|
1035
1657
|
|
|
1036
1658
|
- **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
|
|
1037
1659
|
- 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
|
|
1038
1660
|
|
|
1039
|
-
-
|
|
1661
|
+
- **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))
|
|
1040
1662
|
|
|
1041
1663
|
- **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
|
|
1042
1664
|
- **Breaking:** map: `KnobKind` gains `image`, a sprite image id, so an exhaustive `switch` over `KnobKind` needs a case for it
|
|
@@ -1044,403 +1666,337 @@
|
|
|
1044
1666
|
- map: `KnobEntry` is the entry shape every catalogue shares, one member per kind, and `KnobValueOf` the value a knob of each kind holds
|
|
1045
1667
|
- map: `SectionIconPlacement` names the placements `SectionIconConfig.placement` takes
|
|
1046
1668
|
|
|
1047
|
-
-
|
|
1669
|
+
- **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))
|
|
1048
1670
|
|
|
1049
1671
|
### Patch Changes
|
|
1050
1672
|
|
|
1051
|
-
-
|
|
1673
|
+
- 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))
|
|
1052
1674
|
|
|
1053
1675
|
- 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
|
|
1054
1676
|
- 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
|
|
1055
1677
|
- map: the `basemap.<group>` entries of `stylingKnobCatalogue` say what their group holds, in the words of the matching `baseMapKnobCatalogue` entry, and name its id
|
|
1056
1678
|
|
|
1057
|
-
-
|
|
1679
|
+
- 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))
|
|
1058
1680
|
|
|
1059
1681
|
- map: `TrafficIncidentOverlayModule` follows the `traffic.incidents.*Color` styling knobs live, set before or after it was created and across `setStyle`
|
|
1060
1682
|
- 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
|
|
1061
1683
|
- 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
|
|
1062
1684
|
- map: `TrafficIncidentOverlayModule` draws minor jams in the style's own colour instead of the light styles' on every style, the dark ones included
|
|
1063
1685
|
|
|
1064
|
-
-
|
|
1686
|
+
- 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))
|
|
1065
1687
|
|
|
1066
|
-
-
|
|
1688
|
+
- 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))
|
|
1067
1689
|
|
|
1068
1690
|
- 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
|
|
1069
1691
|
- 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
|
|
1070
1692
|
|
|
1071
|
-
- [#2379](https://github.com/tomtom-internal/maps-sdk-js/pull/2379)
|
|
1693
|
+
- map: `GeometriesModule` config changes restyle the geometries already shown. ([#2379](https://github.com/tomtom-internal/maps-sdk-js/pull/2379))
|
|
1072
1694
|
|
|
1073
1695
|
- 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
|
|
1074
1696
|
- 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
|
|
1075
1697
|
- 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
|
|
1076
1698
|
- 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
|
|
1077
1699
|
|
|
1078
|
-
-
|
|
1700
|
+
- 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))
|
|
1079
1701
|
|
|
1080
|
-
-
|
|
1702
|
+
- 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))
|
|
1081
1703
|
|
|
1082
|
-
-
|
|
1704
|
+
- 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))
|
|
1083
1705
|
|
|
1084
|
-
-
|
|
1706
|
+
- services: `discoverPlaces` and the new `resolvePOICategories` take POI categories in words. ([#2389](https://github.com/tomtom-internal/maps-sdk-js/pull/2389))
|
|
1085
1707
|
|
|
1086
1708
|
- 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`
|
|
1087
1709
|
- `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
|
|
1088
1710
|
|
|
1089
|
-
-
|
|
1711
|
+
- 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))
|
|
1090
1712
|
|
|
1091
|
-
-
|
|
1713
|
+
- services: `getPlacesWithEVAvailability` takes `maxConcurrentRequests`, and its result type allows places without availability. ([#2376](https://github.com/tomtom-internal/maps-sdk-js/pull/2376))
|
|
1092
1714
|
|
|
1093
1715
|
- 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
|
|
1094
1716
|
- 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
|
|
1095
1717
|
- services: the `discoverPlaces` docs name all three searches it runs, along-route search when `route` is given included
|
|
1096
1718
|
|
|
1097
|
-
-
|
|
1719
|
+
- 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))
|
|
1098
1720
|
|
|
1099
|
-
-
|
|
1721
|
+
- 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))
|
|
1100
1722
|
|
|
1101
|
-
-
|
|
1723
|
+
- 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))
|
|
1102
1724
|
|
|
1103
|
-
-
|
|
1725
|
+
- 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))
|
|
1104
1726
|
|
|
1105
|
-
-
|
|
1727
|
+
- 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))
|
|
1106
1728
|
|
|
1107
|
-
-
|
|
1729
|
+
- 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))
|
|
1108
1730
|
|
|
1109
|
-
-
|
|
1731
|
+
- `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))
|
|
1110
1732
|
|
|
1111
|
-
-
|
|
1733
|
+
- 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))
|
|
1112
1734
|
|
|
1113
|
-
-
|
|
1735
|
+
- 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))
|
|
1114
1736
|
|
|
1115
|
-
-
|
|
1737
|
+
- 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))
|
|
1116
1738
|
|
|
1117
|
-
-
|
|
1739
|
+
- 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))
|
|
1118
1740
|
|
|
1119
|
-
-
|
|
1741
|
+
- 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))
|
|
1120
1742
|
|
|
1121
|
-
-
|
|
1743
|
+
- 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))
|
|
1122
1744
|
|
|
1123
1745
|
## 0.60.0
|
|
1124
1746
|
|
|
1125
1747
|
### Minor Changes
|
|
1126
1748
|
|
|
1127
|
-
- [#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337)
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
- 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
|
|
1136
|
-
- map: `TrafficAreaAnalyticsModule.moveBeforeLayer` emits `config-change`, as `GeometriesModule` and `TrafficIncidentOverlayModule` do
|
|
1749
|
+
- **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))
|
|
1750
|
+
- **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))
|
|
1751
|
+
- **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))
|
|
1752
|
+
- **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))
|
|
1753
|
+
- **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))
|
|
1754
|
+
- 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))
|
|
1755
|
+
- 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))
|
|
1756
|
+
- map: `TrafficAreaAnalyticsModule.moveBeforeLayer` emits `config-change`, as `GeometriesModule` and `TrafficIncidentOverlayModule` do ([#2337](https://github.com/tomtom-internal/maps-sdk-js/pull/2337))
|
|
1137
1757
|
|
|
1138
|
-
- [#2336](https://github.com/tomtom-internal/maps-sdk-js/pull/2336)
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
- **Breaking:** map: `SectionIconConfig.size` → `sizeFactor`, now clamped to `SECTION_ICON_SIZE_FACTOR_RANGE` (0.25–2)
|
|
1142
|
-
- 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
|
|
1758
|
+
- **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))
|
|
1759
|
+
- **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))
|
|
1760
|
+
- 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))
|
|
1143
1761
|
|
|
1144
1762
|
### Patch Changes
|
|
1145
1763
|
|
|
1146
|
-
-
|
|
1764
|
+
- 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))
|
|
1147
1765
|
|
|
1148
1766
|
## 0.59.0
|
|
1149
1767
|
|
|
1150
1768
|
### Minor Changes
|
|
1151
1769
|
|
|
1152
|
-
-
|
|
1153
|
-
|
|
1154
|
-
- [#2335](https://github.com/tomtom-internal/maps-sdk-js/pull/2335)
|
|
1155
|
-
|
|
1156
|
-
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
- [#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333)
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
- [#
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
- services: geocoding responses carry the search summary as `properties`, `nextCursor` included
|
|
1215
|
-
|
|
1216
|
-
- [#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
|
|
1217
|
-
|
|
1218
|
-
- [#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
|
|
1219
|
-
|
|
1220
|
-
- [#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)!
|
|
1221
|
-
|
|
1222
|
-
- **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
|
|
1223
|
-
- map: `setMapColors` and the `colors.accent` knob set `accent`, and `map.mapColors` publishes the map colours in effect
|
|
1224
|
-
- 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
|
|
1225
|
-
- map: `RoutingModule.getConfig()` returns the configuration as given, without the layers the module built from it
|
|
1226
|
-
- map: a `PlacesModule` default pin `style` repaints the pin when it changes, and an `icon.default.image` is never replaced by it
|
|
1227
|
-
- 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"
|
|
1228
|
-
|
|
1229
|
-
- [#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`
|
|
1770
|
+
- **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))
|
|
1771
|
+
|
|
1772
|
+
- **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)):
|
|
1773
|
+
- `layerGroupsVisibility: { mode: 'include', names: ['water', 'ferries'], visible: false }` becomes `groups: { water: { visible: false }, ferries: { visible: false } }`
|
|
1774
|
+
- `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
|
|
1775
|
+
- **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))
|
|
1776
|
+
- **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))
|
|
1777
|
+
- **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))
|
|
1778
|
+
- **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))
|
|
1779
|
+
- 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))
|
|
1780
|
+
- 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))
|
|
1781
|
+
- 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))
|
|
1782
|
+
- 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))
|
|
1783
|
+
|
|
1784
|
+
- **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))
|
|
1785
|
+
|
|
1786
|
+
- **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))
|
|
1787
|
+
- 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))
|
|
1788
|
+
|
|
1789
|
+
- **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))
|
|
1790
|
+
- 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))
|
|
1791
|
+
- map: a style change restores a hidden `TrafficAreaAnalyticsModule` without emitting `config-change` ([#2316](https://github.com/tomtom-internal/maps-sdk-js/pull/2316))
|
|
1792
|
+
|
|
1793
|
+
- **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))
|
|
1794
|
+
- **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))
|
|
1795
|
+
- **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))
|
|
1796
|
+
- **Breaking:** map: the undocumented `DEFAULT_STYLE_VERSION` export is removed ([#2345](https://github.com/tomtom-internal/maps-sdk-js/pull/2345))
|
|
1797
|
+
|
|
1798
|
+
- **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))
|
|
1799
|
+
- **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))
|
|
1800
|
+
- **Breaking:** map: `themedGeometryConfig` is `fillStyledGeometryConfig` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1801
|
+
- **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))
|
|
1802
|
+
- **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))
|
|
1803
|
+
- **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))
|
|
1804
|
+
- 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))
|
|
1805
|
+
- 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))
|
|
1806
|
+
- map: `label` styles the geometry titles with `LabelConfig`, and `lineLabel` gains `font` ([#2333](https://github.com/tomtom-internal/maps-sdk-js/pull/2333))
|
|
1807
|
+
- 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))
|
|
1808
|
+
|
|
1809
|
+
- **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))
|
|
1810
|
+
- 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))
|
|
1811
|
+
- 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))
|
|
1812
|
+
- 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))
|
|
1813
|
+
- 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))
|
|
1814
|
+
- 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))
|
|
1815
|
+
|
|
1816
|
+
- **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))
|
|
1817
|
+
- **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))
|
|
1818
|
+
- services: geocoding responses carry the search summary as `properties`, `nextCursor` included ([#2193](https://github.com/tomtom-internal/maps-sdk-js/pull/2193))
|
|
1819
|
+
|
|
1820
|
+
- **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))
|
|
1821
|
+
|
|
1822
|
+
- **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))
|
|
1823
|
+
|
|
1824
|
+
- **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))
|
|
1825
|
+
- 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))
|
|
1826
|
+
- 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))
|
|
1827
|
+
- 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))
|
|
1828
|
+
- 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))
|
|
1829
|
+
- 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))
|
|
1830
|
+
|
|
1831
|
+
- **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))
|
|
1230
1832
|
|
|
1231
1833
|
### Patch Changes
|
|
1232
1834
|
|
|
1233
|
-
-
|
|
1835
|
+
- 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))
|
|
1234
1836
|
|
|
1235
|
-
-
|
|
1837
|
+
- 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))
|
|
1236
1838
|
|
|
1237
|
-
-
|
|
1238
|
-
|
|
1239
|
-
- 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`
|
|
1240
|
-
- 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
|
|
1839
|
+
- 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))
|
|
1840
|
+
- 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))
|
|
1241
1841
|
|
|
1242
|
-
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
- map: `PlacesModule` connection layers and the `GeometriesModule` border keep a `layout.visibility: 'none'` override when data is shown
|
|
1246
|
-
- map: `GeometriesModule` border labels (`lineLabel`) move with the border in `moveBeforeLayer` and follow config changes
|
|
1842
|
+
- 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))
|
|
1843
|
+
- 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))
|
|
1844
|
+
- 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))
|
|
1247
1845
|
|
|
1248
|
-
-
|
|
1846
|
+
- 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))
|
|
1249
1847
|
|
|
1250
|
-
-
|
|
1848
|
+
- 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))
|
|
1251
1849
|
|
|
1252
|
-
- [#2272](https://github.com/tomtom-internal/maps-sdk-js/pull/2272)
|
|
1253
|
-
|
|
1254
|
-
- 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
|
|
1255
|
-
- map: `sections.tunnel.icon` and `sections.vehicleRestricted.icon` replace those signs, instead of being accepted and ignored
|
|
1850
|
+
- 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))
|
|
1851
|
+
- 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))
|
|
1256
1852
|
|
|
1257
|
-
-
|
|
1853
|
+
- 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))
|
|
1258
1854
|
|
|
1259
|
-
-
|
|
1855
|
+
- 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))
|
|
1260
1856
|
|
|
1261
1857
|
## 0.58.1
|
|
1262
1858
|
|
|
1263
1859
|
### Patch Changes
|
|
1264
1860
|
|
|
1265
|
-
- [#2099](https://github.com/tomtom-internal/maps-sdk-js/pull/2099)
|
|
1266
|
-
|
|
1267
|
-
- 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
|
|
1268
|
-
- 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
|
|
1861
|
+
- 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))
|
|
1862
|
+
- 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))
|
|
1269
1863
|
|
|
1270
|
-
- [#1939](https://github.com/tomtom-internal/maps-sdk-js/pull/1939)
|
|
1271
|
-
|
|
1272
|
-
- 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
|
|
1273
|
-
- 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
|
|
1864
|
+
- 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))
|
|
1865
|
+
- 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))
|
|
1274
1866
|
|
|
1275
1867
|
## 0.58.0
|
|
1276
1868
|
|
|
1277
1869
|
### Minor Changes
|
|
1278
1870
|
|
|
1279
|
-
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
- [#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216)
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
-
|
|
1325
|
-
|
|
1326
|
-
-
|
|
1327
|
-
|
|
1328
|
-
- [#
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
- **Breaking:** core, services: `apiVersion` is removed from `GlobalConfig` and `CommonRoutingParams`; each service picks the API version it calls
|
|
1332
|
-
|
|
1333
|
-
- [#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)!
|
|
1334
|
-
|
|
1335
|
-
- **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
|
|
1336
|
-
- **Breaking:** core: `AreaAnalyticsFeatureProperties.timezone` is optional: the API echoes it only from a request that names one, and the SDK's names none
|
|
1337
|
-
- 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
|
|
1338
|
-
- 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
|
|
1339
|
-
- 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
|
|
1340
|
-
- services: `trafficAreaAnalytics` documents that its `hours` filter and every `timedData` time identifier are in UTC, since the request names no region timezone
|
|
1341
|
-
|
|
1342
|
-
- [#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)!
|
|
1343
|
-
|
|
1344
|
-
- **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
|
|
1345
|
-
- **Breaking:** services: remove the `trafficModelId` parameter from `trafficIncidentDetails`; v2 always serves the latest traffic state
|
|
1346
|
-
- **Breaking:** core: remove `TrafficIncidentTMC`, `TrafficIncidentTMCPoint` and `properties.tmc` from `TrafficIncidentProperties`; v2 carries no TMC data
|
|
1347
|
-
- 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
|
|
1348
|
-
- 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
|
|
1871
|
+
- **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))
|
|
1872
|
+
- 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))
|
|
1873
|
+
|
|
1874
|
+
- **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))
|
|
1875
|
+
- **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))
|
|
1876
|
+
|
|
1877
|
+
- **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))
|
|
1878
|
+
- **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))
|
|
1879
|
+
- 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))
|
|
1880
|
+
|
|
1881
|
+
- **Breaking:** services: the reachable-range budget type `remainingChargeCPT` is `remainingChargePCT`, matching `spentChargePCT` ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1882
|
+
- **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))
|
|
1883
|
+
- **Breaking:** services: `metricKeyToApiDataType` is no longer exported ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1884
|
+
- **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))
|
|
1885
|
+
- **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))
|
|
1886
|
+
- **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))
|
|
1887
|
+
- map: `filterShowModes` lists the `FilterShowMode` values at runtime ([#2216](https://github.com/tomtom-internal/maps-sdk-js/pull/2216))
|
|
1888
|
+
- 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))
|
|
1889
|
+
|
|
1890
|
+
- **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))
|
|
1891
|
+
- 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))
|
|
1892
|
+
- 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))
|
|
1893
|
+
|
|
1894
|
+
- **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))
|
|
1895
|
+
- **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))
|
|
1896
|
+
- **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))
|
|
1897
|
+
- **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))
|
|
1898
|
+
- **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))
|
|
1899
|
+
- **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))
|
|
1900
|
+
- 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))
|
|
1901
|
+
- 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))
|
|
1902
|
+
- 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))
|
|
1903
|
+
|
|
1904
|
+
- **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))
|
|
1905
|
+
|
|
1906
|
+
- **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))
|
|
1907
|
+
|
|
1908
|
+
- **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))
|
|
1909
|
+
- **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))
|
|
1910
|
+
|
|
1911
|
+
- **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))
|
|
1912
|
+
- **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))
|
|
1913
|
+
- 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))
|
|
1914
|
+
- 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))
|
|
1915
|
+
- 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))
|
|
1916
|
+
- 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))
|
|
1917
|
+
|
|
1918
|
+
- **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))
|
|
1919
|
+
- **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))
|
|
1920
|
+
- **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))
|
|
1921
|
+
- 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))
|
|
1922
|
+
- 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))
|
|
1349
1923
|
|
|
1350
1924
|
### Patch Changes
|
|
1351
1925
|
|
|
1352
|
-
-
|
|
1926
|
+
- 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))
|
|
1353
1927
|
|
|
1354
|
-
-
|
|
1928
|
+
- 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))
|
|
1355
1929
|
|
|
1356
|
-
-
|
|
1930
|
+
- 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))
|
|
1357
1931
|
|
|
1358
|
-
- [#2222](https://github.com/tomtom-internal/maps-sdk-js/pull/2222)
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
- 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
|
|
1362
|
-
- 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
|
|
1932
|
+
- 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))
|
|
1933
|
+
- 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))
|
|
1934
|
+
- 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))
|
|
1363
1935
|
|
|
1364
|
-
-
|
|
1936
|
+
- 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))
|
|
1365
1937
|
|
|
1366
|
-
-
|
|
1938
|
+
- 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))
|
|
1367
1939
|
|
|
1368
|
-
-
|
|
1940
|
+
- 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))
|
|
1369
1941
|
|
|
1370
|
-
- [#2237](https://github.com/tomtom-internal/maps-sdk-js/pull/2237)
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
- map: `styling.get('colors.<name>')` reports a colour without the opacity of the layer it was read from, so setting it back changes nothing
|
|
1380
|
-
- 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
|
|
1942
|
+
- 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))
|
|
1943
|
+
- 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))
|
|
1944
|
+
- 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))
|
|
1945
|
+
- 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))
|
|
1946
|
+
- 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))
|
|
1947
|
+
- 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))
|
|
1948
|
+
- 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))
|
|
1949
|
+
- 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))
|
|
1950
|
+
- 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))
|
|
1381
1951
|
|
|
1382
|
-
-
|
|
1952
|
+
- 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))
|
|
1383
1953
|
|
|
1384
|
-
-
|
|
1954
|
+
- 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))
|
|
1385
1955
|
|
|
1386
|
-
- [#2247](https://github.com/tomtom-internal/maps-sdk-js/pull/2247)
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
- 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
|
|
1390
|
-
- services: `trafficAreaAnalytics` documents that `anomalies` is empty: the service detects anomalies only over 35 days or more, beyond a request's 31-day limit
|
|
1956
|
+
- 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))
|
|
1957
|
+
- 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))
|
|
1958
|
+
- 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))
|
|
1391
1959
|
|
|
1392
1960
|
## 0.57.0
|
|
1393
1961
|
|
|
1394
1962
|
### Minor Changes
|
|
1395
1963
|
|
|
1396
|
-
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
- **Breaking:** services: `SearchSummary.totalResults` and `SearchSummary.fuzzyLevel` are optional — guard them rather than assuming a number
|
|
1400
|
-
- services: `customizeService` builders document how to send the credential yourself, including `credentials: 'include'` under a credentials proxy via `isProxyCredentialsMode(config)`
|
|
1964
|
+
- **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))
|
|
1965
|
+
- **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))
|
|
1966
|
+
- 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))
|
|
1401
1967
|
|
|
1402
|
-
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
- **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
|
|
1406
|
-
- 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
|
|
1968
|
+
- **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))
|
|
1969
|
+
- **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))
|
|
1970
|
+
- 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))
|
|
1407
1971
|
|
|
1408
1972
|
### Patch Changes
|
|
1409
1973
|
|
|
1410
|
-
- [#2092](https://github.com/tomtom-internal/maps-sdk-js/pull/2092)
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
- map: `hillshade.*` styling knobs set the shading's method, light direction, strength, maximum zoom and colours
|
|
1414
|
-
- 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()`
|
|
1974
|
+
- 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))
|
|
1975
|
+
- 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))
|
|
1976
|
+
- 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))
|
|
1415
1977
|
|
|
1416
|
-
- [#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100)
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
- map: `TrafficAreaAnalyticsModule.applyConfig` with a new `activeMetric` filters and scales the layers by that metric rather than the previous one
|
|
1422
|
-
- 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
|
|
1978
|
+
- 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))
|
|
1979
|
+
- map: `BaseMapModule.resetConfig()` empties the configuration instead of keeping the previous one ([#2100](https://github.com/tomtom-internal/maps-sdk-js/pull/2100))
|
|
1980
|
+
- 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))
|
|
1981
|
+
- 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))
|
|
1982
|
+
- 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))
|
|
1423
1983
|
|
|
1424
1984
|
## 0.56.0
|
|
1425
1985
|
|
|
1426
1986
|
### Minor Changes
|
|
1427
1987
|
|
|
1428
|
-
- [#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188)
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
- services: places GA phase 1 - remove the experimentalSearch export
|
|
1438
|
-
- map: draw border crossings under the waypoint pins
|
|
1988
|
+
- **Breaking:** map: precise types for custom styles, places props and traffic data ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1989
|
+
- **Breaking:** services: deduplicate vehicle energy encoding, tighten EV types ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1990
|
+
- map: label a route's border crossings with the countries they join ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1991
|
+
- map: post speed limit signs where the limit changes ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1992
|
+
- map: styling GA phase 2 - view knobs, presets, map-effects plugin ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1993
|
+
- map: styling GA phase 3 - setMapColors map colours and exportStyle ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1994
|
+
- routing: phase 6 - show what the SDK adds over calling the API directly ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1995
|
+
- services: places GA phase 1 - remove the experimentalSearch export ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1996
|
+
- map: draw border crossings under the waypoint pins ([#2188](https://github.com/tomtom-internal/maps-sdk-js/pull/2188))
|
|
1439
1997
|
|
|
1440
|
-
- [#2175](https://github.com/tomtom-internal/maps-sdk-js/pull/2175)
|
|
1441
|
-
|
|
1442
|
-
- **Breaking:** map: `StylingKnobValueOf` narrows to each knob's kind, so `StylingModule.set` rejects a value of the wrong kind at compile time
|
|
1443
|
-
- map: `stylingColorKnobIds` and `StylingColorKnobId` name every styling colour knob, and `KnobKind` gains `colors`
|
|
1998
|
+
- **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))
|
|
1999
|
+
- map: `stylingColorKnobIds` and `StylingColorKnobId` name every styling colour knob, and `KnobKind` gains `colors` ([#2175](https://github.com/tomtom-internal/maps-sdk-js/pull/2175))
|
|
1444
2000
|
|
|
1445
2001
|
## [0.55.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.54.0...v0.55.1) (2026-09-21)
|
|
1446
2002
|
|
|
@@ -1455,20 +2011,20 @@
|
|
|
1455
2011
|
|
|
1456
2012
|
### Features
|
|
1457
2013
|
|
|
1458
|
-
* **core:** fold reverse geocoding's access points into entryPoints ([#2151](https://github.com/tomtom-internal/maps-sdk-js/issues/2151))
|
|
1459
|
-
* **examples:** gdpr demo compliance ([#2154](https://github.com/tomtom-internal/maps-sdk-js/issues/2154))
|
|
1460
|
-
* **examples:** put every reverseGeocode option on the rev-geo playground ([#2149](https://github.com/tomtom-internal/maps-sdk-js/issues/2149))
|
|
1461
|
-
* **examples:** redesign the claim-validation demo UX per Figma ([#2145](https://github.com/tomtom-internal/maps-sdk-js/issues/2145))
|
|
1462
|
-
* **examples:** serve the brand faces the typography tokens name ([#2155](https://github.com/tomtom-internal/maps-sdk-js/issues/2155))
|
|
1463
|
-
* **map:** one config tier for every drawn route section type ([#2078](https://github.com/tomtom-internal/maps-sdk-js/issues/2078))
|
|
1464
|
-
* **map:** post speed limits as road signs rather than a band ([#2141](https://github.com/tomtom-internal/maps-sdk-js/issues/2141))
|
|
1465
|
-
* **map:** styling GA phase 1 — StylingModule and the describe() catalogue ([#2089](https://github.com/tomtom-internal/maps-sdk-js/issues/2089))
|
|
1466
|
-
* **services:** replace flat geo-bias fields with a single geoBias option ([#2158](https://github.com/tomtom-internal/maps-sdk-js/issues/2158))
|
|
2014
|
+
* **core:** fold reverse geocoding's access points into entryPoints ([#2151](https://github.com/tomtom-internal/maps-sdk-js/issues/2151))
|
|
2015
|
+
* **examples:** gdpr demo compliance ([#2154](https://github.com/tomtom-internal/maps-sdk-js/issues/2154))
|
|
2016
|
+
* **examples:** put every reverseGeocode option on the rev-geo playground ([#2149](https://github.com/tomtom-internal/maps-sdk-js/issues/2149))
|
|
2017
|
+
* **examples:** redesign the claim-validation demo UX per Figma ([#2145](https://github.com/tomtom-internal/maps-sdk-js/issues/2145))
|
|
2018
|
+
* **examples:** serve the brand faces the typography tokens name ([#2155](https://github.com/tomtom-internal/maps-sdk-js/issues/2155))
|
|
2019
|
+
* **map:** one config tier for every drawn route section type ([#2078](https://github.com/tomtom-internal/maps-sdk-js/issues/2078))
|
|
2020
|
+
* **map:** post speed limits as road signs rather than a band ([#2141](https://github.com/tomtom-internal/maps-sdk-js/issues/2141))
|
|
2021
|
+
* **map:** styling GA phase 1 — StylingModule and the describe() catalogue ([#2089](https://github.com/tomtom-internal/maps-sdk-js/issues/2089))
|
|
2022
|
+
* **services:** replace flat geo-bias fields with a single geoBias option ([#2158](https://github.com/tomtom-internal/maps-sdk-js/issues/2158))
|
|
1467
2023
|
|
|
1468
2024
|
|
|
1469
2025
|
### Miscellaneous Chores
|
|
1470
2026
|
|
|
1471
|
-
* **release:** align package versions with the last shipped release ([#2167](https://github.com/tomtom-internal/maps-sdk-js/issues/2167))
|
|
2027
|
+
* **release:** align package versions with the last shipped release ([#2167](https://github.com/tomtom-internal/maps-sdk-js/issues/2167))
|
|
1472
2028
|
|
|
1473
2029
|
## [0.54.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.53.0...v0.54.0) (2026-09-17)
|
|
1474
2030
|
|
|
@@ -1479,16 +2035,16 @@
|
|
|
1479
2035
|
|
|
1480
2036
|
### Features
|
|
1481
2037
|
|
|
1482
|
-
* **examples:** withdraw claim-validation-service from search ([#2147](https://github.com/tomtom-internal/maps-sdk-js/issues/2147))
|
|
1483
|
-
* **map:** let custom place icons offset from their coordinate ([#2123](https://github.com/tomtom-internal/maps-sdk-js/issues/2123))
|
|
1484
|
-
* **routing:** phase 3 — land the response data v3 already returns ([#2077](https://github.com/tomtom-internal/maps-sdk-js/issues/2077))
|
|
1485
|
-
* **service:** support request cancellation via AbortSignal ([#2136](https://github.com/tomtom-internal/maps-sdk-js/issues/2136))
|
|
1486
|
-
* **skills:** add an opt-in skill that reports SDK friction to GitHub ([#2124](https://github.com/tomtom-internal/maps-sdk-js/issues/2124))
|
|
2038
|
+
* **examples:** withdraw claim-validation-service from search ([#2147](https://github.com/tomtom-internal/maps-sdk-js/issues/2147))
|
|
2039
|
+
* **map:** let custom place icons offset from their coordinate ([#2123](https://github.com/tomtom-internal/maps-sdk-js/issues/2123))
|
|
2040
|
+
* **routing:** phase 3 — land the response data v3 already returns ([#2077](https://github.com/tomtom-internal/maps-sdk-js/issues/2077))
|
|
2041
|
+
* **service:** support request cancellation via AbortSignal ([#2136](https://github.com/tomtom-internal/maps-sdk-js/issues/2136))
|
|
2042
|
+
* **skills:** add an opt-in skill that reports SDK friction to GitHub ([#2124](https://github.com/tomtom-internal/maps-sdk-js/issues/2124))
|
|
1487
2043
|
|
|
1488
2044
|
|
|
1489
2045
|
### Bug Fixes
|
|
1490
2046
|
|
|
1491
|
-
* place-customization crash when using custom icons ([#2134](https://github.com/tomtom-internal/maps-sdk-js/issues/2134))
|
|
2047
|
+
* place-customization crash when using custom icons ([#2134](https://github.com/tomtom-internal/maps-sdk-js/issues/2134))
|
|
1492
2048
|
|
|
1493
2049
|
## [0.53.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.52.0...v0.53.0) (2026-09-14)
|
|
1494
2050
|
|
|
@@ -1500,16 +2056,16 @@
|
|
|
1500
2056
|
|
|
1501
2057
|
### Features
|
|
1502
2058
|
|
|
1503
|
-
* **map:** add more dark theme styling ([#2108](https://github.com/tomtom-internal/maps-sdk-js/issues/2108))
|
|
1504
|
-
* **map:** styling GA phase 0 - resetState, awaited lifecycle, custom themes ([#2088](https://github.com/tomtom-internal/maps-sdk-js/issues/2088))
|
|
1505
|
-
* **services:** add routing request parameters the API accepts ([#2066](https://github.com/tomtom-internal/maps-sdk-js/issues/2066))
|
|
2059
|
+
* **map:** add more dark theme styling ([#2108](https://github.com/tomtom-internal/maps-sdk-js/issues/2108))
|
|
2060
|
+
* **map:** styling GA phase 0 - resetState, awaited lifecycle, custom themes ([#2088](https://github.com/tomtom-internal/maps-sdk-js/issues/2088))
|
|
2061
|
+
* **services:** add routing request parameters the API accepts ([#2066](https://github.com/tomtom-internal/maps-sdk-js/issues/2066))
|
|
1506
2062
|
|
|
1507
2063
|
|
|
1508
2064
|
### Bug Fixes
|
|
1509
2065
|
|
|
1510
|
-
* **examples:** pin the demos-proxy LLM base URL to the /v1 surface ([#2127](https://github.com/tomtom-internal/maps-sdk-js/issues/2127))
|
|
1511
|
-
* **map:** keep the map language across a clean style switch ([#2121](https://github.com/tomtom-internal/maps-sdk-js/issues/2121))
|
|
1512
|
-
* **skills:** correct four wrong APIs in the consumer skill docs ([#2116](https://github.com/tomtom-internal/maps-sdk-js/issues/2116))
|
|
2066
|
+
* **examples:** pin the demos-proxy LLM base URL to the /v1 surface ([#2127](https://github.com/tomtom-internal/maps-sdk-js/issues/2127))
|
|
2067
|
+
* **map:** keep the map language across a clean style switch ([#2121](https://github.com/tomtom-internal/maps-sdk-js/issues/2121))
|
|
2068
|
+
* **skills:** correct four wrong APIs in the consumer skill docs ([#2116](https://github.com/tomtom-internal/maps-sdk-js/issues/2116))
|
|
1513
2069
|
|
|
1514
2070
|
## [0.52.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.5...v0.52.0) (2026-09-09)
|
|
1515
2071
|
|
|
@@ -1524,64 +2080,64 @@
|
|
|
1524
2080
|
|
|
1525
2081
|
### Features
|
|
1526
2082
|
|
|
1527
|
-
* **examples:** claim validation intake example ([#2110](https://github.com/tomtom-internal/maps-sdk-js/issues/2110))
|
|
1528
|
-
* **map:** replace get() with create() on data-owned map modules ([#2058](https://github.com/tomtom-internal/maps-sdk-js/issues/2058))
|
|
1529
|
-
* **map:** scoped module events and per-map shared style modules (lsi-159) ([#2062](https://github.com/tomtom-internal/maps-sdk-js/issues/2062))
|
|
1530
|
-
* migrate rev-geocoding to Orbis v2 ([#2063](https://github.com/tomtom-internal/maps-sdk-js/issues/2063))
|
|
1531
|
-
* **routing:** drop the circle waypoint the API never had ([#2109](https://github.com/tomtom-internal/maps-sdk-js/issues/2109))
|
|
1532
|
-
* **services:** remove routing parameters the API does not support ([#2064](https://github.com/tomtom-internal/maps-sdk-js/issues/2064))
|
|
2083
|
+
* **examples:** claim validation intake example ([#2110](https://github.com/tomtom-internal/maps-sdk-js/issues/2110))
|
|
2084
|
+
* **map:** replace get() with create() on data-owned map modules ([#2058](https://github.com/tomtom-internal/maps-sdk-js/issues/2058))
|
|
2085
|
+
* **map:** scoped module events and per-map shared style modules (lsi-159) ([#2062](https://github.com/tomtom-internal/maps-sdk-js/issues/2062))
|
|
2086
|
+
* migrate rev-geocoding to Orbis v2 ([#2063](https://github.com/tomtom-internal/maps-sdk-js/issues/2063))
|
|
2087
|
+
* **routing:** drop the circle waypoint the API never had ([#2109](https://github.com/tomtom-internal/maps-sdk-js/issues/2109))
|
|
2088
|
+
* **services:** remove routing parameters the API does not support ([#2064](https://github.com/tomtom-internal/maps-sdk-js/issues/2064))
|
|
1533
2089
|
|
|
1534
2090
|
|
|
1535
2091
|
### Bug Fixes
|
|
1536
2092
|
|
|
1537
|
-
* **examples:** stack the searched EV pins above the viewport stations ([#2068](https://github.com/tomtom-internal/maps-sdk-js/issues/2068))
|
|
1538
|
-
* stop partial route updates clobbering config, give BYOD reset a contract ([#2097](https://github.com/tomtom-internal/maps-sdk-js/issues/2097))
|
|
2093
|
+
* **examples:** stack the searched EV pins above the viewport stations ([#2068](https://github.com/tomtom-internal/maps-sdk-js/issues/2068))
|
|
2094
|
+
* stop partial route updates clobbering config, give BYOD reset a contract ([#2097](https://github.com/tomtom-internal/maps-sdk-js/issues/2097))
|
|
1539
2095
|
|
|
1540
2096
|
## [0.51.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.4...v0.51.5) (2026-08-25)
|
|
1541
2097
|
|
|
1542
2098
|
|
|
1543
2099
|
### Bug Fixes
|
|
1544
2100
|
|
|
1545
|
-
* **docs:** correct stale APIs, dead links and drifted contributor docs ([#2053](https://github.com/tomtom-internal/maps-sdk-js/issues/2053))
|
|
2101
|
+
* **docs:** correct stale APIs, dead links and drifted contributor docs ([#2053](https://github.com/tomtom-internal/maps-sdk-js/issues/2053))
|
|
1546
2102
|
|
|
1547
2103
|
## [0.51.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.3...v0.51.4) (2026-08-24)
|
|
1548
2104
|
|
|
1549
2105
|
|
|
1550
2106
|
### Bug Fixes
|
|
1551
2107
|
|
|
1552
|
-
* **agent-toolkit:** range-check model coordinates and report plugin coverage ([#2048](https://github.com/tomtom-internal/maps-sdk-js/issues/2048))
|
|
1553
|
-
* **agent-toolkit:** range-check the sandbox fitOnMap bbox
|
|
2108
|
+
* **agent-toolkit:** range-check model coordinates and report plugin coverage ([#2048](https://github.com/tomtom-internal/maps-sdk-js/issues/2048))
|
|
2109
|
+
* **agent-toolkit:** range-check the sandbox fitOnMap bbox
|
|
1554
2110
|
|
|
1555
2111
|
## [0.51.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.2...v0.51.3) (2026-08-18)
|
|
1556
2112
|
|
|
1557
2113
|
|
|
1558
2114
|
### Features
|
|
1559
2115
|
|
|
1560
|
-
* add BaseMapModule appearance API and upgrade maplibre-gl to v6 ([#2035](https://github.com/tomtom-internal/maps-sdk-js/issues/2035))
|
|
1561
|
-
* attribute map traffic to the product embedding the SDK ([#2028](https://github.com/tomtom-internal/maps-sdk-js/issues/2028))
|
|
2116
|
+
* add BaseMapModule appearance API and upgrade maplibre-gl to v6 ([#2035](https://github.com/tomtom-internal/maps-sdk-js/issues/2035))
|
|
2117
|
+
* attribute map traffic to the product embedding the SDK ([#2028](https://github.com/tomtom-internal/maps-sdk-js/issues/2028))
|
|
1562
2118
|
|
|
1563
2119
|
## [0.51.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.1...v0.51.2) (2026-08-05)
|
|
1564
2120
|
|
|
1565
2121
|
|
|
1566
2122
|
### Bug Fixes
|
|
1567
2123
|
|
|
1568
|
-
* include dist files from examples ([#2031](https://github.com/tomtom-internal/maps-sdk-js/issues/2031))
|
|
2124
|
+
* include dist files from examples ([#2031](https://github.com/tomtom-internal/maps-sdk-js/issues/2031))
|
|
1569
2125
|
|
|
1570
2126
|
## [0.51.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.51.0...v0.51.1) (2026-08-04)
|
|
1571
2127
|
|
|
1572
2128
|
|
|
1573
2129
|
### Features
|
|
1574
2130
|
|
|
1575
|
-
* **examples:** move the traffic and site-selection agents to Las Vegas ([#2016](https://github.com/tomtom-internal/maps-sdk-js/issues/2016))
|
|
1576
|
-
* **examples:** record query and response text on AgentSuccess telemetry ([#2017](https://github.com/tomtom-internal/maps-sdk-js/issues/2017))
|
|
2131
|
+
* **examples:** move the traffic and site-selection agents to Las Vegas ([#2016](https://github.com/tomtom-internal/maps-sdk-js/issues/2016))
|
|
2132
|
+
* **examples:** record query and response text on AgentSuccess telemetry ([#2017](https://github.com/tomtom-internal/maps-sdk-js/issues/2017))
|
|
1577
2133
|
|
|
1578
2134
|
|
|
1579
2135
|
### Bug Fixes
|
|
1580
2136
|
|
|
1581
|
-
* **deps:** pin a pnpm release that can still be installed ([#2030](https://github.com/tomtom-internal/maps-sdk-js/issues/2030))
|
|
1582
|
-
* **deps:** upgrade react and react-dom to 19.2.8 ([#2021](https://github.com/tomtom-internal/maps-sdk-js/issues/2021))
|
|
1583
|
-
* geometry search playground empty query and unneeded promise.all ([#2029](https://github.com/tomtom-internal/maps-sdk-js/issues/2029))
|
|
1584
|
-
* location resolver selecting subdivision over parent city ([#2024](https://github.com/tomtom-internal/maps-sdk-js/issues/2024))
|
|
2137
|
+
* **deps:** pin a pnpm release that can still be installed ([#2030](https://github.com/tomtom-internal/maps-sdk-js/issues/2030))
|
|
2138
|
+
* **deps:** upgrade react and react-dom to 19.2.8 ([#2021](https://github.com/tomtom-internal/maps-sdk-js/issues/2021))
|
|
2139
|
+
* geometry search playground empty query and unneeded promise.all ([#2029](https://github.com/tomtom-internal/maps-sdk-js/issues/2029))
|
|
2140
|
+
* location resolver selecting subdivision over parent city ([#2024](https://github.com/tomtom-internal/maps-sdk-js/issues/2024))
|
|
1585
2141
|
|
|
1586
2142
|
## [0.51.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.4...v0.51.0) (2026-07-24)
|
|
1587
2143
|
|
|
@@ -1592,60 +2148,60 @@
|
|
|
1592
2148
|
|
|
1593
2149
|
### Features
|
|
1594
2150
|
|
|
1595
|
-
* **map:** improve base map layer groups ([#1966](https://github.com/tomtom-internal/maps-sdk-js/issues/1966))
|
|
2151
|
+
* **map:** improve base map layer groups ([#1966](https://github.com/tomtom-internal/maps-sdk-js/issues/1966))
|
|
1596
2152
|
|
|
1597
2153
|
|
|
1598
2154
|
### Bug Fixes
|
|
1599
2155
|
|
|
1600
|
-
* **agent-toolkit:** surface reverse-geocode no-match as an error ([#1995](https://github.com/tomtom-internal/maps-sdk-js/issues/1995))
|
|
1601
|
-
* chat UX polish, whitespace hex rendering, entry-id collision in toolkit ([#1999](https://github.com/tomtom-internal/maps-sdk-js/issues/1999))
|
|
1602
|
-
* **landmarks-3d:** render POIs on top of 3D landmark meshes ([#2011](https://github.com/tomtom-internal/maps-sdk-js/issues/2011))
|
|
2156
|
+
* **agent-toolkit:** surface reverse-geocode no-match as an error ([#1995](https://github.com/tomtom-internal/maps-sdk-js/issues/1995))
|
|
2157
|
+
* chat UX polish, whitespace hex rendering, entry-id collision in toolkit ([#1999](https://github.com/tomtom-internal/maps-sdk-js/issues/1999))
|
|
2158
|
+
* **landmarks-3d:** render POIs on top of 3D landmark meshes ([#2011](https://github.com/tomtom-internal/maps-sdk-js/issues/2011))
|
|
1603
2159
|
|
|
1604
2160
|
## [0.50.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.3...v0.50.4) (2026-07-09)
|
|
1605
2161
|
|
|
1606
2162
|
|
|
1607
2163
|
### Bug Fixes
|
|
1608
2164
|
|
|
1609
|
-
* **map:** guard SourceWithLayers against a removed map ([#1985](https://github.com/tomtom-internal/maps-sdk-js/issues/1985))
|
|
2165
|
+
* **map:** guard SourceWithLayers against a removed map ([#1985](https://github.com/tomtom-internal/maps-sdk-js/issues/1985))
|
|
1610
2166
|
|
|
1611
2167
|
## [0.50.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.2...v0.50.3) (2026-07-08)
|
|
1612
2168
|
|
|
1613
2169
|
|
|
1614
2170
|
### Bug Fixes
|
|
1615
2171
|
|
|
1616
|
-
* **examples:** lazy-load App Insights in traffic agent to fix sandpack ([#1982](https://github.com/tomtom-internal/maps-sdk-js/issues/1982))
|
|
2172
|
+
* **examples:** lazy-load App Insights in traffic agent to fix sandpack ([#1982](https://github.com/tomtom-internal/maps-sdk-js/issues/1982))
|
|
1617
2173
|
|
|
1618
2174
|
## [0.50.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.1...v0.50.2) (2026-07-07)
|
|
1619
2175
|
|
|
1620
2176
|
|
|
1621
2177
|
### Features
|
|
1622
2178
|
|
|
1623
|
-
* **examples:** add byod district prompts and per-district traffic monitoring ([#1978](https://github.com/tomtom-internal/maps-sdk-js/issues/1978))
|
|
1624
|
-
* **examples:** gate site-selection household behind the experimental flag ([#1979](https://github.com/tomtom-internal/maps-sdk-js/issues/1979))
|
|
1625
|
-
* **examples:** prioritize agent-setup files in map agent Sandpack tabs ([#1961](https://github.com/tomtom-internal/maps-sdk-js/issues/1961))
|
|
2179
|
+
* **examples:** add byod district prompts and per-district traffic monitoring ([#1978](https://github.com/tomtom-internal/maps-sdk-js/issues/1978))
|
|
2180
|
+
* **examples:** gate site-selection household behind the experimental flag ([#1979](https://github.com/tomtom-internal/maps-sdk-js/issues/1979))
|
|
2181
|
+
* **examples:** prioritize agent-setup files in map agent Sandpack tabs ([#1961](https://github.com/tomtom-internal/maps-sdk-js/issues/1961))
|
|
1626
2182
|
|
|
1627
2183
|
|
|
1628
2184
|
### Bug Fixes
|
|
1629
2185
|
|
|
1630
|
-
* **agent-toolkit:** resolve routing waypoints by place id or entry id ([#1974](https://github.com/tomtom-internal/maps-sdk-js/issues/1974))
|
|
1631
|
-
* **agent-toolkit:** ungate scope and cross kind schemas ([#1977](https://github.com/tomtom-internal/maps-sdk-js/issues/1977))
|
|
1632
|
-
* allow for an array of inputs with tools that use the progress bar ([#1975](https://github.com/tomtom-internal/maps-sdk-js/issues/1975))
|
|
1633
|
-
* **examples:** example titles + jam detail panel design fixes ([#1980](https://github.com/tomtom-internal/maps-sdk-js/issues/1980))
|
|
1634
|
-
* **examples:** polish clarify wizard survey UX and hover states ([#1971](https://github.com/tomtom-internal/maps-sdk-js/issues/1971))
|
|
1635
|
-
* **examples:** scroll chat when hovering the resize handle ([#1972](https://github.com/tomtom-internal/maps-sdk-js/issues/1972))
|
|
1636
|
-
* **site-selection:** panel polish + BYOD titles, colour & containment ([#1973](https://github.com/tomtom-internal/maps-sdk-js/issues/1973))
|
|
2186
|
+
* **agent-toolkit:** resolve routing waypoints by place id or entry id ([#1974](https://github.com/tomtom-internal/maps-sdk-js/issues/1974))
|
|
2187
|
+
* **agent-toolkit:** ungate scope and cross kind schemas ([#1977](https://github.com/tomtom-internal/maps-sdk-js/issues/1977))
|
|
2188
|
+
* allow for an array of inputs with tools that use the progress bar ([#1975](https://github.com/tomtom-internal/maps-sdk-js/issues/1975))
|
|
2189
|
+
* **examples:** example titles + jam detail panel design fixes ([#1980](https://github.com/tomtom-internal/maps-sdk-js/issues/1980))
|
|
2190
|
+
* **examples:** polish clarify wizard survey UX and hover states ([#1971](https://github.com/tomtom-internal/maps-sdk-js/issues/1971))
|
|
2191
|
+
* **examples:** scroll chat when hovering the resize handle ([#1972](https://github.com/tomtom-internal/maps-sdk-js/issues/1972))
|
|
2192
|
+
* **site-selection:** panel polish + BYOD titles, colour & containment ([#1973](https://github.com/tomtom-internal/maps-sdk-js/issues/1973))
|
|
1637
2193
|
|
|
1638
2194
|
|
|
1639
2195
|
### Performance Improvements
|
|
1640
2196
|
|
|
1641
|
-
* move scenario-tests to main pushes ([#1968](https://github.com/tomtom-internal/maps-sdk-js/issues/1968))
|
|
2197
|
+
* move scenario-tests to main pushes ([#1968](https://github.com/tomtom-internal/maps-sdk-js/issues/1968))
|
|
1642
2198
|
|
|
1643
2199
|
## [0.50.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.50.0...v0.50.1) (2026-07-03)
|
|
1644
2200
|
|
|
1645
2201
|
|
|
1646
2202
|
### Bug Fixes
|
|
1647
2203
|
|
|
1648
|
-
* **agent-toolkit:** unblock npm publishing of the plugin ([#1962](https://github.com/tomtom-internal/maps-sdk-js/issues/1962))
|
|
2204
|
+
* **agent-toolkit:** unblock npm publishing of the plugin ([#1962](https://github.com/tomtom-internal/maps-sdk-js/issues/1962))
|
|
1649
2205
|
|
|
1650
2206
|
## [0.50.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.49.1...v0.50.0) (2026-07-03)
|
|
1651
2207
|
|
|
@@ -1656,51 +2212,51 @@
|
|
|
1656
2212
|
|
|
1657
2213
|
### Features
|
|
1658
2214
|
|
|
1659
|
-
* agent eval integration ([#1873](https://github.com/tomtom-internal/maps-sdk-js/issues/1873))
|
|
1660
|
-
* **agent-eval:** llm judge with grounding veto and per-agent token monitoring ([#1912](https://github.com/tomtom-internal/maps-sdk-js/issues/1912))
|
|
1661
|
-
* **examples:** agent telemetry and Azure Monitor observability dashboard ([#1936](https://github.com/tomtom-internal/maps-sdk-js/issues/1936))
|
|
1662
|
-
* **examples:** berlin-based starter prompts ([#1946](https://github.com/tomtom-internal/maps-sdk-js/issues/1946))
|
|
1663
|
-
* **examples:** make site-selection agent state-driven + BYOD-capable ([#1932](https://github.com/tomtom-internal/maps-sdk-js/issues/1932))
|
|
1664
|
-
* **map:** expand geometry line config ([#1916](https://github.com/tomtom-internal/maps-sdk-js/issues/1916))
|
|
1665
|
-
* **map:** granular fill/line beforeLayerConfig + geometry-config-playground ([#1952](https://github.com/tomtom-internal/maps-sdk-js/issues/1952))
|
|
1666
|
-
* **site-selection:** align with latest ux designs ([#1950](https://github.com/tomtom-internal/maps-sdk-js/issues/1950))
|
|
1667
|
-
* **site-selection:** let the LLM name the BYOD label field from the schema ([#1958](https://github.com/tomtom-internal/maps-sdk-js/issues/1958))
|
|
1668
|
-
* **site-selection:** polish widget + map visuals to latest ux designs ([#1959](https://github.com/tomtom-internal/maps-sdk-js/issues/1959))
|
|
2215
|
+
* agent eval integration ([#1873](https://github.com/tomtom-internal/maps-sdk-js/issues/1873))
|
|
2216
|
+
* **agent-eval:** llm judge with grounding veto and per-agent token monitoring ([#1912](https://github.com/tomtom-internal/maps-sdk-js/issues/1912))
|
|
2217
|
+
* **examples:** agent telemetry and Azure Monitor observability dashboard ([#1936](https://github.com/tomtom-internal/maps-sdk-js/issues/1936))
|
|
2218
|
+
* **examples:** berlin-based starter prompts ([#1946](https://github.com/tomtom-internal/maps-sdk-js/issues/1946))
|
|
2219
|
+
* **examples:** make site-selection agent state-driven + BYOD-capable ([#1932](https://github.com/tomtom-internal/maps-sdk-js/issues/1932))
|
|
2220
|
+
* **map:** expand geometry line config ([#1916](https://github.com/tomtom-internal/maps-sdk-js/issues/1916))
|
|
2221
|
+
* **map:** granular fill/line beforeLayerConfig + geometry-config-playground ([#1952](https://github.com/tomtom-internal/maps-sdk-js/issues/1952))
|
|
2222
|
+
* **site-selection:** align with latest ux designs ([#1950](https://github.com/tomtom-internal/maps-sdk-js/issues/1950))
|
|
2223
|
+
* **site-selection:** let the LLM name the BYOD label field from the schema ([#1958](https://github.com/tomtom-internal/maps-sdk-js/issues/1958))
|
|
2224
|
+
* **site-selection:** polish widget + map visuals to latest ux designs ([#1959](https://github.com/tomtom-internal/maps-sdk-js/issues/1959))
|
|
1669
2225
|
|
|
1670
2226
|
|
|
1671
2227
|
### Bug Fixes
|
|
1672
2228
|
|
|
1673
|
-
* **agent-toolkit:** accept places entry ids in where.placeIds ([#1935](https://github.com/tomtom-internal/maps-sdk-js/issues/1935))
|
|
1674
|
-
* **agent-toolkit:** guard setMapStandardStyle against accidental style changes ([#1951](https://github.com/tomtom-internal/maps-sdk-js/issues/1951))
|
|
1675
|
-
* **agent-toolkit:** prefer dedicated tools over the MapLibre escape hatch ([#1954](https://github.com/tomtom-internal/maps-sdk-js/issues/1954))
|
|
1676
|
-
* **agent-toolkit:** validate processData places and trace derived ids ([#1949](https://github.com/tomtom-internal/maps-sdk-js/issues/1949))
|
|
1677
|
-
* **examples:** align agent chat UI across example apps ([#1930](https://github.com/tomtom-internal/maps-sdk-js/issues/1930))
|
|
1678
|
-
* **examples:** make agent telemetry optional in local dev ([#1960](https://github.com/tomtom-internal/maps-sdk-js/issues/1960))
|
|
1679
|
-
* **examples:** toolCall Figma polish + route corridor colors ([#1947](https://github.com/tomtom-internal/maps-sdk-js/issues/1947))
|
|
1680
|
-
* **landmarks-3d:** send session credentials so tiles load behind a proxy ([#1943](https://github.com/tomtom-internal/maps-sdk-js/issues/1943))
|
|
1681
|
-
* **site-selection:** render all parking points, add discoverPlaces ([#1948](https://github.com/tomtom-internal/maps-sdk-js/issues/1948))
|
|
2229
|
+
* **agent-toolkit:** accept places entry ids in where.placeIds ([#1935](https://github.com/tomtom-internal/maps-sdk-js/issues/1935))
|
|
2230
|
+
* **agent-toolkit:** guard setMapStandardStyle against accidental style changes ([#1951](https://github.com/tomtom-internal/maps-sdk-js/issues/1951))
|
|
2231
|
+
* **agent-toolkit:** prefer dedicated tools over the MapLibre escape hatch ([#1954](https://github.com/tomtom-internal/maps-sdk-js/issues/1954))
|
|
2232
|
+
* **agent-toolkit:** validate processData places and trace derived ids ([#1949](https://github.com/tomtom-internal/maps-sdk-js/issues/1949))
|
|
2233
|
+
* **examples:** align agent chat UI across example apps ([#1930](https://github.com/tomtom-internal/maps-sdk-js/issues/1930))
|
|
2234
|
+
* **examples:** make agent telemetry optional in local dev ([#1960](https://github.com/tomtom-internal/maps-sdk-js/issues/1960))
|
|
2235
|
+
* **examples:** toolCall Figma polish + route corridor colors ([#1947](https://github.com/tomtom-internal/maps-sdk-js/issues/1947))
|
|
2236
|
+
* **landmarks-3d:** send session credentials so tiles load behind a proxy ([#1943](https://github.com/tomtom-internal/maps-sdk-js/issues/1943))
|
|
2237
|
+
* **site-selection:** render all parking points, add discoverPlaces ([#1948](https://github.com/tomtom-internal/maps-sdk-js/issues/1948))
|
|
1682
2238
|
|
|
1683
2239
|
## [0.49.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.49.0...v0.49.1) (2026-06-30)
|
|
1684
2240
|
|
|
1685
2241
|
|
|
1686
2242
|
### Features
|
|
1687
2243
|
|
|
1688
|
-
* **agent-toolkit:** expose sandbox data-tool inputs as per-entry records only ([#1890](https://github.com/tomtom-internal/maps-sdk-js/issues/1890))
|
|
1689
|
-
* **examples:** align chat agent UI with the traffic agent Figma design ([#1911](https://github.com/tomtom-internal/maps-sdk-js/issues/1911))
|
|
1690
|
-
* **examples:** align traffic agent UI with Figma + playbook tokens ([#1902](https://github.com/tomtom-internal/maps-sdk-js/issues/1902))
|
|
1691
|
-
* **examples:** group tool calls under a 'Used N tools' pill ([#1918](https://github.com/tomtom-internal/maps-sdk-js/issues/1918))
|
|
1692
|
-
* **examples:** polish traffic-agent prose and fix null-driven map errors ([#1927](https://github.com/tomtom-internal/maps-sdk-js/issues/1927))
|
|
1693
|
-
* **examples:** render clarifyIntent as an interactive survey form ([#1919](https://github.com/tomtom-internal/maps-sdk-js/issues/1919))
|
|
1694
|
-
* **examples:** site selection implementation ([#1878](https://github.com/tomtom-internal/maps-sdk-js/issues/1878))
|
|
1695
|
-
* **examples:** unify the agent example UI + clarifyIntent survey wizard ([#1923](https://github.com/tomtom-internal/maps-sdk-js/issues/1923))
|
|
1696
|
-
* **plugins:** add landmarks-3d plugin for Orbis 3D Landmarks ([#1772](https://github.com/tomtom-internal/maps-sdk-js/issues/1772))
|
|
1697
|
-
* **toolkit:** add clarifyIntent tool and add alwaysActive flag to tools ([#1883](https://github.com/tomtom-internal/maps-sdk-js/issues/1883))
|
|
1698
|
-
* **traffic-agent:** watched-area highlight, grouped Event tracker, summary follows focus ([#1914](https://github.com/tomtom-internal/maps-sdk-js/issues/1914))
|
|
2244
|
+
* **agent-toolkit:** expose sandbox data-tool inputs as per-entry records only ([#1890](https://github.com/tomtom-internal/maps-sdk-js/issues/1890))
|
|
2245
|
+
* **examples:** align chat agent UI with the traffic agent Figma design ([#1911](https://github.com/tomtom-internal/maps-sdk-js/issues/1911))
|
|
2246
|
+
* **examples:** align traffic agent UI with Figma + playbook tokens ([#1902](https://github.com/tomtom-internal/maps-sdk-js/issues/1902))
|
|
2247
|
+
* **examples:** group tool calls under a 'Used N tools' pill ([#1918](https://github.com/tomtom-internal/maps-sdk-js/issues/1918))
|
|
2248
|
+
* **examples:** polish traffic-agent prose and fix null-driven map errors ([#1927](https://github.com/tomtom-internal/maps-sdk-js/issues/1927))
|
|
2249
|
+
* **examples:** render clarifyIntent as an interactive survey form ([#1919](https://github.com/tomtom-internal/maps-sdk-js/issues/1919))
|
|
2250
|
+
* **examples:** site selection implementation ([#1878](https://github.com/tomtom-internal/maps-sdk-js/issues/1878))
|
|
2251
|
+
* **examples:** unify the agent example UI + clarifyIntent survey wizard ([#1923](https://github.com/tomtom-internal/maps-sdk-js/issues/1923))
|
|
2252
|
+
* **plugins:** add landmarks-3d plugin for Orbis 3D Landmarks ([#1772](https://github.com/tomtom-internal/maps-sdk-js/issues/1772))
|
|
2253
|
+
* **toolkit:** add clarifyIntent tool and add alwaysActive flag to tools ([#1883](https://github.com/tomtom-internal/maps-sdk-js/issues/1883))
|
|
2254
|
+
* **traffic-agent:** watched-area highlight, grouped Event tracker, summary follows focus ([#1914](https://github.com/tomtom-internal/maps-sdk-js/issues/1914))
|
|
1699
2255
|
|
|
1700
2256
|
|
|
1701
2257
|
### Bug Fixes
|
|
1702
2258
|
|
|
1703
|
-
* **agent-toolkit:** register an empty entry for zero-incident results ([#1924](https://github.com/tomtom-internal/maps-sdk-js/issues/1924))
|
|
2259
|
+
* **agent-toolkit:** register an empty entry for zero-incident results ([#1924](https://github.com/tomtom-internal/maps-sdk-js/issues/1924))
|
|
1704
2260
|
|
|
1705
2261
|
## [0.49.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.3...v0.49.0) (2026-06-24)
|
|
1706
2262
|
|
|
@@ -1713,66 +2269,66 @@
|
|
|
1713
2269
|
|
|
1714
2270
|
### Features
|
|
1715
2271
|
|
|
1716
|
-
* agent-eval framework Initial MVP baseline ([#1842](https://github.com/tomtom-internal/maps-sdk-js/issues/1842))
|
|
1717
|
-
* **agent-toolkit:** `resolvedAreas` — surface where every query resolved ([#1863](https://github.com/tomtom-internal/maps-sdk-js/issues/1863))
|
|
1718
|
-
* **agent-toolkit:** analysis and incidents clustering improvements ([#1851](https://github.com/tomtom-internal/maps-sdk-js/issues/1851))
|
|
1719
|
-
* **agent-toolkit:** app-supplied URL-validator hook for addByodSource ([#1855](https://github.com/tomtom-internal/maps-sdk-js/issues/1855))
|
|
1720
|
-
* **agent-toolkit:** fold incident monitoring into getTrafficIncidents ([#1847](https://github.com/tomtom-internal/maps-sdk-js/issues/1847))
|
|
1721
|
-
* **agent-toolkit:** generic trackers on the analyses registry ([#1876](https://github.com/tomtom-internal/maps-sdk-js/issues/1876))
|
|
1722
|
-
* **agent-toolkit:** keep untrusted BYOD free-text out of model context ([#1854](https://github.com/tomtom-internal/maps-sdk-js/issues/1854))
|
|
1723
|
-
* **agent-toolkit:** monitor routes — periodic live-traffic recalculation ([#1869](https://github.com/tomtom-internal/maps-sdk-js/issues/1869))
|
|
1724
|
-
* **agent-toolkit:** sandbox data-tool execution in a browser iframe-worker ([#1857](https://github.com/tomtom-internal/maps-sdk-js/issues/1857))
|
|
1725
|
-
* **agent-toolkit:** split and compact the base system prompt ([#1884](https://github.com/tomtom-internal/maps-sdk-js/issues/1884))
|
|
1726
|
-
* **agent-toolkit:** unify where-resolution ([#1834](https://github.com/tomtom-internal/maps-sdk-js/issues/1834))
|
|
1727
|
-
* **proxy:** bundle proxy config into static-html examples ([#1867](https://github.com/tomtom-internal/maps-sdk-js/issues/1867))
|
|
1728
|
-
* **services:** forward common service params ev availability util service ([#1888](https://github.com/tomtom-internal/maps-sdk-js/issues/1888))
|
|
1729
|
-
* **traffic, map-display:** migrate to Orbis v2 GA ([#1829](https://github.com/tomtom-internal/maps-sdk-js/issues/1829))
|
|
2272
|
+
* agent-eval framework Initial MVP baseline ([#1842](https://github.com/tomtom-internal/maps-sdk-js/issues/1842))
|
|
2273
|
+
* **agent-toolkit:** `resolvedAreas` — surface where every query resolved ([#1863](https://github.com/tomtom-internal/maps-sdk-js/issues/1863))
|
|
2274
|
+
* **agent-toolkit:** analysis and incidents clustering improvements ([#1851](https://github.com/tomtom-internal/maps-sdk-js/issues/1851))
|
|
2275
|
+
* **agent-toolkit:** app-supplied URL-validator hook for addByodSource ([#1855](https://github.com/tomtom-internal/maps-sdk-js/issues/1855))
|
|
2276
|
+
* **agent-toolkit:** fold incident monitoring into getTrafficIncidents ([#1847](https://github.com/tomtom-internal/maps-sdk-js/issues/1847))
|
|
2277
|
+
* **agent-toolkit:** generic trackers on the analyses registry ([#1876](https://github.com/tomtom-internal/maps-sdk-js/issues/1876))
|
|
2278
|
+
* **agent-toolkit:** keep untrusted BYOD free-text out of model context ([#1854](https://github.com/tomtom-internal/maps-sdk-js/issues/1854))
|
|
2279
|
+
* **agent-toolkit:** monitor routes — periodic live-traffic recalculation ([#1869](https://github.com/tomtom-internal/maps-sdk-js/issues/1869))
|
|
2280
|
+
* **agent-toolkit:** sandbox data-tool execution in a browser iframe-worker ([#1857](https://github.com/tomtom-internal/maps-sdk-js/issues/1857))
|
|
2281
|
+
* **agent-toolkit:** split and compact the base system prompt ([#1884](https://github.com/tomtom-internal/maps-sdk-js/issues/1884))
|
|
2282
|
+
* **agent-toolkit:** unify where-resolution ([#1834](https://github.com/tomtom-internal/maps-sdk-js/issues/1834))
|
|
2283
|
+
* **proxy:** bundle proxy config into static-html examples ([#1867](https://github.com/tomtom-internal/maps-sdk-js/issues/1867))
|
|
2284
|
+
* **services:** forward common service params ev availability util service ([#1888](https://github.com/tomtom-internal/maps-sdk-js/issues/1888))
|
|
2285
|
+
* **traffic, map-display:** migrate to Orbis v2 GA ([#1829](https://github.com/tomtom-internal/maps-sdk-js/issues/1829))
|
|
1730
2286
|
|
|
1731
2287
|
|
|
1732
2288
|
### Bug Fixes
|
|
1733
2289
|
|
|
1734
|
-
* **examples:** inject multi-chunk plugin builds correctly for Sandpack ([#1871](https://github.com/tomtom-internal/maps-sdk-js/issues/1871))
|
|
1735
|
-
* **examples:** keep illegal-request rejection rule in traffic agent prompt ([#1891](https://github.com/tomtom-internal/maps-sdk-js/issues/1891))
|
|
1736
|
-
* **examples:** re-enable demo-BFF proxy bootstrap ([#1835](https://github.com/tomtom-internal/maps-sdk-js/issues/1835))
|
|
1737
|
-
* **examples:** unblock CI lint — suppress noUnusedVariables ([#1861](https://github.com/tomtom-internal/maps-sdk-js/issues/1861))
|
|
1738
|
-
* **map:** style-change handlers return an unsubscribe disposer ([#1870](https://github.com/tomtom-internal/maps-sdk-js/issues/1870))
|
|
1739
|
-
* **skill:** trim tomtom-maps-sdk-js description under 1024-char limit ([#1838](https://github.com/tomtom-internal/maps-sdk-js/issues/1838))
|
|
2290
|
+
* **examples:** inject multi-chunk plugin builds correctly for Sandpack ([#1871](https://github.com/tomtom-internal/maps-sdk-js/issues/1871))
|
|
2291
|
+
* **examples:** keep illegal-request rejection rule in traffic agent prompt ([#1891](https://github.com/tomtom-internal/maps-sdk-js/issues/1891))
|
|
2292
|
+
* **examples:** re-enable demo-BFF proxy bootstrap ([#1835](https://github.com/tomtom-internal/maps-sdk-js/issues/1835))
|
|
2293
|
+
* **examples:** unblock CI lint — suppress noUnusedVariables ([#1861](https://github.com/tomtom-internal/maps-sdk-js/issues/1861))
|
|
2294
|
+
* **map:** style-change handlers return an unsubscribe disposer ([#1870](https://github.com/tomtom-internal/maps-sdk-js/issues/1870))
|
|
2295
|
+
* **skill:** trim tomtom-maps-sdk-js description under 1024-char limit ([#1838](https://github.com/tomtom-internal/maps-sdk-js/issues/1838))
|
|
1740
2296
|
|
|
1741
2297
|
|
|
1742
2298
|
### Reverts
|
|
1743
2299
|
|
|
1744
|
-
* 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))
|
|
2300
|
+
* 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))
|
|
1745
2301
|
|
|
1746
2302
|
|
|
1747
2303
|
### Code Refactoring
|
|
1748
2304
|
|
|
1749
|
-
* **agent-toolkit:** consolidate per-kind recall tools into recallState ([#1868](https://github.com/tomtom-internal/maps-sdk-js/issues/1868))
|
|
2305
|
+
* **agent-toolkit:** consolidate per-kind recall tools into recallState ([#1868](https://github.com/tomtom-internal/maps-sdk-js/issues/1868))
|
|
1750
2306
|
|
|
1751
2307
|
## [0.48.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.2...v0.48.3) (2026-06-10)
|
|
1752
2308
|
|
|
1753
2309
|
|
|
1754
2310
|
### Features
|
|
1755
2311
|
|
|
1756
|
-
* **routing:** migrate routing service to OrbisV3 API ([#1784](https://github.com/tomtom-internal/maps-sdk-js/issues/1784))
|
|
2312
|
+
* **routing:** migrate routing service to OrbisV3 API ([#1784](https://github.com/tomtom-internal/maps-sdk-js/issues/1784))
|
|
1757
2313
|
|
|
1758
2314
|
## [0.48.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.1...v0.48.2) (2026-06-09)
|
|
1759
2315
|
|
|
1760
2316
|
|
|
1761
2317
|
### Bug Fixes
|
|
1762
2318
|
|
|
1763
|
-
* remove sdk dep in examples ([#1832](https://github.com/tomtom-internal/maps-sdk-js/issues/1832))
|
|
2319
|
+
* remove sdk dep in examples ([#1832](https://github.com/tomtom-internal/maps-sdk-js/issues/1832))
|
|
1764
2320
|
|
|
1765
2321
|
## [0.48.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.48.0...v0.48.1) (2026-06-09)
|
|
1766
2322
|
|
|
1767
2323
|
|
|
1768
2324
|
### Features
|
|
1769
2325
|
|
|
1770
|
-
* **agent-toolkit:** deterministic DBSCAN clustering tool
|
|
2326
|
+
* **agent-toolkit:** deterministic DBSCAN clustering tool
|
|
1771
2327
|
|
|
1772
2328
|
|
|
1773
2329
|
### Bug Fixes
|
|
1774
2330
|
|
|
1775
|
-
* pin assistant-ui ([#1828](https://github.com/tomtom-internal/maps-sdk-js/issues/1828))
|
|
2331
|
+
* pin assistant-ui ([#1828](https://github.com/tomtom-internal/maps-sdk-js/issues/1828))
|
|
1776
2332
|
|
|
1777
2333
|
## [0.48.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.9...v0.48.0) (2026-06-05)
|
|
1778
2334
|
|
|
@@ -1784,119 +2340,119 @@
|
|
|
1784
2340
|
|
|
1785
2341
|
### Features
|
|
1786
2342
|
|
|
1787
|
-
* **agent-toolkit:** byod improvements ([#1816](https://github.com/tomtom-internal/maps-sdk-js/issues/1816))
|
|
1788
|
-
* **ci:** wire up Docs Portal PR preview environments ([#1812](https://github.com/tomtom-internal/maps-sdk-js/issues/1812))
|
|
1789
|
-
* **events:** scope + dedupe allEventFeatures, typed substitution
|
|
1790
|
-
* sdk proxy mode for demo-BFF ([#1810](https://github.com/tomtom-internal/maps-sdk-js/issues/1810))
|
|
2343
|
+
* **agent-toolkit:** byod improvements ([#1816](https://github.com/tomtom-internal/maps-sdk-js/issues/1816))
|
|
2344
|
+
* **ci:** wire up Docs Portal PR preview environments ([#1812](https://github.com/tomtom-internal/maps-sdk-js/issues/1812))
|
|
2345
|
+
* **events:** scope + dedupe allEventFeatures, typed substitution
|
|
2346
|
+
* sdk proxy mode for demo-BFF ([#1810](https://github.com/tomtom-internal/maps-sdk-js/issues/1810))
|
|
1791
2347
|
|
|
1792
2348
|
|
|
1793
2349
|
### Bug Fixes
|
|
1794
2350
|
|
|
1795
|
-
* **agent-toolkit:** add missing [@group](https://github.com/group) tags on exported types ([#1803](https://github.com/tomtom-internal/maps-sdk-js/issues/1803))
|
|
1796
|
-
* **agent-toolkit:** public docs cleanup — links, system-prompt guidance, internal refs ([#1804](https://github.com/tomtom-internal/maps-sdk-js/issues/1804))
|
|
1797
|
-
* proxy mode sdk ([#1815](https://github.com/tomtom-internal/maps-sdk-js/issues/1815))
|
|
2351
|
+
* **agent-toolkit:** add missing [@group](https://github.com/group) tags on exported types ([#1803](https://github.com/tomtom-internal/maps-sdk-js/issues/1803))
|
|
2352
|
+
* **agent-toolkit:** public docs cleanup — links, system-prompt guidance, internal refs ([#1804](https://github.com/tomtom-internal/maps-sdk-js/issues/1804))
|
|
2353
|
+
* proxy mode sdk ([#1815](https://github.com/tomtom-internal/maps-sdk-js/issues/1815))
|
|
1798
2354
|
|
|
1799
2355
|
## [0.47.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.8...v0.47.9) (2026-05-22)
|
|
1800
2356
|
|
|
1801
2357
|
|
|
1802
2358
|
### Bug Fixes
|
|
1803
2359
|
|
|
1804
|
-
* d2 diagram in documentation
|
|
1805
|
-
* d2 diagram in documentation
|
|
2360
|
+
* d2 diagram in documentation
|
|
2361
|
+
* d2 diagram in documentation
|
|
1806
2362
|
|
|
1807
2363
|
## [0.47.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.7...v0.47.8) (2026-05-22)
|
|
1808
2364
|
|
|
1809
2365
|
|
|
1810
2366
|
### Features
|
|
1811
2367
|
|
|
1812
|
-
* **agent-toolkit:** expand plugin documentation ([#1793](https://github.com/tomtom-internal/maps-sdk-js/issues/1793))
|
|
2368
|
+
* **agent-toolkit:** expand plugin documentation ([#1793](https://github.com/tomtom-internal/maps-sdk-js/issues/1793))
|
|
1813
2369
|
|
|
1814
2370
|
|
|
1815
2371
|
### Bug Fixes
|
|
1816
2372
|
|
|
1817
|
-
* **agent-toolkit:** split scenario tests into sanity / full suites ([#1798](https://github.com/tomtom-internal/maps-sdk-js/issues/1798))
|
|
1818
|
-
* **agent-toolkit:** stabilize locate-place scenario prompt ([#1795](https://github.com/tomtom-internal/maps-sdk-js/issues/1795))
|
|
2373
|
+
* **agent-toolkit:** split scenario tests into sanity / full suites ([#1798](https://github.com/tomtom-internal/maps-sdk-js/issues/1798))
|
|
2374
|
+
* **agent-toolkit:** stabilize locate-place scenario prompt ([#1795](https://github.com/tomtom-internal/maps-sdk-js/issues/1795))
|
|
1819
2375
|
|
|
1820
2376
|
## [0.47.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.6...v0.47.7) (2026-05-21)
|
|
1821
2377
|
|
|
1822
2378
|
|
|
1823
2379
|
### Features
|
|
1824
2380
|
|
|
1825
|
-
* code generation tools with updated docs
|
|
1826
|
-
* upgrade SDK agent toolkit and fix release process ([#1782](https://github.com/tomtom-internal/maps-sdk-js/issues/1782))
|
|
2381
|
+
* code generation tools with updated docs
|
|
2382
|
+
* upgrade SDK agent toolkit and fix release process ([#1782](https://github.com/tomtom-internal/maps-sdk-js/issues/1782))
|
|
1827
2383
|
|
|
1828
2384
|
|
|
1829
2385
|
### Bug Fixes
|
|
1830
2386
|
|
|
1831
|
-
* **agent-toolkit:** point README docs link at overview page
|
|
1832
|
-
* engineering guideline updates for agent toolkit
|
|
1833
|
-
* tool doc updates for agent toolkit
|
|
2387
|
+
* **agent-toolkit:** point README docs link at overview page
|
|
2388
|
+
* engineering guideline updates for agent toolkit
|
|
2389
|
+
* tool doc updates for agent toolkit
|
|
1834
2390
|
|
|
1835
2391
|
## [0.47.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.5...v0.47.6) (2026-05-15)
|
|
1836
2392
|
|
|
1837
2393
|
|
|
1838
2394
|
### Features
|
|
1839
2395
|
|
|
1840
|
-
* exploration search with area tags ([#1763](https://github.com/tomtom-internal/maps-sdk-js/issues/1763))
|
|
1841
|
-
* new custom geojson module in SDK ([#1771](https://github.com/tomtom-internal/maps-sdk-js/issues/1771))
|
|
2396
|
+
* exploration search with area tags ([#1763](https://github.com/tomtom-internal/maps-sdk-js/issues/1763))
|
|
2397
|
+
* new custom geojson module in SDK ([#1771](https://github.com/tomtom-internal/maps-sdk-js/issues/1771))
|
|
1842
2398
|
|
|
1843
2399
|
|
|
1844
2400
|
### Bug Fixes
|
|
1845
2401
|
|
|
1846
|
-
* agent toolkit place prompt fixes and clearing unnecessary modules ([#1773](https://github.com/tomtom-internal/maps-sdk-js/issues/1773))
|
|
2402
|
+
* agent toolkit place prompt fixes and clearing unnecessary modules ([#1773](https://github.com/tomtom-internal/maps-sdk-js/issues/1773))
|
|
1847
2403
|
|
|
1848
2404
|
## [0.47.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.4...v0.47.5) (2026-05-13)
|
|
1849
2405
|
|
|
1850
2406
|
|
|
1851
2407
|
### Features
|
|
1852
2408
|
|
|
1853
|
-
* migrate all map chat agent demos to tailwind ([#1764](https://github.com/tomtom-internal/maps-sdk-js/issues/1764))
|
|
2409
|
+
* migrate all map chat agent demos to tailwind ([#1764](https://github.com/tomtom-internal/maps-sdk-js/issues/1764))
|
|
1854
2410
|
|
|
1855
2411
|
|
|
1856
2412
|
### Bug Fixes
|
|
1857
2413
|
|
|
1858
|
-
* restore incident module on style change
|
|
1859
|
-
* updated a couple of schemas and bumped zod dependencies to ^4.4.3 ([#1757](https://github.com/tomtom-internal/maps-sdk-js/issues/1757))
|
|
2414
|
+
* restore incident module on style change
|
|
2415
|
+
* updated a couple of schemas and bumped zod dependencies to ^4.4.3 ([#1757](https://github.com/tomtom-internal/maps-sdk-js/issues/1757))
|
|
1860
2416
|
|
|
1861
2417
|
## [0.47.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.3...v0.47.4) (2026-05-12)
|
|
1862
2418
|
|
|
1863
2419
|
|
|
1864
2420
|
### Features
|
|
1865
2421
|
|
|
1866
|
-
* agent evaluation testing [LSI-285] ([#1747](https://github.com/tomtom-internal/maps-sdk-js/issues/1747))
|
|
2422
|
+
* agent evaluation testing [LSI-285] ([#1747](https://github.com/tomtom-internal/maps-sdk-js/issues/1747))
|
|
1867
2423
|
|
|
1868
2424
|
|
|
1869
2425
|
### Bug Fixes
|
|
1870
2426
|
|
|
1871
|
-
* add missing traffic incidents geojson module into agent coding skills
|
|
1872
|
-
* upgrade and fix deps ([#1762](https://github.com/tomtom-internal/maps-sdk-js/issues/1762))
|
|
2427
|
+
* add missing traffic incidents geojson module into agent coding skills
|
|
2428
|
+
* upgrade and fix deps ([#1762](https://github.com/tomtom-internal/maps-sdk-js/issues/1762))
|
|
1873
2429
|
|
|
1874
2430
|
## [0.47.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.2...v0.47.3) (2026-05-11)
|
|
1875
2431
|
|
|
1876
2432
|
|
|
1877
2433
|
### Bug Fixes
|
|
1878
2434
|
|
|
1879
|
-
* example thumbnail reference
|
|
2435
|
+
* example thumbnail reference
|
|
1880
2436
|
|
|
1881
2437
|
## [0.47.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.1...v0.47.2) (2026-05-11)
|
|
1882
2438
|
|
|
1883
2439
|
|
|
1884
2440
|
### Bug Fixes
|
|
1885
2441
|
|
|
1886
|
-
* example thumbnail reference
|
|
2442
|
+
* example thumbnail reference
|
|
1887
2443
|
|
|
1888
2444
|
## [0.47.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.47.0...v0.47.1) (2026-05-11)
|
|
1889
2445
|
|
|
1890
2446
|
|
|
1891
2447
|
### Features
|
|
1892
2448
|
|
|
1893
|
-
* **agent-toolkit:** live traffic agent
|
|
1894
|
-
* **map:** TrafficIncidentOverlayModule
|
|
2449
|
+
* **agent-toolkit:** live traffic agent
|
|
2450
|
+
* **map:** TrafficIncidentOverlayModule
|
|
1895
2451
|
|
|
1896
2452
|
|
|
1897
2453
|
### Bug Fixes
|
|
1898
2454
|
|
|
1899
|
-
* **traffic-incident-details:** drop non-filterable iconCategory codes
|
|
2455
|
+
* **traffic-incident-details:** drop non-filterable iconCategory codes
|
|
1900
2456
|
|
|
1901
2457
|
## [0.47.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.13...v0.47.0) (2026-05-01)
|
|
1902
2458
|
|
|
@@ -1907,184 +2463,184 @@
|
|
|
1907
2463
|
|
|
1908
2464
|
### Features
|
|
1909
2465
|
|
|
1910
|
-
* add managePlaces tool and centralize places display state
|
|
1911
|
-
* add model name to header
|
|
1912
|
-
* expand deployment workflow to support multiple SDK demos
|
|
1913
|
-
* improve api reference types, adjust syntax for agent toolkit plugin, and improve agents.md
|
|
1914
|
-
* improvements in places module themes
|
|
2466
|
+
* add managePlaces tool and centralize places display state
|
|
2467
|
+
* add model name to header
|
|
2468
|
+
* expand deployment workflow to support multiple SDK demos
|
|
2469
|
+
* improve api reference types, adjust syntax for agent toolkit plugin, and improve agents.md
|
|
2470
|
+
* improvements in places module themes
|
|
1915
2471
|
|
|
1916
2472
|
|
|
1917
2473
|
### Bug Fixes
|
|
1918
2474
|
|
|
1919
|
-
* dynamic import ApplicationInsights to avoid adblocker crash ([#1709](https://github.com/tomtom-internal/maps-sdk-js/issues/1709))
|
|
1920
|
-
* escape $web variable reference in upload step echo
|
|
1921
|
-
* 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))
|
|
1922
|
-
* LSI-265 Fix branch name sanitation in 'Publish Examples' step ([#1732](https://github.com/tomtom-internal/maps-sdk-js/issues/1732))
|
|
2475
|
+
* dynamic import ApplicationInsights to avoid adblocker crash ([#1709](https://github.com/tomtom-internal/maps-sdk-js/issues/1709))
|
|
2476
|
+
* escape $web variable reference in upload step echo
|
|
2477
|
+
* 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))
|
|
2478
|
+
* LSI-265 Fix branch name sanitation in 'Publish Examples' step ([#1732](https://github.com/tomtom-internal/maps-sdk-js/issues/1732))
|
|
1923
2479
|
|
|
1924
2480
|
## [0.46.13](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.12...v0.46.13) (2026-04-14)
|
|
1925
2481
|
|
|
1926
2482
|
|
|
1927
2483
|
### Features
|
|
1928
2484
|
|
|
1929
|
-
* upgrade maplibre dependency
|
|
2485
|
+
* upgrade maplibre dependency
|
|
1930
2486
|
|
|
1931
2487
|
|
|
1932
2488
|
### Bug Fixes
|
|
1933
2489
|
|
|
1934
|
-
* exporting map agent from plugins so it's included in API reference
|
|
1935
|
-
* rename map-agent plugin to agent-toolkit
|
|
1936
|
-
* update agent toolkit link in readme
|
|
1937
|
-
* update mobile breakpoint for chat agent demos ([#1697](https://github.com/tomtom-internal/maps-sdk-js/issues/1697))
|
|
2490
|
+
* exporting map agent from plugins so it's included in API reference
|
|
2491
|
+
* rename map-agent plugin to agent-toolkit
|
|
2492
|
+
* update agent toolkit link in readme
|
|
2493
|
+
* update mobile breakpoint for chat agent demos ([#1697](https://github.com/tomtom-internal/maps-sdk-js/issues/1697))
|
|
1938
2494
|
|
|
1939
2495
|
## [0.46.12](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.11...v0.46.12) (2026-04-10)
|
|
1940
2496
|
|
|
1941
2497
|
|
|
1942
2498
|
### Bug Fixes
|
|
1943
2499
|
|
|
1944
|
-
* missing example images
|
|
2500
|
+
* missing example images
|
|
1945
2501
|
|
|
1946
2502
|
## [0.46.11](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.10...v0.46.11) (2026-04-10)
|
|
1947
2503
|
|
|
1948
2504
|
|
|
1949
2505
|
### Bug Fixes
|
|
1950
2506
|
|
|
1951
|
-
* examples type exports
|
|
2507
|
+
* examples type exports
|
|
1952
2508
|
|
|
1953
2509
|
## [0.46.10](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.9...v0.46.10) (2026-04-10)
|
|
1954
2510
|
|
|
1955
2511
|
|
|
1956
2512
|
### Features
|
|
1957
2513
|
|
|
1958
|
-
* add traffic area analytics tools to map agent
|
|
1959
|
-
* enable ai-agent plugin for release
|
|
1960
|
-
* enhance traffic area analytics with improved filter handling and validation
|
|
1961
|
-
* expand TrafficAreaAnalyticsModule API with tiles mode, filtering, custom styling, and tooltip
|
|
1962
|
-
* improve mobile view for chat
|
|
1963
|
-
* new module events to react to config changes and shown features
|
|
1964
|
-
* parameterize tool registry with unified ToolMetadata and MapAgentTool types
|
|
1965
|
-
* remove canvas area analytics chart from main sdk, ported to example using html elements instead of canvas
|
|
1966
|
-
* traffic area analytics configuration improvements
|
|
1967
|
-
* traffic area analytics configuration improvements
|
|
2514
|
+
* add traffic area analytics tools to map agent
|
|
2515
|
+
* enable ai-agent plugin for release
|
|
2516
|
+
* enhance traffic area analytics with improved filter handling and validation
|
|
2517
|
+
* expand TrafficAreaAnalyticsModule API with tiles mode, filtering, custom styling, and tooltip
|
|
2518
|
+
* improve mobile view for chat
|
|
2519
|
+
* new module events to react to config changes and shown features
|
|
2520
|
+
* parameterize tool registry with unified ToolMetadata and MapAgentTool types
|
|
2521
|
+
* remove canvas area analytics chart from main sdk, ported to example using html elements instead of canvas
|
|
2522
|
+
* traffic area analytics configuration improvements
|
|
2523
|
+
* traffic area analytics configuration improvements
|
|
1968
2524
|
|
|
1969
2525
|
|
|
1970
2526
|
### Bug Fixes
|
|
1971
2527
|
|
|
1972
|
-
* ai plugin docs diagrams
|
|
1973
|
-
* disambiguate traffic tools, add analytics to clearMap, fix restoration race
|
|
1974
|
-
* mobile speech input continuous
|
|
1975
|
-
* serialize dates as ISO strings for safe LLM parsing. Example transport cleanup
|
|
2528
|
+
* ai plugin docs diagrams
|
|
2529
|
+
* disambiguate traffic tools, add analytics to clearMap, fix restoration race
|
|
2530
|
+
* mobile speech input continuous
|
|
2531
|
+
* serialize dates as ISO strings for safe LLM parsing. Example transport cleanup
|
|
1976
2532
|
|
|
1977
2533
|
## [0.46.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.8...v0.46.9) (2026-03-30)
|
|
1978
2534
|
|
|
1979
2535
|
|
|
1980
2536
|
### Features
|
|
1981
2537
|
|
|
1982
|
-
* add internal optional metadata header
|
|
2538
|
+
* add internal optional metadata header
|
|
1983
2539
|
|
|
1984
2540
|
## [0.46.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.7...v0.46.8) (2026-03-27)
|
|
1985
2541
|
|
|
1986
2542
|
|
|
1987
2543
|
### Features
|
|
1988
2544
|
|
|
1989
|
-
* add traffic area analytics example with configuration and visualization options ([#1632](https://github.com/tomtom-internal/maps-sdk-js/issues/1632))
|
|
1990
|
-
* **ai-eval, map-chat-agent:** extend eval harness and update eval cases
|
|
1991
|
-
* ensure area analytics dates start at least 2 days before the current day
|
|
1992
|
-
* improve circle theme visuals with dynamic POI sizing and unified centered-icon offset logic
|
|
1993
|
-
* **map-agent:** add extension tools and map-data-agent example
|
|
1994
|
-
* **map-agent:** redesign core tool layer
|
|
1995
|
-
* **map-agent:** switch focusOnPlace from geocode to search, add biasPosition
|
|
1996
|
-
* show area analytics hexagons below place labels
|
|
2545
|
+
* add traffic area analytics example with configuration and visualization options ([#1632](https://github.com/tomtom-internal/maps-sdk-js/issues/1632))
|
|
2546
|
+
* **ai-eval, map-chat-agent:** extend eval harness and update eval cases
|
|
2547
|
+
* ensure area analytics dates start at least 2 days before the current day
|
|
2548
|
+
* improve circle theme visuals with dynamic POI sizing and unified centered-icon offset logic
|
|
2549
|
+
* **map-agent:** add extension tools and map-data-agent example
|
|
2550
|
+
* **map-agent:** redesign core tool layer
|
|
2551
|
+
* **map-agent:** switch focusOnPlace from geocode to search, add biasPosition
|
|
2552
|
+
* show area analytics hexagons below place labels
|
|
1997
2553
|
|
|
1998
2554
|
|
|
1999
2555
|
### Bug Fixes
|
|
2000
2556
|
|
|
2001
|
-
* **map-agent:** fix P0/P1/P2 tool bugs and design weaknesses
|
|
2002
|
-
* maplibre version reliability in SDK built examples
|
|
2003
|
-
* poi category codes and mappings, and formatting
|
|
2004
|
-
* traffic area analytics layer id inits
|
|
2557
|
+
* **map-agent:** fix P0/P1/P2 tool bugs and design weaknesses
|
|
2558
|
+
* maplibre version reliability in SDK built examples
|
|
2559
|
+
* poi category codes and mappings, and formatting
|
|
2560
|
+
* traffic area analytics layer id inits
|
|
2005
2561
|
|
|
2006
2562
|
## [0.46.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.6...v0.46.7) (2026-03-20)
|
|
2007
2563
|
|
|
2008
2564
|
|
|
2009
2565
|
### Features
|
|
2010
2566
|
|
|
2011
|
-
* add area analytics module with visualization layers and utilities
|
|
2012
|
-
* add color scheme selector and update legend functionality in TrafficAreaAnalyticsModule
|
|
2013
|
-
* add color scheme support for TrafficAreaAnalyticsModule and related components
|
|
2014
|
-
* add integration tests and data for TrafficAreaAnalyticsModule following pr comments
|
|
2015
|
-
* add layer ID properties for explicit access in TrafficAreaAnalyticsModule
|
|
2016
|
-
* add theme propertie to RoutingModule and set-route-theme tool
|
|
2017
|
-
* add traffic area analytics example with city search and hex grid
|
|
2018
|
-
* add TrafficAreaAnalyticsModule with hexgrid and heatmap layers
|
|
2019
|
-
* add TrafficAreaAnalyticsModule with visualization layers
|
|
2020
|
-
* derive outline color from mainColor, update waypoint icons at runtime
|
|
2021
|
-
* remove hexTransform module and simplify analytics display logic
|
|
2567
|
+
* add area analytics module with visualization layers and utilities
|
|
2568
|
+
* add color scheme selector and update legend functionality in TrafficAreaAnalyticsModule
|
|
2569
|
+
* add color scheme support for TrafficAreaAnalyticsModule and related components
|
|
2570
|
+
* add integration tests and data for TrafficAreaAnalyticsModule following pr comments
|
|
2571
|
+
* add layer ID properties for explicit access in TrafficAreaAnalyticsModule
|
|
2572
|
+
* add theme propertie to RoutingModule and set-route-theme tool
|
|
2573
|
+
* add traffic area analytics example with city search and hex grid
|
|
2574
|
+
* add TrafficAreaAnalyticsModule with hexgrid and heatmap layers
|
|
2575
|
+
* add TrafficAreaAnalyticsModule with visualization layers
|
|
2576
|
+
* derive outline color from mainColor, update waypoint icons at runtime
|
|
2577
|
+
* remove hexTransform module and simplify analytics display logic
|
|
2022
2578
|
|
|
2023
2579
|
|
|
2024
2580
|
### Bug Fixes
|
|
2025
2581
|
|
|
2026
|
-
* add type annotation for madridCenter in TrafficAreaAnalyticsModule tests
|
|
2027
|
-
* migrate reachable range service from V3 to V2 API and update docs link
|
|
2028
|
-
* omit tomtom-user-agent header for area analytics requests (CORS)
|
|
2029
|
-
* resolve lint errors and remove non-null assertions
|
|
2030
|
-
* restore .npmrc before creating pull request
|
|
2031
|
-
* wait ForMapIdle race condition
|
|
2582
|
+
* add type annotation for madridCenter in TrafficAreaAnalyticsModule tests
|
|
2583
|
+
* migrate reachable range service from V3 to V2 API and update docs link
|
|
2584
|
+
* omit tomtom-user-agent header for area analytics requests (CORS)
|
|
2585
|
+
* resolve lint errors and remove non-null assertions
|
|
2586
|
+
* restore .npmrc before creating pull request
|
|
2587
|
+
* wait ForMapIdle race condition
|
|
2032
2588
|
|
|
2033
2589
|
## [0.46.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.5...v0.46.6) (2026-03-17)
|
|
2034
2590
|
|
|
2035
2591
|
|
|
2036
2592
|
### Bug Fixes
|
|
2037
2593
|
|
|
2038
|
-
* dep and sandpack upgrades
|
|
2594
|
+
* dep and sandpack upgrades
|
|
2039
2595
|
|
|
2040
2596
|
## [0.46.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.4...v0.46.5) (2026-03-17)
|
|
2041
2597
|
|
|
2042
2598
|
|
|
2043
2599
|
### Bug Fixes
|
|
2044
2600
|
|
|
2045
|
-
* add thumbnails for nodejs examples
|
|
2601
|
+
* add thumbnails for nodejs examples
|
|
2046
2602
|
|
|
2047
2603
|
## [0.46.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.3...v0.46.4) (2026-03-17)
|
|
2048
2604
|
|
|
2049
2605
|
|
|
2050
2606
|
### Bug Fixes
|
|
2051
2607
|
|
|
2052
|
-
* sandpack examples relying on Set logic
|
|
2608
|
+
* sandpack examples relying on Set logic
|
|
2053
2609
|
|
|
2054
2610
|
## [0.46.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.2...v0.46.3) (2026-03-17)
|
|
2055
2611
|
|
|
2056
2612
|
|
|
2057
2613
|
### Features
|
|
2058
2614
|
|
|
2059
|
-
* along route search service with examples, docs and minor refactorings
|
|
2060
|
-
* along route search service with examples, docs and minor refactorings
|
|
2615
|
+
* along route search service with examples, docs and minor refactorings
|
|
2616
|
+
* along route search service with examples, docs and minor refactorings
|
|
2061
2617
|
|
|
2062
2618
|
|
|
2063
2619
|
### Bug Fixes
|
|
2064
2620
|
|
|
2065
|
-
* ensure geometry search and along route search cannot accept position params
|
|
2621
|
+
* ensure geometry search and along route search cannot accept position params
|
|
2066
2622
|
|
|
2067
2623
|
## [0.46.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.1...v0.46.2) (2026-03-16)
|
|
2068
2624
|
|
|
2069
2625
|
|
|
2070
2626
|
### Features
|
|
2071
2627
|
|
|
2072
|
-
* add context7 json to help manage ai assisted coding
|
|
2628
|
+
* add context7 json to help manage ai assisted coding
|
|
2073
2629
|
|
|
2074
2630
|
## [0.46.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.46.0...v0.46.1) (2026-03-13)
|
|
2075
2631
|
|
|
2076
2632
|
|
|
2077
2633
|
### Features
|
|
2078
2634
|
|
|
2079
|
-
* add skills for agents to develop with the SDK
|
|
2080
|
-
* enhance documentation for map agent and setup with new examples and boilerplate
|
|
2081
|
-
* make tool-activation opt-out
|
|
2635
|
+
* add skills for agents to develop with the SDK
|
|
2636
|
+
* enhance documentation for map agent and setup with new examples and boilerplate
|
|
2637
|
+
* make tool-activation opt-out
|
|
2082
2638
|
|
|
2083
2639
|
|
|
2084
2640
|
### Bug Fixes
|
|
2085
2641
|
|
|
2086
|
-
* ensure traffic area analytics report name
|
|
2087
|
-
* poi category codes agent tool reliability with languages
|
|
2642
|
+
* ensure traffic area analytics report name
|
|
2643
|
+
* poi category codes agent tool reliability with languages
|
|
2088
2644
|
|
|
2089
2645
|
## [0.46.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.12...v0.46.0) (2026-03-12)
|
|
2090
2646
|
|
|
@@ -2095,96 +2651,96 @@
|
|
|
2095
2651
|
|
|
2096
2652
|
### Features
|
|
2097
2653
|
|
|
2098
|
-
* improve poi categories relationship with search
|
|
2099
|
-
* traffic area analytics lite service
|
|
2654
|
+
* improve poi categories relationship with search
|
|
2655
|
+
* traffic area analytics lite service
|
|
2100
2656
|
|
|
2101
2657
|
## [0.45.12](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.11...v0.45.12) (2026-03-04)
|
|
2102
2658
|
|
|
2103
2659
|
|
|
2104
2660
|
### Bug Fixes
|
|
2105
2661
|
|
|
2106
|
-
* missing example thumbnail
|
|
2662
|
+
* missing example thumbnail
|
|
2107
2663
|
|
|
2108
2664
|
## [0.45.11](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.10...v0.45.11) (2026-03-03)
|
|
2109
2665
|
|
|
2110
2666
|
|
|
2111
2667
|
### Features
|
|
2112
2668
|
|
|
2113
|
-
* add avoid areas parameter for route calculations
|
|
2114
|
-
* add avoid areas parameter for route calculations
|
|
2115
|
-
* add intent-based classification and selective tooling with tool groups and step scope
|
|
2116
|
-
* improve pois and traffic map feature mappings
|
|
2117
|
-
* improve pois and traffic map feature mappings
|
|
2118
|
-
* multiple agent tool improvements
|
|
2669
|
+
* add avoid areas parameter for route calculations
|
|
2670
|
+
* add avoid areas parameter for route calculations
|
|
2671
|
+
* add intent-based classification and selective tooling with tool groups and step scope
|
|
2672
|
+
* improve pois and traffic map feature mappings
|
|
2673
|
+
* improve pois and traffic map feature mappings
|
|
2674
|
+
* multiple agent tool improvements
|
|
2119
2675
|
|
|
2120
2676
|
|
|
2121
2677
|
### Bug Fixes
|
|
2122
2678
|
|
|
2123
|
-
* clear geometry labels property
|
|
2124
|
-
* geometries label size
|
|
2125
|
-
* remove unused section props
|
|
2126
|
-
* routing module incident events type
|
|
2127
|
-
* switch from geojsonobject to geojson types for correctness
|
|
2679
|
+
* clear geometry labels property
|
|
2680
|
+
* geometries label size
|
|
2681
|
+
* remove unused section props
|
|
2682
|
+
* routing module incident events type
|
|
2683
|
+
* switch from geojsonobject to geojson types for correctness
|
|
2128
2684
|
|
|
2129
2685
|
## [0.45.10](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.9...v0.45.10) (2026-02-26)
|
|
2130
2686
|
|
|
2131
2687
|
|
|
2132
2688
|
### Features
|
|
2133
2689
|
|
|
2134
|
-
* improve traffic details service parameters and documentation
|
|
2690
|
+
* improve traffic details service parameters and documentation
|
|
2135
2691
|
|
|
2136
2692
|
## [0.45.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.8...v0.45.9) (2026-02-26)
|
|
2137
2693
|
|
|
2138
2694
|
|
|
2139
2695
|
### Features
|
|
2140
2696
|
|
|
2141
|
-
* improve inverted theme support for reachable ranges, migrate examples to use theme: 'inverted'
|
|
2142
|
-
* incident details service improvements and added agent tools
|
|
2143
|
-
* traffic incident details service
|
|
2697
|
+
* improve inverted theme support for reachable ranges, migrate examples to use theme: 'inverted'
|
|
2698
|
+
* incident details service improvements and added agent tools
|
|
2699
|
+
* traffic incident details service
|
|
2144
2700
|
|
|
2145
2701
|
## [0.45.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.7...v0.45.8) (2026-02-24)
|
|
2146
2702
|
|
|
2147
2703
|
|
|
2148
2704
|
### Bug Fixes
|
|
2149
2705
|
|
|
2150
|
-
* ensure reachable ranges is visible on docs portal
|
|
2706
|
+
* ensure reachable ranges is visible on docs portal
|
|
2151
2707
|
|
|
2152
2708
|
## [0.45.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.6...v0.45.7) (2026-02-24)
|
|
2153
2709
|
|
|
2154
2710
|
|
|
2155
2711
|
### Features
|
|
2156
2712
|
|
|
2157
|
-
* add themed geometry config and make reachable-ranges zero-plumbing geometry display
|
|
2158
|
-
* reinstate displayReachableRanges and reachable-ranges example, allowing custom multi-budget-type, palette, and theme support
|
|
2159
|
-
* typed features for map traffic incidents and flow, with extra properties
|
|
2713
|
+
* add themed geometry config and make reachable-ranges zero-plumbing geometry display
|
|
2714
|
+
* reinstate displayReachableRanges and reachable-ranges example, allowing custom multi-budget-type, palette, and theme support
|
|
2715
|
+
* typed features for map traffic incidents and flow, with extra properties
|
|
2160
2716
|
|
|
2161
2717
|
|
|
2162
2718
|
### Bug Fixes
|
|
2163
2719
|
|
|
2164
|
-
* remove roadShieldReferences guidance param — road shields are requested via sectionTypes, and are included by default
|
|
2720
|
+
* remove roadShieldReferences guidance param — road shields are requested via sectionTypes, and are included by default
|
|
2165
2721
|
|
|
2166
2722
|
## [0.45.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.5...v0.45.6) (2026-02-23)
|
|
2167
2723
|
|
|
2168
2724
|
|
|
2169
2725
|
### Features
|
|
2170
2726
|
|
|
2171
|
-
* opt-out visibility for route summary bubbles
|
|
2727
|
+
* opt-out visibility for route summary bubbles
|
|
2172
2728
|
|
|
2173
2729
|
|
|
2174
2730
|
### Bug Fixes
|
|
2175
2731
|
|
|
2176
|
-
* pois module feature mappings and type fixes
|
|
2732
|
+
* pois module feature mappings and type fixes
|
|
2177
2733
|
|
|
2178
2734
|
## [0.45.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.4...v0.45.5) (2026-02-20)
|
|
2179
2735
|
|
|
2180
2736
|
|
|
2181
2737
|
### Features
|
|
2182
2738
|
|
|
2183
|
-
* add new get section progress tool, and improve existing tools
|
|
2184
|
-
* core utilities related to routes and tool description improvements
|
|
2185
|
-
* new hover-move event type which keeps firing as you move the pointer over the relevant features
|
|
2186
|
-
* new utility to find route progress matching a nearby arbitrary location
|
|
2187
|
-
* refactor core utility guides and add new example for add stops to route
|
|
2739
|
+
* add new get section progress tool, and improve existing tools
|
|
2740
|
+
* core utilities related to routes and tool description improvements
|
|
2741
|
+
* new hover-move event type which keeps firing as you move the pointer over the relevant features
|
|
2742
|
+
* new utility to find route progress matching a nearby arbitrary location
|
|
2743
|
+
* refactor core utility guides and add new example for add stops to route
|
|
2188
2744
|
|
|
2189
2745
|
|
|
2190
2746
|
## [0.45.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.45.3...v0.45.4) (2026-02-17)
|
|
@@ -2195,48 +2751,48 @@
|
|
|
2195
2751
|
|
|
2196
2752
|
### Features
|
|
2197
2753
|
|
|
2198
|
-
* add shared CSS design system and reusable HTML templates for examples
|
|
2199
|
-
* add template CSS inlining and local SDK dependency resolution to Sandpack
|
|
2200
|
-
* migrate all examples to use the shared CSS design system
|
|
2201
|
-
* zod and lodash are now peer dependencies, not bundled in sdk anymore
|
|
2754
|
+
* add shared CSS design system and reusable HTML templates for examples
|
|
2755
|
+
* add template CSS inlining and local SDK dependency resolution to Sandpack
|
|
2756
|
+
* migrate all examples to use the shared CSS design system
|
|
2757
|
+
* zod and lodash are now peer dependencies, not bundled in sdk anymore
|
|
2202
2758
|
|
|
2203
2759
|
|
|
2204
2760
|
### Bug Fixes
|
|
2205
2761
|
|
|
2206
|
-
* update Playwright config for Chrome for Testing WebGL support and refresh snapshots
|
|
2762
|
+
* update Playwright config for Chrome for Testing WebGL support and refresh snapshots
|
|
2207
2763
|
|
|
2208
2764
|
## [0.42.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.42.1...v0.42.2) (2026-02-06)
|
|
2209
2765
|
|
|
2210
2766
|
|
|
2211
2767
|
### Bug Fixes
|
|
2212
2768
|
|
|
2213
|
-
* ensure map theme switching is smooth
|
|
2769
|
+
* ensure map theme switching is smooth
|
|
2214
2770
|
|
|
2215
2771
|
## [0.42.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.42.0...v0.42.1) (2026-02-03)
|
|
2216
2772
|
|
|
2217
2773
|
|
|
2218
2774
|
### Features
|
|
2219
2775
|
|
|
2220
|
-
* add traffic incident playground example
|
|
2776
|
+
* add traffic incident playground example
|
|
2221
2777
|
|
|
2222
2778
|
|
|
2223
2779
|
### Bug Fixes
|
|
2224
2780
|
|
|
2225
|
-
* enable documentation indexing
|
|
2226
|
-
* filter by incidents by magnitude_of_delay
|
|
2227
|
-
* omit bounding box and position from search options in viewport places plugin since they should be automatically set
|
|
2781
|
+
* enable documentation indexing
|
|
2782
|
+
* filter by incidents by magnitude_of_delay
|
|
2783
|
+
* omit bounding box and position from search options in viewport places plugin since they should be automatically set
|
|
2228
2784
|
|
|
2229
2785
|
## [0.42.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.8...v0.42.0) (2026-01-30)
|
|
2230
2786
|
|
|
2231
2787
|
|
|
2232
2788
|
### Features
|
|
2233
2789
|
|
|
2234
|
-
* **viewport-places:** improve types
|
|
2790
|
+
* **viewport-places:** improve types
|
|
2235
2791
|
|
|
2236
2792
|
|
|
2237
2793
|
### Bug Fixes
|
|
2238
2794
|
|
|
2239
|
-
* viewport places plugin example
|
|
2795
|
+
* viewport places plugin example
|
|
2240
2796
|
|
|
2241
2797
|
|
|
2242
2798
|
## [0.41.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.7...v0.41.8) (2026-01-30)
|
|
@@ -2244,71 +2800,71 @@
|
|
|
2244
2800
|
|
|
2245
2801
|
### Bug Fixes
|
|
2246
2802
|
|
|
2247
|
-
* viewport places plugin example
|
|
2803
|
+
* viewport places plugin example
|
|
2248
2804
|
|
|
2249
2805
|
## [0.41.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.6...v0.41.7) (2026-01-30)
|
|
2250
2806
|
|
|
2251
2807
|
|
|
2252
2808
|
### Bug Fixes
|
|
2253
2809
|
|
|
2254
|
-
* improve release workflow and update documentation
|
|
2810
|
+
* improve release workflow and update documentation
|
|
2255
2811
|
|
|
2256
2812
|
## [0.41.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.5...v0.41.6) (2026-01-30)
|
|
2257
2813
|
|
|
2258
2814
|
|
|
2259
2815
|
### Features
|
|
2260
2816
|
|
|
2261
|
-
* **viewport-places:** improve types
|
|
2817
|
+
* **viewport-places:** improve types
|
|
2262
2818
|
|
|
2263
2819
|
## [0.41.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.4...v0.41.5) (2026-01-30)
|
|
2264
2820
|
|
|
2265
2821
|
|
|
2266
2822
|
### Features
|
|
2267
2823
|
|
|
2268
|
-
* **viewport-places:** improve TSDocs
|
|
2824
|
+
* **viewport-places:** improve TSDocs
|
|
2269
2825
|
|
|
2270
2826
|
## [0.41.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.3...v0.41.4) (2026-01-30)
|
|
2271
2827
|
|
|
2272
2828
|
|
|
2273
2829
|
### Bug Fixes
|
|
2274
2830
|
|
|
2275
|
-
* missing [@ignore](https://github.com/ignore) for internal routing variable
|
|
2276
|
-
* missing tsdoc group for type
|
|
2831
|
+
* missing [@ignore](https://github.com/ignore) for internal routing variable
|
|
2832
|
+
* missing tsdoc group for type
|
|
2277
2833
|
|
|
2278
2834
|
## [0.41.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.2...v0.41.3) (2026-01-29)
|
|
2279
2835
|
|
|
2280
2836
|
|
|
2281
2837
|
### Features
|
|
2282
2838
|
|
|
2283
|
-
* simplify viewport places method name, and improve api reference docs
|
|
2284
|
-
* upgrade deps
|
|
2839
|
+
* simplify viewport places method name, and improve api reference docs
|
|
2840
|
+
* upgrade deps
|
|
2285
2841
|
|
|
2286
2842
|
## [0.41.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.1...v0.41.2) (2026-01-29)
|
|
2287
2843
|
|
|
2288
2844
|
|
|
2289
2845
|
### Features
|
|
2290
2846
|
|
|
2291
|
-
* add availability-aware custom EV icons to example
|
|
2292
|
-
* add EV availability icon selection with custom icon support
|
|
2293
|
-
* add EVAvailabilityConfig type with opt-in configuration
|
|
2294
|
-
* add plugins workspace with first plugin to easily display search-powered layers of places on the map
|
|
2295
|
-
* add theme awareness and availability-level icon image handling to PlacesModule
|
|
2296
|
-
* enhance EV custom display example with theme switching and improved controls
|
|
2297
|
-
* implement EV availability display in layer specs
|
|
2298
|
-
* rename ev playground to search
|
|
2847
|
+
* add availability-aware custom EV icons to example
|
|
2848
|
+
* add EV availability icon selection with custom icon support
|
|
2849
|
+
* add EVAvailabilityConfig type with opt-in configuration
|
|
2850
|
+
* add plugins workspace with first plugin to easily display search-powered layers of places on the map
|
|
2851
|
+
* add theme awareness and availability-level icon image handling to PlacesModule
|
|
2852
|
+
* enhance EV custom display example with theme switching and improved controls
|
|
2853
|
+
* implement EV availability display in layer specs
|
|
2854
|
+
* rename ev playground to search
|
|
2299
2855
|
|
|
2300
2856
|
|
|
2301
2857
|
### Bug Fixes
|
|
2302
2858
|
|
|
2303
|
-
* make StyleChangeHandler callbacks optional
|
|
2304
|
-
* try to fail gracefully when some layers cannot be added in map modules, likely due to misconfiguration
|
|
2859
|
+
* make StyleChangeHandler callbacks optional
|
|
2860
|
+
* try to fail gracefully when some layers cannot be added in map modules, likely due to misconfiguration
|
|
2305
2861
|
|
|
2306
2862
|
## [0.41.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.41.0...v0.41.1) (2026-01-16)
|
|
2307
2863
|
|
|
2308
2864
|
|
|
2309
2865
|
### Bug Fixes
|
|
2310
2866
|
|
|
2311
|
-
* **examples:** import in ev-charging-stations-playground
|
|
2867
|
+
* **examples:** import in ev-charging-stations-playground
|
|
2312
2868
|
|
|
2313
2869
|
## [0.41.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.40.1...v0.41.0) (2026-01-16)
|
|
2314
2870
|
|
|
@@ -2321,297 +2877,297 @@
|
|
|
2321
2877
|
|
|
2322
2878
|
### Bug Fixes
|
|
2323
2879
|
|
|
2324
|
-
* css responsiveness
|
|
2325
|
-
* **ev-search:** getPlacesWithEvAvailability return type
|
|
2880
|
+
* css responsiveness
|
|
2881
|
+
* **ev-search:** getPlacesWithEvAvailability return type
|
|
2326
2882
|
|
|
2327
2883
|
|
|
2328
2884
|
### Code Refactoring
|
|
2329
2885
|
|
|
2330
|
-
* **ev-search:** merge connectors and connectorCounts
|
|
2331
|
-
* merge mapParams and mapLibreOptions
|
|
2886
|
+
* **ev-search:** merge connectors and connectorCounts
|
|
2887
|
+
* merge mapParams and mapLibreOptions
|
|
2332
2888
|
|
|
2333
2889
|
## [0.40.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.40.0...v0.40.1) (2026-01-08)
|
|
2334
2890
|
|
|
2335
2891
|
|
|
2336
2892
|
### Bug Fixes
|
|
2337
2893
|
|
|
2338
|
-
* calculate padded bboxes correctly if any of the surrounding elements goes beyond the visible screen
|
|
2339
|
-
* ensure map style parts which were excluded are loaded more robustly
|
|
2894
|
+
* calculate padded bboxes correctly if any of the surrounding elements goes beyond the visible screen
|
|
2895
|
+
* ensure map style parts which were excluded are loaded more robustly
|
|
2340
2896
|
|
|
2341
2897
|
## [0.40.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.39.0...v0.40.0) (2026-01-07)
|
|
2342
2898
|
|
|
2343
2899
|
|
|
2344
2900
|
### Features
|
|
2345
2901
|
|
|
2346
|
-
* new padded bbox calculation utilities for map bundle
|
|
2347
|
-
* new polygonFromBBox core utility
|
|
2348
|
-
* sdk upgrade
|
|
2902
|
+
* new padded bbox calculation utilities for map bundle
|
|
2903
|
+
* new polygonFromBBox core utility
|
|
2904
|
+
* sdk upgrade
|
|
2349
2905
|
|
|
2350
2906
|
## [0.39.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.38.1...v0.39.0) (2026-01-06)
|
|
2351
2907
|
|
|
2352
2908
|
|
|
2353
2909
|
### Features
|
|
2354
2910
|
|
|
2355
|
-
* add live coding for few guides
|
|
2356
|
-
* new map style switcher example
|
|
2911
|
+
* add live coding for few guides
|
|
2912
|
+
* new map style switcher example
|
|
2357
2913
|
|
|
2358
2914
|
|
|
2359
2915
|
### Bug Fixes
|
|
2360
2916
|
|
|
2361
|
-
* simplify how sandpack examples are exposed
|
|
2917
|
+
* simplify how sandpack examples are exposed
|
|
2362
2918
|
|
|
2363
2919
|
## [0.38.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.38.0...v0.38.1) (2025-12-17)
|
|
2364
2920
|
|
|
2365
2921
|
|
|
2366
2922
|
### Bug Fixes
|
|
2367
2923
|
|
|
2368
|
-
* quickstart guide link text
|
|
2924
|
+
* quickstart guide link text
|
|
2369
2925
|
|
|
2370
2926
|
## [0.38.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.37.0...v0.38.0) (2025-12-17)
|
|
2371
2927
|
|
|
2372
2928
|
|
|
2373
2929
|
### Features
|
|
2374
2930
|
|
|
2375
|
-
* improve bbox types for places, routes and geometries
|
|
2931
|
+
* improve bbox types for places, routes and geometries
|
|
2376
2932
|
|
|
2377
2933
|
## [0.37.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.9...v0.37.0) (2025-12-16)
|
|
2378
2934
|
|
|
2379
2935
|
|
|
2380
2936
|
### Features
|
|
2381
2937
|
|
|
2382
|
-
* improve bbox types for places and routes so they reflect 4-dimensional types
|
|
2383
|
-
* optional events configuration for each map module
|
|
2938
|
+
* improve bbox types for places and routes so they reflect 4-dimensional types
|
|
2939
|
+
* optional events configuration for each map module
|
|
2384
2940
|
|
|
2385
2941
|
|
|
2386
2942
|
### Bug Fixes
|
|
2387
2943
|
|
|
2388
|
-
* add sandpack wrapper for each example
|
|
2389
|
-
* move sandpack local preview inside sandpack folder
|
|
2390
|
-
* use release please version in tests
|
|
2391
|
-
* use vite to resolve dependencies and examples map
|
|
2944
|
+
* add sandpack wrapper for each example
|
|
2945
|
+
* move sandpack local preview inside sandpack folder
|
|
2946
|
+
* use release please version in tests
|
|
2947
|
+
* use vite to resolve dependencies and examples map
|
|
2392
2948
|
|
|
2393
2949
|
## [0.36.9](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.8...v0.36.9) (2025-12-11)
|
|
2394
2950
|
|
|
2395
2951
|
|
|
2396
2952
|
### Bug Fixes
|
|
2397
2953
|
|
|
2398
|
-
* upgrade deps
|
|
2954
|
+
* upgrade deps
|
|
2399
2955
|
|
|
2400
2956
|
## [0.36.8](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.7...v0.36.8) (2025-12-11)
|
|
2401
2957
|
|
|
2402
2958
|
|
|
2403
2959
|
### Bug Fixes
|
|
2404
2960
|
|
|
2405
|
-
* upgrade deps
|
|
2961
|
+
* upgrade deps
|
|
2406
2962
|
|
|
2407
2963
|
## [0.36.7](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.6...v0.36.7) (2025-12-11)
|
|
2408
2964
|
|
|
2409
2965
|
|
|
2410
2966
|
### Bug Fixes
|
|
2411
2967
|
|
|
2412
|
-
* consistency with naming map module instance variables
|
|
2968
|
+
* consistency with naming map module instance variables
|
|
2413
2969
|
|
|
2414
2970
|
## [0.36.6](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.5...v0.36.6) (2025-12-10)
|
|
2415
2971
|
|
|
2416
2972
|
|
|
2417
2973
|
### Bug Fixes
|
|
2418
2974
|
|
|
2419
|
-
* remove leftover console logs
|
|
2975
|
+
* remove leftover console logs
|
|
2420
2976
|
|
|
2421
2977
|
## [0.36.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.4...v0.36.5) (2025-12-09)
|
|
2422
2978
|
|
|
2423
2979
|
|
|
2424
2980
|
### Bug Fixes
|
|
2425
2981
|
|
|
2426
|
-
* type exports
|
|
2982
|
+
* type exports
|
|
2427
2983
|
|
|
2428
2984
|
## [0.36.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.3...v0.36.4) (2025-12-08)
|
|
2429
2985
|
|
|
2430
2986
|
|
|
2431
2987
|
### Bug Fixes
|
|
2432
2988
|
|
|
2433
|
-
* regression fix for additional layers vs multiple routing modules support
|
|
2434
|
-
* regression fix regarding unnecessarily suffixing custom images in routing module instances
|
|
2989
|
+
* regression fix for additional layers vs multiple routing modules support
|
|
2990
|
+
* regression fix regarding unnecessarily suffixing custom images in routing module instances
|
|
2435
2991
|
|
|
2436
2992
|
## [0.36.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.2...v0.36.3) (2025-12-08)
|
|
2437
2993
|
|
|
2438
2994
|
|
|
2439
2995
|
### Bug Fixes
|
|
2440
2996
|
|
|
2441
|
-
* prevent querying features without passing any layers
|
|
2997
|
+
* prevent querying features without passing any layers
|
|
2442
2998
|
|
|
2443
2999
|
## [0.36.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.1...v0.36.2) (2025-12-08)
|
|
2444
3000
|
|
|
2445
3001
|
|
|
2446
3002
|
### Bug Fixes
|
|
2447
3003
|
|
|
2448
|
-
* example content hotfix
|
|
2449
|
-
* simplify and improve category mappings for places
|
|
3004
|
+
* example content hotfix
|
|
3005
|
+
* simplify and improve category mappings for places
|
|
2450
3006
|
|
|
2451
3007
|
## [0.36.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.36.0...v0.36.1) (2025-12-08)
|
|
2452
3008
|
|
|
2453
3009
|
|
|
2454
3010
|
### Bug Fixes
|
|
2455
3011
|
|
|
2456
|
-
* simplify and improve category mappings for places
|
|
3012
|
+
* simplify and improve category mappings for places
|
|
2457
3013
|
|
|
2458
3014
|
## [0.36.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.5...v0.36.0) (2025-12-05)
|
|
2459
3015
|
|
|
2460
3016
|
|
|
2461
3017
|
### Features
|
|
2462
3018
|
|
|
2463
|
-
* multiple routing module instances possible, including two new examples
|
|
3019
|
+
* multiple routing module instances possible, including two new examples
|
|
2464
3020
|
|
|
2465
3021
|
|
|
2466
3022
|
### Bug Fixes
|
|
2467
3023
|
|
|
2468
|
-
* ensure feature ids and feature properties ids are always set
|
|
3024
|
+
* ensure feature ids and feature properties ids are always set
|
|
2469
3025
|
|
|
2470
3026
|
## [0.35.5](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.4...v0.35.5) (2025-12-04)
|
|
2471
3027
|
|
|
2472
3028
|
|
|
2473
3029
|
### Bug Fixes
|
|
2474
3030
|
|
|
2475
|
-
* skip validating styles when changing them for performance
|
|
2476
|
-
* upgrade maplibre dependency and ensure place properties always have id
|
|
3031
|
+
* skip validating styles when changing them for performance
|
|
3032
|
+
* upgrade maplibre dependency and ensure place properties always have id
|
|
2477
3033
|
|
|
2478
3034
|
## [0.35.4](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.3...v0.35.4) (2025-12-03)
|
|
2479
3035
|
|
|
2480
3036
|
|
|
2481
3037
|
### Bug Fixes
|
|
2482
3038
|
|
|
2483
|
-
* use right icon for toll roads along routes
|
|
3039
|
+
* use right icon for toll roads along routes
|
|
2484
3040
|
|
|
2485
3041
|
## [0.35.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.2...v0.35.3) (2025-12-03)
|
|
2486
3042
|
|
|
2487
3043
|
|
|
2488
3044
|
### Bug Fixes
|
|
2489
3045
|
|
|
2490
|
-
* custom image loading reliability across different browsers
|
|
3046
|
+
* custom image loading reliability across different browsers
|
|
2491
3047
|
|
|
2492
3048
|
## [0.35.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.1...v0.35.2) (2025-12-03)
|
|
2493
3049
|
|
|
2494
3050
|
|
|
2495
3051
|
### Bug Fixes
|
|
2496
3052
|
|
|
2497
|
-
* rev geo playground init
|
|
3053
|
+
* rev geo playground init
|
|
2498
3054
|
|
|
2499
3055
|
## [0.35.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.35.0...v0.35.1) (2025-12-03)
|
|
2500
3056
|
|
|
2501
3057
|
|
|
2502
3058
|
### Bug Fixes
|
|
2503
3059
|
|
|
2504
|
-
* mitigation to try to be more reliable on detecting that maplibre css was already loaded
|
|
2505
|
-
* remove noisy console warnings when deserializing potential JSON from features
|
|
3060
|
+
* mitigation to try to be more reliable on detecting that maplibre css was already loaded
|
|
3061
|
+
* remove noisy console warnings when deserializing potential JSON from features
|
|
2506
3062
|
|
|
2507
3063
|
## [0.35.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.34.1...v0.35.0) (2025-12-02)
|
|
2508
3064
|
|
|
2509
3065
|
|
|
2510
3066
|
### Features
|
|
2511
3067
|
|
|
2512
|
-
* new searchOne convenience function for fast single result searches
|
|
2513
|
-
* showRoutes in RoutingModule also accepts a single Route now
|
|
2514
|
-
* 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
|
|
3068
|
+
* new searchOne convenience function for fast single result searches
|
|
3069
|
+
* showRoutes in RoutingModule also accepts a single Route now
|
|
3070
|
+
* 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
|
|
2515
3071
|
|
|
2516
3072
|
|
|
2517
3073
|
### Bug Fixes
|
|
2518
3074
|
|
|
2519
|
-
* base map module undefined config consistency
|
|
3075
|
+
* base map module undefined config consistency
|
|
2520
3076
|
|
|
2521
3077
|
## [0.34.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.34.0...v0.34.1) (2025-12-01)
|
|
2522
3078
|
|
|
2523
3079
|
|
|
2524
3080
|
### Bug Fixes
|
|
2525
3081
|
|
|
2526
|
-
* add config file to maintain example api key
|
|
2527
|
-
* move all files for examples under its src folder
|
|
2528
|
-
* nodejs examples based on es modules
|
|
2529
|
-
* use sandpack to preview map in guides
|
|
3082
|
+
* add config file to maintain example api key
|
|
3083
|
+
* move all files for examples under its src folder
|
|
3084
|
+
* nodejs examples based on es modules
|
|
3085
|
+
* use sandpack to preview map in guides
|
|
2530
3086
|
|
|
2531
3087
|
## [0.34.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.33.0...v0.34.0) (2025-11-26)
|
|
2532
3088
|
|
|
2533
3089
|
|
|
2534
3090
|
### Features
|
|
2535
3091
|
|
|
2536
|
-
* hide fuzzySearch call to avoid overlap with search
|
|
2537
|
-
* improve visibility state management in traffic and hillshade modules, fix e2e tests, misc improvements
|
|
2538
|
-
* improvements in PlacesModule and added examples
|
|
2539
|
-
* upgrade sdk dependency
|
|
3092
|
+
* hide fuzzySearch call to avoid overlap with search
|
|
3093
|
+
* improve visibility state management in traffic and hillshade modules, fix e2e tests, misc improvements
|
|
3094
|
+
* improvements in PlacesModule and added examples
|
|
3095
|
+
* upgrade sdk dependency
|
|
2540
3096
|
|
|
2541
3097
|
|
|
2542
3098
|
### Bug Fixes
|
|
2543
3099
|
|
|
2544
|
-
* types and test data migrated to ts
|
|
3100
|
+
* types and test data migrated to ts
|
|
2545
3101
|
|
|
2546
3102
|
## [0.33.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.32.3...v0.33.0) (2025-11-20)
|
|
2547
3103
|
|
|
2548
3104
|
|
|
2549
3105
|
### Bug Fixes
|
|
2550
3106
|
|
|
2551
|
-
* update diagram how-the-sdk-works
|
|
3107
|
+
* update diagram how-the-sdk-works
|
|
2552
3108
|
|
|
2553
3109
|
## [0.32.3](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.32.2...v0.32.3) (2025-11-20)
|
|
2554
3110
|
|
|
2555
3111
|
|
|
2556
3112
|
### Bug Fixes
|
|
2557
3113
|
|
|
2558
|
-
* route instruction arrows to be above incidents
|
|
2559
|
-
* update license
|
|
3114
|
+
* route instruction arrows to be above incidents
|
|
3115
|
+
* update license
|
|
2560
3116
|
|
|
2561
3117
|
## [0.32.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.32.1...v0.32.2) (2025-11-18)
|
|
2562
3118
|
|
|
2563
3119
|
|
|
2564
3120
|
### Bug Fixes
|
|
2565
3121
|
|
|
2566
|
-
* es exports to prevent having to mention dist in imports
|
|
3122
|
+
* es exports to prevent having to mention dist in imports
|
|
2567
3123
|
|
|
2568
3124
|
## [0.32.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.31.1...v0.32.0) (2025-11-13)
|
|
2569
3125
|
|
|
2570
3126
|
|
|
2571
3127
|
### Features
|
|
2572
3128
|
|
|
2573
|
-
* export sdk as es modules only
|
|
2574
|
-
* simplify map style initialization
|
|
3129
|
+
* export sdk as es modules only
|
|
3130
|
+
* simplify map style initialization
|
|
2575
3131
|
|
|
2576
3132
|
## [0.31.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.30.2...v0.31.0) (2025-11-11)
|
|
2577
3133
|
|
|
2578
3134
|
|
|
2579
3135
|
### Features
|
|
2580
3136
|
|
|
2581
|
-
* improve places module configuration and examples
|
|
2582
|
-
* sdk automatically loads MapLibre CSS if not done by the caller
|
|
2583
|
-
* upgrade to new map style with new traffic incident icons
|
|
3137
|
+
* improve places module configuration and examples
|
|
3138
|
+
* sdk automatically loads MapLibre CSS if not done by the caller
|
|
3139
|
+
* upgrade to new map style with new traffic incident icons
|
|
2584
3140
|
|
|
2585
3141
|
|
|
2586
3142
|
### Bug Fixes
|
|
2587
3143
|
|
|
2588
|
-
* search exports and using typeahead true for fuzzy search examples
|
|
3144
|
+
* search exports and using typeahead true for fuzzy search examples
|
|
2589
3145
|
|
|
2590
3146
|
## [0.30.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.30.1...v0.30.2) (2025-11-06)
|
|
2591
3147
|
|
|
2592
3148
|
|
|
2593
3149
|
### Bug Fixes
|
|
2594
3150
|
|
|
2595
|
-
* example having incorrect references
|
|
3151
|
+
* example having incorrect references
|
|
2596
3152
|
|
|
2597
3153
|
## [0.30.1](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.30.0...v0.30.1) (2025-11-05)
|
|
2598
3154
|
|
|
2599
3155
|
|
|
2600
3156
|
### Bug Fixes
|
|
2601
3157
|
|
|
2602
|
-
* pin category mapping
|
|
3158
|
+
* pin category mapping
|
|
2603
3159
|
|
|
2604
3160
|
## [0.30.0](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.29.2...v0.30.0) (2025-11-05)
|
|
2605
3161
|
|
|
2606
3162
|
|
|
2607
3163
|
### Features
|
|
2608
3164
|
|
|
2609
|
-
* enable tomtom user agent headers by default
|
|
3165
|
+
* enable tomtom user agent headers by default
|
|
2610
3166
|
|
|
2611
3167
|
|
|
2612
3168
|
### Bug Fixes
|
|
2613
3169
|
|
|
2614
|
-
* route example content
|
|
3170
|
+
* route example content
|
|
2615
3171
|
|
|
2616
3172
|
## [0.29.2](https://github.com/tomtom-internal/maps-sdk-js/compare/v0.29.1...v0.29.2) (2025-11-04)
|
|
2617
3173
|
|