@rio-cloud/uikit-mcp 1.1.9 → 1.1.11

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.
Files changed (211) hide show
  1. package/README.md +2 -1
  2. package/dist/doc-metadata.json +334 -94
  3. package/dist/docs/components/accentBar.md +110 -116
  4. package/dist/docs/components/activity.md +1 -1
  5. package/dist/docs/components/analyticsAnalysisOverlay.md +630 -0
  6. package/dist/docs/components/animatedNumber.md +2 -2
  7. package/dist/docs/components/animatedTextReveal.md +53 -55
  8. package/dist/docs/components/animations.md +21 -21
  9. package/dist/docs/components/appHeader.md +27 -38
  10. package/dist/docs/components/appLayout.md +23 -77
  11. package/dist/docs/components/appNavigationBar.md +1 -1
  12. package/dist/docs/components/areaCharts.md +57 -61
  13. package/dist/docs/components/aspectRatioPlaceholder.md +1 -1
  14. package/dist/docs/components/assetTree.md +429 -342
  15. package/dist/docs/components/autosuggests.md +1 -1
  16. package/dist/docs/components/avatar.md +1 -1
  17. package/dist/docs/components/banner.md +2 -2
  18. package/dist/docs/components/barCharts.md +530 -414
  19. package/dist/docs/components/barList.md +10 -10
  20. package/dist/docs/components/basicMap.md +104 -39
  21. package/dist/docs/components/bottomSheet.md +2 -2
  22. package/dist/docs/components/button.md +8 -2
  23. package/dist/docs/components/buttonToolbar.md +1 -1
  24. package/dist/docs/components/calendarStripe.md +59 -63
  25. package/dist/docs/components/card.md +1 -1
  26. package/dist/docs/components/carousel.md +1 -1
  27. package/dist/docs/components/chartColors.md +1 -1
  28. package/dist/docs/components/chartsGettingStarted.md +1 -1
  29. package/dist/docs/components/chat.md +2 -2
  30. package/dist/docs/components/checkbox.md +15 -10
  31. package/dist/docs/components/circularProgress.md +6 -6
  32. package/dist/docs/components/clearableInput.md +1 -1
  33. package/dist/docs/components/collapse.md +2 -2
  34. package/dist/docs/components/composedCharts.md +63 -51
  35. package/dist/docs/components/contentLoader.md +1 -1
  36. package/dist/docs/components/dataTabs.md +33 -33
  37. package/dist/docs/components/datepickers.md +693 -685
  38. package/dist/docs/components/dayPicker.md +5624 -0
  39. package/dist/docs/components/dayPickerCalendar.md +5289 -0
  40. package/dist/docs/components/dialogs.md +17 -19
  41. package/dist/docs/components/divider.md +1 -1
  42. package/dist/docs/components/dropdowns.md +3264 -3276
  43. package/dist/docs/components/editableContent.md +91 -91
  44. package/dist/docs/components/expander.md +4 -1
  45. package/dist/docs/components/fade.md +1 -1
  46. package/dist/docs/components/fadeExpander.md +1 -1
  47. package/dist/docs/components/fadeUp.md +32 -36
  48. package/dist/docs/components/feedback.md +1 -1
  49. package/dist/docs/components/filePickers.md +1 -1
  50. package/dist/docs/components/formLabel.md +29 -31
  51. package/dist/docs/components/groupedItemList.md +3 -7
  52. package/dist/docs/components/htmlTable.md +5074 -0
  53. package/dist/docs/components/iconList.md +4 -4
  54. package/dist/docs/components/imagePreloader.md +1 -1
  55. package/dist/docs/components/labeledElement.md +1 -1
  56. package/dist/docs/components/licensePlate.md +1 -1
  57. package/dist/docs/components/lineCharts.md +172 -170
  58. package/dist/docs/components/listMenu.md +15 -12
  59. package/dist/docs/components/loadMore.md +4 -2
  60. package/dist/docs/components/mainNavigation.md +1 -1
  61. package/dist/docs/components/mapCircle.md +10 -1
  62. package/dist/docs/components/mapCluster.md +25 -1
  63. package/dist/docs/components/mapContext.md +12 -4
  64. package/dist/docs/components/mapDraggableMarker.md +12 -1
  65. package/dist/docs/components/mapGettingStarted.md +39 -1
  66. package/dist/docs/components/mapInfoBubble.md +129 -2
  67. package/dist/docs/components/mapLayerGroup.md +10 -1
  68. package/dist/docs/components/mapMarker.md +10 -1
  69. package/dist/docs/components/mapPolygon.md +288 -85
  70. package/dist/docs/components/mapRoute.md +262 -172
  71. package/dist/docs/components/mapSettings.md +28 -1
  72. package/dist/docs/components/mapUtils.md +1 -1
  73. package/dist/docs/components/mapViewportHistory.md +287 -0
  74. package/dist/docs/components/multiselects.md +217 -18
  75. package/dist/docs/components/noData.md +1 -1
  76. package/dist/docs/components/notifications.md +2 -2
  77. package/dist/docs/components/numbercontrol.md +15 -15
  78. package/dist/docs/components/onboarding.md +1 -1
  79. package/dist/docs/components/page.md +1 -1
  80. package/dist/docs/components/pager.md +1 -1
  81. package/dist/docs/components/pieCharts.md +237 -211
  82. package/dist/docs/components/popover.md +1 -1
  83. package/dist/docs/components/position.md +1 -1
  84. package/dist/docs/components/radialBarCharts.md +446 -398
  85. package/dist/docs/components/radioCardGroup.md +1 -1
  86. package/dist/docs/components/radiobutton.md +98 -98
  87. package/dist/docs/components/releaseNotes.md +1 -1
  88. package/dist/docs/components/resizer.md +1 -1
  89. package/dist/docs/components/responsiveColumnStripe.md +1 -1
  90. package/dist/docs/components/responsiveVideo.md +1 -1
  91. package/dist/docs/components/rioglyph.md +1 -1
  92. package/dist/docs/components/rules.md +41 -47
  93. package/dist/docs/components/saveableInput.md +252 -252
  94. package/dist/docs/components/selects.md +332 -161
  95. package/dist/docs/components/sidebar.md +1 -1
  96. package/dist/docs/components/sliders.md +1 -1
  97. package/dist/docs/components/smoothScrollbars.md +19 -13
  98. package/dist/docs/components/spinners.md +1 -1
  99. package/dist/docs/components/states.md +15 -1
  100. package/dist/docs/components/statsWidgets.md +1 -1
  101. package/dist/docs/components/statusBar.md +3 -1
  102. package/dist/docs/components/stepButton.md +1 -1
  103. package/dist/docs/components/steppedProgressBars.md +9 -11
  104. package/dist/docs/components/subNavigation.md +1 -1
  105. package/dist/docs/components/supportMarker.md +1 -1
  106. package/dist/docs/components/svgImage.md +1 -1
  107. package/dist/docs/components/switch.md +5 -1
  108. package/dist/docs/components/table.md +21361 -0
  109. package/dist/docs/components/tableControls.md +982 -0
  110. package/dist/docs/components/tagManager.md +1 -1
  111. package/dist/docs/components/tags.md +1 -1
  112. package/dist/docs/components/teaser.md +1 -1
  113. package/dist/docs/components/textTruncateMiddle.md +1 -1
  114. package/dist/docs/components/timeline.md +1 -1
  115. package/dist/docs/components/timepicker.md +3 -1
  116. package/dist/docs/components/toggleButton.md +3 -1
  117. package/dist/docs/components/tooltip.md +8 -2
  118. package/dist/docs/components/tracker.md +1 -1
  119. package/dist/docs/components/virtualList.md +60 -60
  120. package/dist/docs/foundations.md +761 -3077
  121. package/dist/docs/start/changelog.md +73 -3
  122. package/dist/docs/start/goodtoknow.md +5 -1
  123. package/dist/docs/start/guidelines/color-combinations.md +5 -1
  124. package/dist/docs/start/guidelines/custom-css.md +26 -2
  125. package/dist/docs/start/guidelines/custom-rioglyph.md +20 -2
  126. package/dist/docs/start/guidelines/formatting.md +2254 -249
  127. package/dist/docs/start/guidelines/iframe.md +53 -19
  128. package/dist/docs/start/guidelines/obfuscate-data.md +24 -2
  129. package/dist/docs/start/guidelines/print-css.md +16 -2
  130. package/dist/docs/start/guidelines/spinner.md +1 -1
  131. package/dist/docs/start/guidelines/state-in-url.md +1138 -11
  132. package/dist/docs/start/guidelines/supported-browsers.md +9 -2
  133. package/dist/docs/start/guidelines/writing.md +228 -2
  134. package/dist/docs/start/howto.md +155 -13
  135. package/dist/docs/start/intro.md +40 -2
  136. package/dist/docs/start/responsiveness.md +27 -1
  137. package/dist/docs/templates/ai-assistant.md +311 -0
  138. package/dist/docs/templates/common-table.md +814 -0
  139. package/dist/docs/templates/detail-views.md +846 -0
  140. package/dist/docs/templates/expandable-details.md +214 -0
  141. package/dist/docs/templates/feature-cards.md +479 -0
  142. package/dist/docs/templates/form-summary.md +179 -0
  143. package/dist/docs/templates/form-toggle.md +329 -0
  144. package/dist/docs/templates/list-blocks.md +872 -0
  145. package/dist/docs/templates/loading-progress.md +100 -0
  146. package/dist/docs/templates/options-panel.md +132 -0
  147. package/dist/docs/templates/panel-variants.md +137 -0
  148. package/dist/docs/templates/progress-cards.md +541 -0
  149. package/dist/docs/templates/progress-success.md +125 -0
  150. package/dist/docs/templates/settings-form.md +401 -0
  151. package/dist/docs/templates/stats-blocks.md +1245 -0
  152. package/dist/docs/templates/table-panel.md +310 -0
  153. package/dist/docs/templates/usage-cards.md +199 -0
  154. package/dist/docs/utilities/classNames.md +89 -1
  155. package/dist/docs/utilities/deviceUtils.md +2 -2
  156. package/dist/docs/utilities/featureToggles.md +182 -2
  157. package/dist/docs/utilities/fuelTypeUtils.md +27 -29
  158. package/dist/docs/utilities/getTrackingAttributes.md +322 -0
  159. package/dist/docs/utilities/routeUtils.md +211 -3
  160. package/dist/docs/utilities/useAfterMount.md +1 -1
  161. package/dist/docs/utilities/useAutoAnimate.md +1 -1
  162. package/dist/docs/utilities/useAverage.md +1 -1
  163. package/dist/docs/utilities/useClickOutside.md +1 -1
  164. package/dist/docs/utilities/useClipboard.md +2 -2
  165. package/dist/docs/utilities/useCookies.md +1 -1
  166. package/dist/docs/utilities/useCount.md +1 -1
  167. package/dist/docs/utilities/useDarkMode.md +5 -4
  168. package/dist/docs/utilities/useDebugInfo.md +3 -3
  169. package/dist/docs/utilities/useDraggableElement.md +281 -0
  170. package/dist/docs/utilities/useEffectOnce.md +1 -1
  171. package/dist/docs/utilities/useElapsedTime.md +1 -1
  172. package/dist/docs/utilities/useElementSize.md +1 -1
  173. package/dist/docs/utilities/useEsc.md +1 -1
  174. package/dist/docs/utilities/useEvent.md +1 -1
  175. package/dist/docs/utilities/useFocusTrap.md +1 -1
  176. package/dist/docs/utilities/useFullscreen.md +1 -1
  177. package/dist/docs/utilities/useHover.md +1 -1
  178. package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
  179. package/dist/docs/utilities/useInterval.md +1 -1
  180. package/dist/docs/utilities/useIsFocusWithin.md +1 -1
  181. package/dist/docs/utilities/useKey.md +8 -10
  182. package/dist/docs/utilities/useLocalStorage.md +1 -1
  183. package/dist/docs/utilities/useLocationSuggestions.md +1 -1
  184. package/dist/docs/utilities/useMax.md +1 -1
  185. package/dist/docs/utilities/useMin.md +1 -1
  186. package/dist/docs/utilities/useMutationObserver.md +1 -1
  187. package/dist/docs/utilities/useOnScreen.md +1 -1
  188. package/dist/docs/utilities/useOnlineStatus.md +1 -1
  189. package/dist/docs/utilities/usePostMessage.md +2 -2
  190. package/dist/docs/utilities/usePostMessageSender.md +1 -1
  191. package/dist/docs/utilities/usePrevious.md +110 -2
  192. package/dist/docs/utilities/useResizeObserver.md +35 -15
  193. package/dist/docs/utilities/useRioCookieConsent.md +1 -1
  194. package/dist/docs/utilities/useScrollPosition.md +3 -6
  195. package/dist/docs/utilities/useSearch.md +1 -3
  196. package/dist/docs/utilities/useSearchHighlight.md +1 -1
  197. package/dist/docs/utilities/useSorting.md +370 -239
  198. package/dist/docs/utilities/useStateWithValidation.md +1 -1
  199. package/dist/docs/utilities/useSum.md +1 -1
  200. package/dist/docs/utilities/useTableExport.md +364 -288
  201. package/dist/docs/utilities/useTableSelection.md +88 -92
  202. package/dist/docs/utilities/useTimeout.md +1 -1
  203. package/dist/docs/utilities/useToggle.md +1 -1
  204. package/dist/docs/utilities/useUrlState.md +1 -1
  205. package/dist/docs/utilities/useWindowResize.md +1 -1
  206. package/dist/index.mjs +173 -69
  207. package/dist/search-synonyms.json +214 -76
  208. package/dist/version.json +2 -2
  209. package/package.json +4 -5
  210. package/dist/docs/components/mapRouteGenerator.md +0 -6
  211. package/dist/docs/components/tables.md +0 -8
@@ -3,7 +3,7 @@
3
3
  *Category:* Components
4
4
  *Section:* Map
5
5
  *Source:* https://uikit.developers.rio.cloud/#/components/mapRoute
6
- *Captured:* 2026-03-06T10:41:23.634Z
6
+ *Captured:* 2026-04-27T14:59:22.858Z
7
7
 
8
8
  There are currently 3 different route styles built-in into the map component.
9
9
 
@@ -13,15 +13,31 @@ The "reduced" style is meant for historic routes and shall indicate that the dri
13
13
 
14
14
  The "alternativeRoute" style is meant for route planning cases and shall show alternate routes.
15
15
 
16
+ If route interaction is enabled, the route uses an invisible hit area for hover and click handling. This keeps pointer and hover behavior stable even though the visible route may render multiple polylines such as line, border or arrows.
17
+
18
+ For routes with multiple segments, render each segment as its own Route component. This allows attaching separate eventListenerMap handlers and customData to each segment, for example to make an alternative route clickable independently from the main route.
19
+
16
20
  ### Example: Example 1
17
21
 
22
+ Terms of use © 1987–2026 HERE
23
+
24
+ 10 km
18
25
 
26
+ Choose view
27
+ Map view
28
+ Satellite
29
+
30
+ Traffic conditions
31
+ Show traffic incidents
32
+
33
+ Show route hit area
19
34
 
20
35
  #### React (tsx)
21
36
 
22
37
  ```tsx
23
38
  import { useId, useState } from 'react';
24
39
 
40
+ import Checkbox from '@rio-cloud/rio-uikit/Checkbox';
25
41
  import Map from '@rio-cloud/rio-uikit/Map';
26
42
  import EventUtils from '@rio-cloud/rio-uikit/EventUtils';
27
43
  import Route from '@rio-cloud/rio-uikit/Route';
@@ -62,7 +78,7 @@ const positions: Position[] = [
62
78
  const route2Positions = positions.map(pos => ({ lat: pos.lat, lng: pos.lng + offset }));
63
79
  const route3Positions = positions.map(pos => ({ lat: pos.lat, lng: pos.lng + offset * 2 }));
64
80
 
65
- const Routes = () => {
81
+ const Routes = ({ showHitArea }: { showHitArea: boolean }) => {
66
82
  const [activeRouteId, setActiveRouteId] = useState(1);
67
83
  const isActive = (id: number) => activeRouteId === id;
68
84
  const isFirstRouteActive = isActive(1);
@@ -99,6 +115,8 @@ const Routes = () => {
99
115
  endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-route' />}
100
116
  isRouteAlternative={!isFirstRouteActive}
101
117
  eventListenerMap={routeEventListenerMap}
118
+ hoverStyle={{ width: 7, borderWidth: 3 }}
119
+ showHitArea={showHitArea}
102
120
  customData={{ id: 1 }}
103
121
  hasArrows={false}
104
122
  markers={[
@@ -147,6 +165,8 @@ const Routes = () => {
147
165
  hasArrows={false}
148
166
  isRouteAlternative={!isSecondRouteActive}
149
167
  eventListenerMap={routeEventListenerMap}
168
+ hoverStyle={{ width: 7, borderWidth: 3 }}
169
+ showHitArea={showHitArea}
150
170
  customData={{ id: 2 }}
151
171
  markers={[
152
172
  <Marker
@@ -172,6 +192,7 @@ const Routes = () => {
172
192
  endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-route' />}
173
193
  eventListenerMap={routeEventListenerMap}
174
194
  hasArrows={false}
195
+ showHitArea={showHitArea}
175
196
  isReduced
176
197
  />
177
198
  </>
@@ -180,32 +201,40 @@ const Routes = () => {
180
201
 
181
202
  const RouteExample = () => {
182
203
  const position = { lat: 48.7497783, lng: 13.1000291 };
204
+ const [showHitArea, setShowHitArea] = useState(false);
183
205
 
184
206
  return (
185
- <Map
186
- credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
187
- center={position}
188
- zoom={10}
189
- height={300}
190
- mapSettings={
191
- <MapSettings
192
- options={[
193
- <MapTypeSettings
194
- key='mapTypeSettings'
195
- tooltip='Change map type'
196
- dropdownHeaderText='Map views'
197
- defaultTypeLabel='Default view'
198
- truckTypeLabel='Truck view'
199
- terrainTypeLabel='Terrain view'
200
- satelliteTypeLabel='Satellite view'
201
- nightTypeLabel='Night view'
202
- />,
203
- ]}
204
- />
205
- }
206
- >
207
- <Routes />
208
- </Map>
207
+ <>
208
+ <Map
209
+ credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
210
+ center={position}
211
+ zoom={10}
212
+ height={300}
213
+ mapSettings={
214
+ <MapSettings
215
+ options={[
216
+ <MapTypeSettings
217
+ key='mapTypeSettings'
218
+ tooltip='Change map type'
219
+ dropdownHeaderText='Map views'
220
+ defaultTypeLabel='Default view'
221
+ truckTypeLabel='Truck view'
222
+ terrainTypeLabel='Terrain view'
223
+ satelliteTypeLabel='Satellite view'
224
+ nightTypeLabel='Night view'
225
+ />,
226
+ ]}
227
+ />
228
+ }
229
+ >
230
+ <Routes showHitArea={showHitArea} />
231
+ </Map>
232
+ <div className='margin-top-10'>
233
+ <Checkbox checked={showHitArea} onChange={event => setShowHitArea(event.target.checked)}>
234
+ Show route hit area
235
+ </Checkbox>
236
+ </div>
237
+ </>
209
238
  );
210
239
  };
211
240
 
@@ -222,17 +251,31 @@ export default RouteExample;
222
251
  | isReduced | Boolean | false | Defines whether to render the route as reduced (transparent). |
223
252
  | isRouteAlternative | Boolean | false | Defines whether to render the route with alternative route style. |
224
253
  | style | RouteStyle | — | Custom style for the route. |
225
- | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. |
254
+ | hoverStyle | RouteStyle | — | Optional style that is applied while hovering the route. |
255
+ | showHitArea | Boolean | false | Shows the invisible route hit area for debugging. The hit area is used as the route interaction surface. |
256
+ | cursor | string | — | Optional CSS cursor for the route. Defaults to pointer when tap, double tap or context menu handlers are set. |
257
+ | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. Events are attached to the route hit area, which acts as the route interaction surface. |
226
258
  | startIcon | JSX.Element | — | Icon to be displayed at the start of the route. |
227
259
  | middleIcon | JSX.Element | — | Icon to be displayed at the middle of the route. |
228
260
  | endIcon | JSX.Element | — | Icon to be displayed at the end of the route. |
229
261
  | markers | JSX.Element[] | — | Array of markers to be displayed on the route. |
230
- | customData | object | — | Custom data to be passed to the route. |
262
+ | customData | object | — | Custom data to be passed to the route and returned by route interaction events. |
231
263
 
232
264
  ## Route with changing geometry
233
265
 
234
266
  ### Example: Example 2
235
267
 
268
+ Terms of use © 1987–2026 HERE
269
+
270
+ 10 km
271
+
272
+ Choose view
273
+ Map view
274
+ Satellite
275
+
276
+ Traffic conditions
277
+ Show traffic incidents
278
+
236
279
  Change route Toggle route
237
280
 
238
281
  #### React (tsx)
@@ -286,9 +329,7 @@ const RouteWithChangingGeometryExample = () => {
286
329
 
287
330
  const handleClick = () => {
288
331
  const modifier = getRandomModifier();
289
- const newRoute = currentRoute.map(pos => {
290
- return { lat: pos.lat + modifier, lng: pos.lng + modifier };
291
- });
332
+ const newRoute = currentRoute.map(pos => ({ lat: pos.lat + modifier, lng: pos.lng + modifier }));
292
333
 
293
334
  setCurrentRoute(newRoute);
294
335
  setCenter(newRoute[Math.floor(currentRoute.length / 2)]);
@@ -357,17 +398,31 @@ export default RouteWithChangingGeometryExample;
357
398
  | isReduced | Boolean | false | Defines whether to render the route as reduced (transparent). |
358
399
  | isRouteAlternative | Boolean | false | Defines whether to render the route with alternative route style. |
359
400
  | style | RouteStyle | — | Custom style for the route. |
360
- | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. |
401
+ | hoverStyle | RouteStyle | — | Optional style that is applied while hovering the route. |
402
+ | showHitArea | Boolean | false | Shows the invisible route hit area for debugging. The hit area is used as the route interaction surface. |
403
+ | cursor | string | — | Optional CSS cursor for the route. Defaults to pointer when tap, double tap or context menu handlers are set. |
404
+ | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. Events are attached to the route hit area, which acts as the route interaction surface. |
361
405
  | startIcon | JSX.Element | — | Icon to be displayed at the start of the route. |
362
406
  | middleIcon | JSX.Element | — | Icon to be displayed at the middle of the route. |
363
407
  | endIcon | JSX.Element | — | Icon to be displayed at the end of the route. |
364
408
  | markers | JSX.Element[] | — | Array of markers to be displayed on the route. |
365
- | customData | object | — | Custom data to be passed to the route. |
409
+ | customData | object | — | Custom data to be passed to the route and returned by route interaction events. |
366
410
 
367
411
  ## Route with changing styles
368
412
 
369
413
  ### Example: Example 3
370
414
 
415
+ Terms of use © 1987–2026 HERE
416
+
417
+ 10 km
418
+
419
+ Choose view
420
+ Map view
421
+ Satellite
422
+
423
+ Traffic conditions
424
+ Show traffic incidents
425
+
371
426
  Toggle reduced style Toggle arrows
372
427
 
373
428
  #### React (tsx)
@@ -469,18 +524,30 @@ export default RouteWithChangingStylesExample;
469
524
  | isReduced | Boolean | false | Defines whether to render the route as reduced (transparent). |
470
525
  | isRouteAlternative | Boolean | false | Defines whether to render the route with alternative route style. |
471
526
  | style | RouteStyle | — | Custom style for the route. |
472
- | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. |
527
+ | hoverStyle | RouteStyle | — | Optional style that is applied while hovering the route. |
528
+ | showHitArea | Boolean | false | Shows the invisible route hit area for debugging. The hit area is used as the route interaction surface. |
529
+ | cursor | string | — | Optional CSS cursor for the route. Defaults to pointer when tap, double tap or context menu handlers are set. |
530
+ | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. Events are attached to the route hit area, which acts as the route interaction surface. |
473
531
  | startIcon | JSX.Element | — | Icon to be displayed at the start of the route. |
474
532
  | middleIcon | JSX.Element | — | Icon to be displayed at the middle of the route. |
475
533
  | endIcon | JSX.Element | — | Icon to be displayed at the end of the route. |
476
534
  | markers | JSX.Element[] | — | Array of markers to be displayed on the route. |
477
- | customData | object | — | Custom data to be passed to the route. |
535
+ | customData | object | — | Custom data to be passed to the route and returned by route interaction events. |
478
536
 
479
537
  ## Route with different colors
480
538
 
481
539
  ### Example: Example 4
482
540
 
541
+ Terms of use © 1987–2026 HERE
542
+
543
+ 10 km
483
544
 
545
+ Choose view
546
+ Map view
547
+ Satellite
548
+
549
+ Traffic conditions
550
+ Show traffic incidents
484
551
 
485
552
  #### React (tsx)
486
553
 
@@ -536,67 +603,65 @@ const getRandomModifier = () => {
536
603
  return Math.random() * Math.floor(1) * operator;
537
604
  };
538
605
 
539
- export default () => {
540
- return (
541
- <Map
542
- credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
543
- center={center}
544
- zoom={10}
545
- height={300}
546
- mapSettings={
547
- <MapSettings
548
- options={[
549
- <MapTypeSettings
550
- key='mapTypeSettings'
551
- tooltip='Change map type'
552
- dropdownHeaderText='Map views'
553
- defaultTypeLabel='Default view'
554
- truckTypeLabel='Truck view'
555
- terrainTypeLabel='Terrain view'
556
- satelliteTypeLabel='Satellite view'
557
- nightTypeLabel='Night view'
558
- />,
559
- ]}
606
+ export default () => (
607
+ <Map
608
+ credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
609
+ center={center}
610
+ zoom={10}
611
+ height={300}
612
+ mapSettings={
613
+ <MapSettings
614
+ options={[
615
+ <MapTypeSettings
616
+ key='mapTypeSettings'
617
+ tooltip='Change map type'
618
+ dropdownHeaderText='Map views'
619
+ defaultTypeLabel='Default view'
620
+ truckTypeLabel='Truck view'
621
+ terrainTypeLabel='Terrain view'
622
+ satelliteTypeLabel='Satellite view'
623
+ nightTypeLabel='Night view'
624
+ />,
625
+ ]}
626
+ />
627
+ }
628
+ >
629
+ <Route
630
+ positions={goodRouteStart}
631
+ startIcon={<SingleMapMarker iconNames={['start']} markerColor='bg-map-marker-route' />}
632
+ style={{ color: ROUTE_COLOR_WARNING }}
633
+ />
634
+ <Route
635
+ positions={dangerRoute}
636
+ middleIcon={
637
+ <SingleMapMarker
638
+ anchorIconName='road-restrictions'
639
+ anchorSize='lg'
640
+ markerColor='bg-map-marker-danger'
641
+ clickable={false}
560
642
  />
561
643
  }
562
- >
563
- <Route
564
- positions={goodRouteStart}
565
- startIcon={<SingleMapMarker iconNames={['start']} markerColor='bg-map-marker-route' />}
566
- style={{ color: ROUTE_COLOR_WARNING }}
567
- />
568
- <Route
569
- positions={dangerRoute}
570
- middleIcon={
571
- <SingleMapMarker
572
- anchorIconName='road-restrictions'
573
- anchorSize='lg'
574
- markerColor='bg-map-marker-danger'
575
- clickable={false}
576
- />
577
- }
578
- style={{ color: ROUTE_COLOR_DANGER, borderColor: '#b91624' }}
579
- arrowStyle={{
580
- fillColor: ROUTE_COLOR_WHITE,
581
- strokeColor: ROUTE_COLOR_WHITE,
582
- }}
583
- />
584
- <Route
585
- positions={goodRouteEnd}
586
- middleIcon={
587
- <SingleMapMarker
588
- anchorIconName='ok'
589
- anchorSize='lg'
590
- markerColor='bg-map-marker-success'
591
- clickable={false}
592
- />
593
- }
594
- endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-route' />}
595
- style={{ color: ROUTE_COLOR_SUCCESS }}
596
- />
597
- </Map>
598
- );
599
- };
644
+ style={{ color: ROUTE_COLOR_DANGER, borderColor: '#b91624' }}
645
+ arrowStyle={{
646
+ fillColor: ROUTE_COLOR_WHITE,
647
+ strokeColor: ROUTE_COLOR_WHITE,
648
+ }}
649
+ />
650
+ <Route
651
+ positions={goodRouteEnd}
652
+ middleIcon={
653
+ <SingleMapMarker
654
+ anchorIconName='ok'
655
+ anchorSize='lg'
656
+ markerColor='bg-map-marker-success'
657
+ clickable={false}
658
+ />
659
+ }
660
+ endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-route' />}
661
+ style={{ color: ROUTE_COLOR_SUCCESS }}
662
+ />
663
+ </Map>
664
+ );
600
665
  ```
601
666
 
602
667
  #### Props
@@ -609,18 +674,30 @@ export default () => {
609
674
  | isReduced | Boolean | false | Defines whether to render the route as reduced (transparent). |
610
675
  | isRouteAlternative | Boolean | false | Defines whether to render the route with alternative route style. |
611
676
  | style | RouteStyle | — | Custom style for the route. |
612
- | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. |
677
+ | hoverStyle | RouteStyle | — | Optional style that is applied while hovering the route. |
678
+ | showHitArea | Boolean | false | Shows the invisible route hit area for debugging. The hit area is used as the route interaction surface. |
679
+ | cursor | string | — | Optional CSS cursor for the route. Defaults to pointer when tap, double tap or context menu handlers are set. |
680
+ | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. Events are attached to the route hit area, which acts as the route interaction surface. |
613
681
  | startIcon | JSX.Element | — | Icon to be displayed at the start of the route. |
614
682
  | middleIcon | JSX.Element | — | Icon to be displayed at the middle of the route. |
615
683
  | endIcon | JSX.Element | — | Icon to be displayed at the end of the route. |
616
684
  | markers | JSX.Element[] | — | Array of markers to be displayed on the route. |
617
- | customData | object | — | Custom data to be passed to the route. |
685
+ | customData | object | — | Custom data to be passed to the route and returned by route interaction events. |
618
686
 
619
687
  ## Route indicating a range for electric vehicles
620
688
 
621
689
  ### Example: Example 5
622
690
 
691
+ Terms of use © 1987–2026 HERE
692
+
693
+ 10 km
694
+
695
+ Choose view
696
+ Map view
697
+ Satellite
623
698
 
699
+ Traffic conditions
700
+ Show traffic incidents
624
701
 
625
702
  #### React (tsx)
626
703
 
@@ -671,67 +748,65 @@ const getRandomModifier = () => {
671
748
  return Math.random() * Math.floor(1) * operator;
672
749
  };
673
750
 
674
- export default () => {
675
- return (
676
- <Map
677
- credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
678
- center={center}
679
- zoom={10}
680
- height={300}
681
- mapSettings={
682
- <MapSettings
683
- options={[
684
- <MapTypeSettings
685
- key='mapTypeSettings'
686
- tooltip='Change map type'
687
- dropdownHeaderText='Map views'
688
- defaultTypeLabel='Default view'
689
- truckTypeLabel='Truck view'
690
- terrainTypeLabel='Terrain view'
691
- satelliteTypeLabel='Satellite view'
692
- nightTypeLabel='Night view'
693
- />,
694
- ]}
751
+ export default () => (
752
+ <Map
753
+ credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
754
+ center={center}
755
+ zoom={10}
756
+ height={300}
757
+ mapSettings={
758
+ <MapSettings
759
+ options={[
760
+ <MapTypeSettings
761
+ key='mapTypeSettings'
762
+ tooltip='Change map type'
763
+ dropdownHeaderText='Map views'
764
+ defaultTypeLabel='Default view'
765
+ truckTypeLabel='Truck view'
766
+ terrainTypeLabel='Terrain view'
767
+ satelliteTypeLabel='Satellite view'
768
+ nightTypeLabel='Night view'
769
+ />,
770
+ ]}
771
+ />
772
+ }
773
+ >
774
+ <Route
775
+ positions={goodRouteStart}
776
+ startIcon={<SingleMapMarker iconNames={['start']} markerColor='bg-map-marker-route' />}
777
+ />
778
+ <Route
779
+ positions={dangerRoute}
780
+ startIcon={
781
+ <SingleMapMarker
782
+ anchorIconName='battery-level-low'
783
+ anchorSize='lg'
784
+ markerColor='bg-map-marker-warning'
785
+ clickable={false}
695
786
  />
696
787
  }
697
- >
698
- <Route
699
- positions={goodRouteStart}
700
- startIcon={<SingleMapMarker iconNames={['start']} markerColor='bg-map-marker-route' />}
701
- />
702
- <Route
703
- positions={dangerRoute}
704
- startIcon={
705
- <SingleMapMarker
706
- anchorIconName='battery-level-low'
707
- anchorSize='lg'
708
- markerColor='bg-map-marker-warning'
709
- clickable={false}
710
- />
711
- }
712
- style={{ color: ROUTE_COLOR_WARNING }}
713
- arrowStyle={{
714
- fillColor: ARROW_COLOR_WARNING,
715
- strokeColor: ARROW_COLOR_WARNING,
716
- }}
717
- />
718
- <Route
719
- positions={goodRouteEnd}
720
- startIcon={
721
- <SingleMapMarker
722
- anchorIconName='battery-level-empty'
723
- anchorSize='lg'
724
- markerColor='bg-map-marker-danger'
725
- clickable={false}
726
- />
727
- }
728
- endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-danger' />}
729
- style={{ color: ROUTE_COLOR_DANGER, borderColor: '#b91624', borderWidth: 0, lineDash: [1.5, 1] }}
730
- hasArrows={false}
731
- />
732
- </Map>
733
- );
734
- };
788
+ style={{ color: ROUTE_COLOR_WARNING }}
789
+ arrowStyle={{
790
+ fillColor: ARROW_COLOR_WARNING,
791
+ strokeColor: ARROW_COLOR_WARNING,
792
+ }}
793
+ />
794
+ <Route
795
+ positions={goodRouteEnd}
796
+ startIcon={
797
+ <SingleMapMarker
798
+ anchorIconName='battery-level-empty'
799
+ anchorSize='lg'
800
+ markerColor='bg-map-marker-danger'
801
+ clickable={false}
802
+ />
803
+ }
804
+ endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-danger' />}
805
+ style={{ color: ROUTE_COLOR_DANGER, borderColor: '#b91624', borderWidth: 0, lineDash: [1.5, 1] }}
806
+ hasArrows={false}
807
+ />
808
+ </Map>
809
+ );
735
810
  ```
736
811
 
737
812
  #### Props
@@ -744,17 +819,31 @@ export default () => {
744
819
  | isReduced | Boolean | false | Defines whether to render the route as reduced (transparent). |
745
820
  | isRouteAlternative | Boolean | false | Defines whether to render the route with alternative route style. |
746
821
  | style | RouteStyle | — | Custom style for the route. |
747
- | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. |
822
+ | hoverStyle | RouteStyle | — | Optional style that is applied while hovering the route. |
823
+ | showHitArea | Boolean | false | Shows the invisible route hit area for debugging. The hit area is used as the route interaction surface. |
824
+ | cursor | string | — | Optional CSS cursor for the route. Defaults to pointer when tap, double tap or context menu handlers are set. |
825
+ | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. Events are attached to the route hit area, which acts as the route interaction surface. |
748
826
  | startIcon | JSX.Element | — | Icon to be displayed at the start of the route. |
749
827
  | middleIcon | JSX.Element | — | Icon to be displayed at the middle of the route. |
750
828
  | endIcon | JSX.Element | — | Icon to be displayed at the end of the route. |
751
829
  | markers | JSX.Element[] | — | Array of markers to be displayed on the route. |
752
- | customData | object | — | Custom data to be passed to the route. |
830
+ | customData | object | — | Custom data to be passed to the route and returned by route interaction events. |
753
831
 
754
832
  ## Route sandbox
755
833
 
756
834
  ### Example: Example 6
757
835
 
836
+ Terms of use © 1987–2026 HERE
837
+
838
+ 10 km
839
+
840
+ Choose view
841
+ Map view
842
+ Satellite
843
+
844
+ Traffic conditions
845
+ Show traffic incidents
846
+
758
847
  {
759
848
  "segments": [
760
849
  {
@@ -2151,18 +2240,16 @@ const Markers = ({ markers }: { markers: SandboxMarker[] }) => {
2151
2240
  };
2152
2241
 
2153
2242
  const Segments = ({ segments }: { segments: RouteSegment[] }) => {
2154
- const mapSegments = segments.map(segment => {
2155
- return (
2156
- <Route
2157
- key={getRandomValueToForceRerender()}
2158
- positions={segment.points}
2159
- isRouteAlternative={segment.alternative}
2160
- isReduced={segment.reduced}
2161
- style={segment.style}
2162
- hasArrows={segment.showArrows}
2163
- />
2164
- );
2165
- });
2243
+ const mapSegments = segments.map(segment => (
2244
+ <Route
2245
+ key={getRandomValueToForceRerender()}
2246
+ positions={segment.points}
2247
+ isRouteAlternative={segment.alternative}
2248
+ isReduced={segment.reduced}
2249
+ style={segment.style}
2250
+ hasArrows={segment.showArrows}
2251
+ />
2252
+ ));
2166
2253
  return mapSegments;
2167
2254
  };
2168
2255
 
@@ -2210,7 +2297,7 @@ const RouteSandboxExample = () => {
2210
2297
  setMarkers([...data.markers, ...routePoints]);
2211
2298
  setSegments(data.segments);
2212
2299
  setHasError(false);
2213
- } catch (error) {
2300
+ } catch {
2214
2301
  setHasError(true);
2215
2302
  }
2216
2303
  }, [text, showRouteEvents]);
@@ -2343,9 +2430,12 @@ const defaultMarker = {
2343
2430
  | isReduced | Boolean | false | Defines whether to render the route as reduced (transparent). |
2344
2431
  | isRouteAlternative | Boolean | false | Defines whether to render the route with alternative route style. |
2345
2432
  | style | RouteStyle | — | Custom style for the route. |
2346
- | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. |
2433
+ | hoverStyle | RouteStyle | — | Optional style that is applied while hovering the route. |
2434
+ | showHitArea | Boolean | false | Shows the invisible route hit area for debugging. The hit area is used as the route interaction surface. |
2435
+ | cursor | string | — | Optional CSS cursor for the route. Defaults to pointer when tap, double tap or context menu handlers are set. |
2436
+ | eventListenerMap | EventListenerMap | — | Map of event listeners for the route. Events are attached to the route hit area, which acts as the route interaction surface. |
2347
2437
  | startIcon | JSX.Element | — | Icon to be displayed at the start of the route. |
2348
2438
  | middleIcon | JSX.Element | — | Icon to be displayed at the middle of the route. |
2349
2439
  | endIcon | JSX.Element | — | Icon to be displayed at the end of the route. |
2350
2440
  | markers | JSX.Element[] | — | Array of markers to be displayed on the route. |
2351
- | customData | object | — | Custom data to be passed to the route. |
2441
+ | customData | object | — | Custom data to be passed to the route and returned by route interaction events. |