@rio-cloud/rio-uikit 0.16.2-beta.14 → 0.16.2-beta.16
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/.DS_Store +0 -0
- package/Map.d.ts +1 -0
- package/components/activity/Activity.js +6 -4
- package/components/animatedNumber/AnimatedNumber.js +6 -4
- package/components/applicationHeader/ApplicationHeader.js +6 -3
- package/components/applicationLayout/ApplicationLayout.js +8 -8
- package/components/applicationLayout/ApplicationLayoutBody.js +6 -3
- package/components/applicationLayout/ApplicationLayoutBodyBanner.js +4 -3
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +6 -4
- package/components/applicationLayout/ApplicationLayoutHeader.js +9 -7
- package/components/assetTree/AssetTree.js +6 -3
- package/components/assetTree/TypeCounter.js +6 -4
- package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
- package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
- package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
- package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
- package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
- package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
- package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
- package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
- package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
- package/components/map/components/Map.js +3 -1
- package/components/map/components/features/Route.js +1 -9
- package/components/map/components/features/basics/Circle.js +9 -5
- package/components/map/components/features/basics/MapLayerGroup.js +6 -5
- package/components/map/components/features/basics/Polygon.js +4 -4
- package/components/map/components/features/basics/Polyline.js +5 -30
- package/components/map/components/features/basics/marker/DomMarker.js +9 -3
- package/components/map/components/features/basics/marker/Marker.js +6 -31
- package/components/map/components/features/layers/Layer.js +1 -1
- package/components/map/components/features/layers/MarkerLayer.js +0 -1
- package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
- package/components/map/components/features/layers/TrafficLayer.js +2 -2
- package/components/map/components/features/layers/clustering/ClusterLayer.js +1 -1
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +16 -2
- package/components/map/icons/MapIcon.js +46 -66
- package/components/mapMarker/ClusterMapMarker.js +16 -20
- package/components/mapMarker/SingleMapMarker.js +17 -28
- package/lib/es/Map.d.ts +1 -0
- package/lib/es/components/activity/Activity.js +9 -4
- package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
- package/lib/es/components/applicationHeader/ApplicationHeader.js +5 -2
- package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
- package/lib/es/components/assetTree/AssetTree.js +5 -2
- package/lib/es/components/assetTree/TypeCounter.js +9 -4
- package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
- package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
- package/lib/es/components/map/components/Map.js +3 -1
- package/lib/es/components/map/components/features/Route.js +1 -9
- package/lib/es/components/map/components/features/basics/Circle.js +8 -4
- package/lib/es/components/map/components/features/basics/MapLayerGroup.js +6 -5
- package/lib/es/components/map/components/features/basics/Polygon.js +4 -4
- package/lib/es/components/map/components/features/basics/Polyline.js +5 -30
- package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
- package/lib/es/components/map/components/features/basics/marker/Marker.js +6 -31
- package/lib/es/components/map/components/features/layers/Layer.js +1 -1
- package/lib/es/components/map/components/features/layers/MarkerLayer.js +0 -1
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
- package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
- package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +16 -2
- package/lib/es/components/map/icons/MapIcon.js +46 -66
- package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
- package/lib/es/components/mapMarker/SingleMapMarker.js +17 -28
- package/lib/es/styles/components/MapMarker.less +224 -14
- package/lib/es/styles/components/MapSettings.less +45 -29
- package/lib/es/styles/design/border.less +14 -14
- package/lib/es/styles/design/colors.less +7 -6
- package/lib/es/styles/design/divide.less +165 -0
- package/lib/es/styles/design/responsive/_imports.less +1 -0
- package/lib/es/styles/design/responsive/gap.less +0 -8
- package/lib/es/styles/design/responsive/spacing.less +12 -0
- package/lib/es/styles/rio-uikit-core.less +1 -0
- package/lib/es/styles/variables/light_colors.less +6 -6
- package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
- package/lib/es/types.ts +6 -4
- package/lib/es/version.json +1 -1
- package/package.json +1 -1
- package/styles/components/MapMarker.less +224 -14
- package/styles/components/MapSettings.less +45 -29
- package/styles/design/border.less +14 -14
- package/styles/design/colors.less +7 -6
- package/styles/design/divide.less +165 -0
- package/styles/design/responsive/_imports.less +1 -0
- package/styles/design/responsive/gap.less +0 -8
- package/styles/design/responsive/spacing.less +12 -0
- package/styles/rio-uikit-core.less +1 -0
- package/styles/variables/light_colors.less +6 -6
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
- package/types.ts +6 -4
- package/version.json +1 -1
- package/components/.DS_Store +0 -0
- package/components/map/.DS_Store +0 -0
- package/components/map/components/.DS_Store +0 -0
- package/components/map/components/features/layers/TruckLayer.js +0 -20
- package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
- package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
- package/hooks/useHereMap.ts +0 -23
- package/hooks/useScripts.ts +0 -52
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
- package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
- package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
- package/lib/es/hooks/useHereMap.ts +0 -23
- package/lib/es/hooks/useScripts.ts +0 -52
- package/lib/es/styles/.DS_Store +0 -0
- package/lib/es/styles/mixins/_mixins.less +0 -13
- package/lib/es/styles/mixins/alerts.less +0 -13
- package/lib/es/styles/shared/colors.json +0 -56
- package/lib/es/styles/shared/colors.less +0 -73
- package/lib/es/styles/shared/screens.less +0 -7
- package/lib/es/styles/shared/text.less +0 -23
- package/lib/es/styles/variables.less +0 -186
- package/lib/es/themes/.DS_Store +0 -0
- package/styles/.DS_Store +0 -0
- package/styles/mixins/_mixins.less +0 -13
- package/styles/mixins/alerts.less +0 -13
- package/styles/shared/colors.json +0 -56
- package/styles/shared/colors.less +0 -73
- package/styles/shared/screens.less +0 -7
- package/styles/shared/text.less +0 -23
- package/styles/variables.less +0 -186
- package/themes/.DS_Store +0 -0
- package/themes/Volkswagen/.DS_Store +0 -0
- package/themes/Website/.DS_Store +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><g fill="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><g fill="none" fill-rule="evenodd"><path fill="#939BA8" d="m34.855 19.215 5.206 2.95-19.98 11.322L.101 22.165l4.948-2.804-.462.742h1.115l-.336.473-2.805 1.59 2.98 1.688c.778-.443 1.594-.91 2.415-1.4h.156v.259c-.767.46-1.53.9-2.263 1.316l3.44 1.95c1.227-.71 2.136-1.291 3.013-2.049-.344-.163-.688-.322-1.03-.48-.44-.205-.882-.41-1.32-.62v-.336c.482.233.968.459 1.455.684.378.176.76.353 1.143.536.403-.367.806-.776 1.236-1.26h.331l-.157-.198a26.9 26.9 0 0 0 .427-.504c.196-.238.388-.477.582-.716.325-.404.658-.812 1.006-1.215a19.65 19.65 0 0 0-.656.049c-.363.031-.775.066-1.226.08-.286.01-.57-.007-.852-.044l-.196-.33c.341.057.688.086 1.04.074.443-.013.833-.047 1.209-.079.336-.03.65-.055.954-.061.17-.189.342-.374.52-.553.473-.481.948-.88 1.49-1.157-.212.02-.426.03-.639.031a5.36 5.36 0 0 1-1.258-.156c-.69.332-1.381.678-2.04 1.065-.44.254-.872.523-1.299.798l-.156-.263c.425-.275.857-.54 1.294-.796a28.137 28.137 0 0 1 1.752-.925c-.587-.18-1.142-.42-1.676-.685l.711.002c.373.164.756.31 1.159.427.077.024.147.04.22.058.34-.162.68-.322 1.017-.478l.714.002-.42.195-.831.386c.684.115 1.208.062 1.829-.001.087-.01.177-.018.27-.027v.418c-.73.237-1.309.697-1.92 1.316-.112.113-.22.233-.328.35.889.045 1.728.342 2.804 1.383.215.207.42.423.62.641.2-.218.405-.434.62-.641 1.076-1.041 1.915-1.34 2.803-1.385-.104-.112-.208-.227-.316-.335-.614-.625-1.196-1.09-1.93-1.328v-.419l.268.027c.623.063 1.145.115 1.827.001-.425-.201-.851-.4-1.279-.594h.725c.345.16.692.324 1.04.49.072-.02.142-.037.22-.059a9.43 9.43 0 0 0 1.164-.43h.708c-.536.266-1.092.506-1.68.686.59.29 1.18.593 1.75.925a34.77 34.77 0 0 1 1.603.995 7.72 7.72 0 0 0 .822-.26h.775c-.41.185-.834.349-1.27.475.338.223.674.448 1.006.671.527.356 1.055.711 1.59 1.055.268.173.542.341.814.51 1-.523 1.99-1.064 2.97-1.624l-1.915-1.086h2.46-.001Zm-5.981-3.39-.62 1.044-1.133-.643c-.284.16-.572.32-.865.475l-.19-.245c.25-.13.497-.267.745-.406l-1.892-1.073-.827-1.066h1.394l-.005-.008 3.393 1.922Zm-14.142-1.95-.023.036h1.395l-.823 1.045-1.93 1.092c.25.141.498.279.748.41l-.191.243a30.88 30.88 0 0 1-.866-.475l-1.489.844-.62-1.043 3.799-2.153v.001Zm22.87 8.29-2.983-1.69c-.973.552-1.968 1.108-2.979 1.637 1.01.616 2.023 1.198 2.98 1.742l2.982-1.689Zm-11.757-3.427a29.093 29.093 0 0 0-2.04-1.061 5.36 5.36 0 0 1-1.259.156c-.211 0-.416-.013-.623-.03.535.275 1.003.674 1.49 1.168.173.176.34.357.504.539.304.006.62.033.956.061.377.032.764.065 1.208.079.373.014.741-.019 1.105-.085-.44-.286-.887-.562-1.34-.827h-.001Zm-11.22 3.202a18.949 18.949 0 0 1-1.783 1.914c.644.31 1.287.638 1.909.998a35.03 35.03 0 0 1 1.558.967c.244-.216.482-.437.711-.675.593-.614 1.136-1.29 1.661-1.943.385-.478.78-.962 1.197-1.434a14.496 14.496 0 0 0-.631-.655c-1.113-1.075-1.903-1.31-2.854-1.306-.406.462-.8.935-1.184 1.416-.194.24-.388.481-.585.718h.001Zm2.618 3.412a11.06 11.06 0 0 1-.671.64c.373.245.743.493 1.107.737.53.358 1.06.715 1.598 1.061.264.171.535.336.804.503.27-.167.54-.332.804-.503.538-.347 1.068-.704 1.599-1.061.363-.244.733-.492 1.106-.737a12.127 12.127 0 0 1-.67-.64c-.601-.624-1.15-1.305-1.68-1.964a41.762 41.762 0 0 0-1.159-1.391c-.403.457-.786.928-1.16 1.391-.528.659-1.076 1.34-1.678 1.964Zm5.9-.206c.228.237.468.459.71.674.51-.333 1.03-.66 1.558-.967.622-.36 1.266-.688 1.91-1a19.294 19.294 0 0 1-1.775-1.903c-.2-.242-.397-.486-.594-.73-.38-.47-.77-.95-1.18-1.413-.952-.003-1.742.231-2.855 1.307-.218.21-.427.43-.63.655.416.47.811.956 1.196 1.434.525.654 1.068 1.328 1.66 1.943Zm2.64-3.386c.661.798 1.246 1.42 1.832 1.95.381-.18.761-.358 1.137-.532.505-.235 1.01-.467 1.51-.711.255-.123.508-.253.76-.382-.221-.138-.445-.275-.665-.417-.538-.345-1.066-.702-1.597-1.06-.402-.271-.812-.545-1.226-.817a5.73 5.73 0 0 1-1.466.16 21.788 21.788 0 0 1-1.225-.081c-.232-.02-.449-.038-.657-.05.346.4.68.81 1.004 1.212.197.243.394.487.593.728ZM12.6 24.072c-.895.786-1.811 1.385-3.003 2.078l3.444 1.953c.993-.576 2.05-1.247 3.031-2.077a33.171 33.171 0 0 0-1.476-.914 28.18 28.18 0 0 0-1.996-1.04Zm3.735 2.127c-.967.83-2.007 1.5-2.992 2.075l3.449 1.954a112.11 112.11 0 0 0 3.003-1.756 41.95 41.95 0 0 1-.687-.43 96.77 96.77 0 0 1-1.604-1.063c-.384-.258-.775-.52-1.169-.78Zm3.746 2.452c-1.009.62-2.02 1.206-2.982 1.753l2.982 1.69 2.982-1.692a103.44 103.44 0 0 1-2.982-1.75v-.001Zm.285-.177c1.02.622 2.042 1.208 3.005 1.756l3.448-1.955c-.985-.575-2.022-1.245-2.991-2.075-.396.26-.787.52-1.171.78-.532.359-1.064.717-1.604 1.064-.227.147-.458.287-.687.43Zm3.724-2.448c.984.832 2.04 1.5 3.034 2.077l3.443-1.951c-1.195-.695-2.11-1.293-3.005-2.079-.674.324-1.348.664-1.995 1.04-.5.292-.992.596-1.477.913Zm3.774-2.097c.887.764 1.803 1.352 3.006 2.051l3.442-1.95a102.96 102.96 0 0 1-2.989-1.757c-.306.158-.613.315-.922.466-.502.243-1.01.478-1.516.712-.338.156-.679.316-1.021.478Z"/><path fill="#C9CDD3" d="m5.195 21.77 1.545-2.026h-.858l3.192-5.32 3.158 5.32h-.858l1.58 2.025H9.692v2.78H8.455v-2.78H5.194h.001v.001Zm10.038-5.759 1.93-2.531h-1.072l3.99-6.651 3.948 6.651h-1.072l1.974 2.531h-4.076v3.475h-1.548v-3.475h-4.076.002Zm13.034 2.656 1.158-1.519h-.644l2.395-3.99 2.368 3.99h-.643l1.184 1.519H31.64v2.085h-.929v-2.085h-2.445.001Z"/></g></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#30B4C0" fill-rule="evenodd" d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#30B4C0" fill-rule="evenodd" d="m0 20.2 20 11.333L40 20.2 20 8.867 0 20.2zm26.737-6.121c-.891.5-1.763.96-2.756 1.25-.073.02-.146.039-.22.057-.397-.188-.793-.374-1.186-.557a81.547 81.547 0 0 1-1.507-.71c-.245-.119-.487-.245-.733-.37a98.714 98.714 0 0 0 2.957-1.623l3.445 1.953zm3.755 2.129c-.924.518-1.918 1.035-2.961 1.298a35.637 35.637 0 0 0-1.605-.996 27.1 27.1 0 0 0-1.752-.925c1.037-.318 1.973-.82 2.873-1.33l3.445 1.953zm3.753 2.126a91.698 91.698 0 0 1-2.974 1.625c-.273-.168-.547-.336-.814-.51-.536-.344-1.065-.7-1.592-1.055-.332-.224-.669-.449-1.007-.672 1.063-.309 2.06-.84 2.943-1.34l3.444 1.952zm3.293 1.866-2.984 1.69a108.786 108.786 0 0 1-2.983-1.743c1.003-.53 1.997-1.076 2.982-1.639l2.985 1.692zm-32.09-1.692a98.34 98.34 0 0 0 2.982 1.639c-1.01.616-2.027 1.199-2.984 1.743L2.463 20.2l2.985-1.692zM9.2 16.383c.882.497 1.88 1.03 2.942 1.34-.339.224-.674.449-1.004.67-.529.356-1.058.713-1.593 1.058-.268.173-.542.342-.815.51-1.008-.523-2-1.075-2.974-1.626L9.2 16.383zm7.508-4.255c.966.547 1.954 1.1 2.956 1.624-.244.124-.487.25-.733.37-.5.242-1.003.476-1.508.71-.391.18-.787.366-1.183.555-.073-.02-.143-.035-.22-.059-.993-.29-1.866-.747-2.758-1.25l3.446-1.95zm9.061 4.642c.454.262.9.543 1.342.827a5.05 5.05 0 0 1-1.106.085c-.444-.014-.832-.047-1.21-.078a15.38 15.38 0 0 0-.956-.062 16.057 16.057 0 0 0-.505-.54c-.488-.494-.956-.893-1.491-1.169.207.018.412.03.623.03a5.37 5.37 0 0 0 1.26-.155c.69.33 1.38.676 2.043 1.062zm-9.494-1.064c.477.113.883.156 1.26.156.218 0 .428-.014.64-.032-.544.279-1.019.677-1.493 1.158-.178.18-.35.365-.52.554-.319.01-.637.03-.955.062-.377.031-.766.066-1.21.078a5.32 5.32 0 0 1-1.105-.085c.44-.284.887-.563 1.34-.826.66-.387 1.352-.733 2.043-1.065zm3.734-.003c1.358.012 2.193.587 3.1 1.509.108.108.212.223.316.335-.888.046-1.728.345-2.806 1.386-.214.208-.42.424-.62.642-.2-.218-.406-.434-.62-.642-1.078-1.041-1.918-1.339-2.808-1.384.11-.117.217-.236.329-.35.907-.919 1.743-1.488 3.109-1.496zm-6.004 2.28c.41-.015.82-.042 1.228-.08.23-.02.447-.038.655-.05-.342.4-.678.806-1.006 1.217-.194.24-.387.479-.582.716-.669.81-1.254 1.432-1.84 1.964-.383-.182-.766-.36-1.144-.536a87.688 87.688 0 0 1-1.509-.71c-.255-.124-.506-.255-.76-.382.223-.139.448-.276.666-.418.537-.347 1.07-.7 1.598-1.06.402-.27.811-.545 1.225-.815.48.108.972.17 1.468.154h.001zm.532 1.992c.197-.237.391-.478.585-.719.382-.472.773-.954 1.185-1.418.952-.003 1.742.232 2.857 1.308.218.21.426.431.631.656-.416.472-.812.957-1.197 1.435-.526.653-1.07 1.33-1.663 1.945-.229.238-.468.46-.712.675-.511-.333-1.03-.66-1.56-.967-.622-.36-1.266-.69-1.91-1a18.968 18.968 0 0 0 1.784-1.915zm2.621 3.415c.603-.625 1.151-1.306 1.68-1.966.374-.464.757-.934 1.161-1.392.402.458.787.928 1.16 1.392.531.66 1.08 1.341 1.68 1.966.217.225.443.436.673.64-.374.246-.744.495-1.108.738-.53.358-1.061.715-1.6 1.063-.265.171-.536.336-.805.503-.27-.167-.54-.332-.805-.503a82.344 82.344 0 0 1-1.6-1.063c-.364-.243-.734-.492-1.108-.738.23-.203.456-.413.672-.64zm5.906-.206c-.593-.615-1.136-1.29-1.662-1.945a39.25 39.25 0 0 0-1.198-1.435c.204-.225.414-.446.632-.657 1.114-1.076 1.905-1.31 2.857-1.307.41.462.802.944 1.182 1.414.197.244.394.488.594.73a19.38 19.38 0 0 0 1.777 1.906c-.645.312-1.29.64-1.911 1.001a35.08 35.08 0 0 0-1.56.968c-.245-.216-.482-.44-.71-.675h-.001zm2.643-3.39c-.2-.24-.396-.484-.594-.728a46.52 46.52 0 0 0-1.005-1.214c.209.013.425.03.658.05.363.032.774.067 1.226.081a5.73 5.73 0 0 0 1.467-.159c.415.272.826.546 1.228.818.53.358 1.06.715 1.598 1.06.22.143.445.28.666.418-.252.129-.505.26-.76.382-.502.244-1.007.477-1.512.712-.377.174-.757.352-1.138.533-.587-.532-1.172-1.153-1.834-1.953zm-4.262-4.304a15.1 15.1 0 0 0-1.268-.09h-.003c-.013 0-.024.005-.035.007-.044-.002-.082-.008-.127-.008h-.003c-.045 0-.087.006-.132.008a.171.171 0 0 0-.057-.007c-.49.01-.903.052-1.269.09-.622.063-1.146.117-1.83.002.278-.13.556-.26.832-.387.505-.235 1.011-.47 1.513-.713.313-.151.622-.31.931-.47a45.06 45.06 0 0 0 2.444 1.181c.276.128.555.257.833.389-.683.113-1.205.061-1.829-.002zm-8.492-1.235c.901.51 1.836 1.012 2.873 1.33-.592.29-1.182.593-1.754.925a37.06 37.06 0 0 0-1.603.996c-1.045-.263-2.04-.779-2.963-1.298l3.447-1.953zm-4.208 6.052c.306.157.614.315.923.466.502.244 1.008.478 1.513.712.342.16.687.318 1.031.482-.878.758-1.787 1.34-3.015 2.05l-3.444-1.95c.965-.55 1.982-1.139 2.992-1.76zm3.766 1.802c.674.324 1.35.664 1.997 1.041.5.29.993.598 1.478.915-.982.83-2.04 1.502-3.035 2.078L9.506 24.19c1.192-.694 2.11-1.294 3.006-2.08l-.001-.001zm3.738 2.129c.395.26.786.522 1.17.78.533.36 1.065.716 1.605 1.066.227.144.457.288.688.43-1.02.622-2.042 1.21-3.006 1.757l-3.452-1.956c.986-.576 2.027-1.246 2.995-2.077zM20 26.693c1.01.62 2.025 1.207 2.985 1.753L20 30.139l-2.985-1.692c.962-.547 1.975-1.134 2.985-1.754zm.286-.178c.229-.143.46-.283.687-.43.54-.347 1.073-.706 1.605-1.065.385-.26.776-.52 1.172-.78.97.83 2.009 1.5 2.995 2.077l-3.452 1.956a112.097 112.097 0 0 1-3.007-1.758zm3.727-2.45c.486-.315.98-.625 1.478-.915.652-.373 1.319-.72 1.998-1.04.894.787 1.812 1.385 3.007 2.08l-3.446 1.954c-.994-.578-2.053-1.247-3.037-2.08v.001zm3.777-2.1c.343-.162.685-.322 1.023-.478.508-.233 1.014-.47 1.517-.713.31-.15.617-.308.923-.465 1.01.621 2.027 1.208 2.992 1.757L30.8 24.02c-1.205-.7-2.122-1.289-3.01-2.053v-.002zM20 13.584a94.01 94.01 0 0 1-2.983-1.63L20 10.26l2.984 1.69A89.36 89.36 0 0 1 20 13.583v.001z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#939BA8" fill-rule="evenodd" d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#939BA8" fill-rule="evenodd" d="m0 20.2 20 11.333L40 20.2 20 8.867 0 20.2zm26.737-6.121c-.891.5-1.763.96-2.756 1.25-.073.02-.146.039-.22.057-.397-.188-.793-.374-1.186-.557a81.547 81.547 0 0 1-1.507-.71c-.245-.119-.487-.245-.733-.37a98.714 98.714 0 0 0 2.957-1.623l3.445 1.953zm3.755 2.129c-.924.518-1.918 1.035-2.961 1.298a35.637 35.637 0 0 0-1.605-.996 27.1 27.1 0 0 0-1.752-.925c1.037-.318 1.973-.82 2.873-1.33l3.445 1.953zm3.753 2.126a91.698 91.698 0 0 1-2.974 1.625c-.273-.168-.547-.336-.814-.51-.536-.344-1.065-.7-1.592-1.055-.332-.224-.669-.449-1.007-.672 1.063-.309 2.06-.84 2.943-1.34l3.444 1.952zm3.293 1.866-2.984 1.69a108.786 108.786 0 0 1-2.983-1.743c1.003-.53 1.997-1.076 2.982-1.639l2.985 1.692zm-32.09-1.692a98.34 98.34 0 0 0 2.982 1.639c-1.01.616-2.027 1.199-2.984 1.743L2.463 20.2l2.985-1.692zM9.2 16.383c.882.497 1.88 1.03 2.942 1.34-.339.224-.674.449-1.004.67-.529.356-1.058.713-1.593 1.058-.268.173-.542.342-.815.51-1.008-.523-2-1.075-2.974-1.626L9.2 16.383zm7.508-4.255c.966.547 1.954 1.1 2.956 1.624-.244.124-.487.25-.733.37-.5.242-1.003.476-1.508.71-.391.18-.787.366-1.183.555-.073-.02-.143-.035-.22-.059-.993-.29-1.866-.747-2.758-1.25l3.446-1.95zm9.061 4.642c.454.262.9.543 1.342.827a5.05 5.05 0 0 1-1.106.085c-.444-.014-.832-.047-1.21-.078a15.38 15.38 0 0 0-.956-.062 16.057 16.057 0 0 0-.505-.54c-.488-.494-.956-.893-1.491-1.169.207.018.412.03.623.03a5.37 5.37 0 0 0 1.26-.155c.69.33 1.38.676 2.043 1.062zm-9.494-1.064c.477.113.883.156 1.26.156.218 0 .428-.014.64-.032-.544.279-1.019.677-1.493 1.158-.178.18-.35.365-.52.554-.319.01-.637.03-.955.062-.377.031-.766.066-1.21.078a5.32 5.32 0 0 1-1.105-.085c.44-.284.887-.563 1.34-.826.66-.387 1.352-.733 2.043-1.065zm3.734-.003c1.358.012 2.193.587 3.1 1.509.108.108.212.223.316.335-.888.046-1.728.345-2.806 1.386-.214.208-.42.424-.62.642-.2-.218-.406-.434-.62-.642-1.078-1.041-1.918-1.339-2.808-1.384.11-.117.217-.236.329-.35.907-.919 1.743-1.488 3.109-1.496zm-6.004 2.28c.41-.015.82-.042 1.228-.08.23-.02.447-.038.655-.05-.342.4-.678.806-1.006 1.217-.194.24-.387.479-.582.716-.669.81-1.254 1.432-1.84 1.964-.383-.182-.766-.36-1.144-.536a87.688 87.688 0 0 1-1.509-.71c-.255-.124-.506-.255-.76-.382.223-.139.448-.276.666-.418.537-.347 1.07-.7 1.598-1.06.402-.27.811-.545 1.225-.815.48.108.972.17 1.468.154h.001zm.532 1.992c.197-.237.391-.478.585-.719.382-.472.773-.954 1.185-1.418.952-.003 1.742.232 2.857 1.308.218.21.426.431.631.656-.416.472-.812.957-1.197 1.435-.526.653-1.07 1.33-1.663 1.945-.229.238-.468.46-.712.675-.511-.333-1.03-.66-1.56-.967-.622-.36-1.266-.69-1.91-1a18.968 18.968 0 0 0 1.784-1.915zm2.621 3.415c.603-.625 1.151-1.306 1.68-1.966.374-.464.757-.934 1.161-1.392.402.458.787.928 1.16 1.392.531.66 1.08 1.341 1.68 1.966.217.225.443.436.673.64-.374.246-.744.495-1.108.738-.53.358-1.061.715-1.6 1.063-.265.171-.536.336-.805.503-.27-.167-.54-.332-.805-.503a82.344 82.344 0 0 1-1.6-1.063c-.364-.243-.734-.492-1.108-.738.23-.203.456-.413.672-.64zm5.906-.206c-.593-.615-1.136-1.29-1.662-1.945a39.25 39.25 0 0 0-1.198-1.435c.204-.225.414-.446.632-.657 1.114-1.076 1.905-1.31 2.857-1.307.41.462.802.944 1.182 1.414.197.244.394.488.594.73a19.38 19.38 0 0 0 1.777 1.906c-.645.312-1.29.64-1.911 1.001a35.08 35.08 0 0 0-1.56.968c-.245-.216-.482-.44-.71-.675h-.001zm2.643-3.39c-.2-.24-.396-.484-.594-.728a46.52 46.52 0 0 0-1.005-1.214c.209.013.425.03.658.05.363.032.774.067 1.226.081a5.73 5.73 0 0 0 1.467-.159c.415.272.826.546 1.228.818.53.358 1.06.715 1.598 1.06.22.143.445.28.666.418-.252.129-.505.26-.76.382-.502.244-1.007.477-1.512.712-.377.174-.757.352-1.138.533-.587-.532-1.172-1.153-1.834-1.953zm-4.262-4.304a15.1 15.1 0 0 0-1.268-.09h-.003c-.013 0-.024.005-.035.007-.044-.002-.082-.008-.127-.008h-.003c-.045 0-.087.006-.132.008a.171.171 0 0 0-.057-.007c-.49.01-.903.052-1.269.09-.622.063-1.146.117-1.83.002.278-.13.556-.26.832-.387.505-.235 1.011-.47 1.513-.713.313-.151.622-.31.931-.47a45.06 45.06 0 0 0 2.444 1.181c.276.128.555.257.833.389-.683.113-1.205.061-1.829-.002zm-8.492-1.235c.901.51 1.836 1.012 2.873 1.33-.592.29-1.182.593-1.754.925a37.06 37.06 0 0 0-1.603.996c-1.045-.263-2.04-.779-2.963-1.298l3.447-1.953zm-4.208 6.052c.306.157.614.315.923.466.502.244 1.008.478 1.513.712.342.16.687.318 1.031.482-.878.758-1.787 1.34-3.015 2.05l-3.444-1.95c.965-.55 1.982-1.139 2.992-1.76zm3.766 1.802c.674.324 1.35.664 1.997 1.041.5.29.993.598 1.478.915-.982.83-2.04 1.502-3.035 2.078L9.506 24.19c1.192-.694 2.11-1.294 3.006-2.08l-.001-.001zm3.738 2.129c.395.26.786.522 1.17.78.533.36 1.065.716 1.605 1.066.227.144.457.288.688.43-1.02.622-2.042 1.21-3.006 1.757l-3.452-1.956c.986-.576 2.027-1.246 2.995-2.077zM20 26.693c1.01.62 2.025 1.207 2.985 1.753L20 30.139l-2.985-1.692c.962-.547 1.975-1.134 2.985-1.754zm.286-.178c.229-.143.46-.283.687-.43.54-.347 1.073-.706 1.605-1.065.385-.26.776-.52 1.172-.78.97.83 2.009 1.5 2.995 2.077l-3.452 1.956a112.097 112.097 0 0 1-3.007-1.758zm3.727-2.45c.486-.315.98-.625 1.478-.915.652-.373 1.319-.72 1.998-1.04.894.787 1.812 1.385 3.007 2.08l-3.446 1.954c-.994-.578-2.053-1.247-3.037-2.08v.001zm3.777-2.1c.343-.162.685-.322 1.023-.478.508-.233 1.014-.47 1.517-.713.31-.15.617-.308.923-.465 1.01.621 2.027 1.208 2.992 1.757L30.8 24.02c-1.205-.7-2.122-1.289-3.01-2.053v-.002zM20 13.584a94.01 94.01 0 0 1-2.983-1.63L20 10.26l2.984 1.69A89.36 89.36 0 0 1 20 13.583v.001z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#30B4C0" d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#30B4C0" d="m25.114 7-3.325 5.717c.023.257.04.52.04.783-.001 3.376-2.003 6.289-4.897 7.642l-.052.021L10 33h23V7h-7.886zm-1.971 23.4H19.2l2.583-5.85h2.914l-1.554 5.85zM25.929 20h-2.704l1.751-4.55h2.166L25.929 20zm2.267-8.45h-1.715l1.262-3.25h1.314l-.86 3.25h-.001zM13.5 7c.879 0 1.72.17 2.523.513a6.501 6.501 0 0 1 2.079 1.385 6.501 6.501 0 0 1 1.385 2.079c.342.803.513 1.644.513 2.523 0 .879-.17 1.72-.513 2.523a6.501 6.501 0 0 1-1.385 2.079 6.501 6.501 0 0 1-2.079 1.385A6.383 6.383 0 0 1 13.5 20c-.879 0-1.72-.17-2.523-.513a6.501 6.501 0 0 1-2.079-1.385 6.501 6.501 0 0 1-1.385-2.079A6.383 6.383 0 0 1 7 13.5c0-.879.17-1.72.513-2.523a6.501 6.501 0 0 1 1.385-2.079 6.501 6.501 0 0 1 2.079-1.385A6.383 6.383 0 0 1 13.5 7zm0 1.69a4.74 4.74 0 0 0-2.416.642 4.724 4.724 0 0 0-1.752 1.752A4.74 4.74 0 0 0 8.69 13.5c0 .901.244 1.746.732 2.535l6.613-6.613A4.732 4.732 0 0 0 13.5 8.69zm4.112 2.343-6.58 6.579a4.745 4.745 0 0 0 2.468.698 4.74 4.74 0 0 0 2.416-.642 4.724 4.724 0 0 0 1.752-1.752 4.74 4.74 0 0 0 .642-2.416c0-.864-.233-1.686-.698-2.467z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#A7AFBB" d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#A7AFBB" d="m25.114 7-3.325 5.717c.023.257.04.52.04.783-.001 3.376-2.003 6.289-4.897 7.642l-.052.021L10 33h23V7h-7.886zm-1.971 23.4H19.2l2.583-5.85h2.914l-1.554 5.85zM25.929 20h-2.704l1.751-4.55h2.166L25.929 20zm2.267-8.45h-1.715l1.262-3.25h1.314l-.86 3.25h-.001zM13.5 7c.879 0 1.72.17 2.523.513a6.501 6.501 0 0 1 2.079 1.385 6.501 6.501 0 0 1 1.385 2.079c.342.803.513 1.644.513 2.523 0 .879-.17 1.72-.513 2.523a6.501 6.501 0 0 1-1.385 2.079 6.501 6.501 0 0 1-2.079 1.385A6.383 6.383 0 0 1 13.5 20c-.879 0-1.72-.17-2.523-.513a6.501 6.501 0 0 1-2.079-1.385 6.501 6.501 0 0 1-1.385-2.079A6.383 6.383 0 0 1 7 13.5c0-.879.17-1.72.513-2.523a6.501 6.501 0 0 1 1.385-2.079 6.501 6.501 0 0 1 2.079-1.385A6.383 6.383 0 0 1 13.5 7zm0 1.69a4.74 4.74 0 0 0-2.416.642 4.724 4.724 0 0 0-1.752 1.752A4.74 4.74 0 0 0 8.69 13.5c0 .901.244 1.746.732 2.535l6.613-6.613A4.732 4.732 0 0 0 13.5 8.69zm4.112 2.343-6.58 6.579a4.745 4.745 0 0 0 2.468.698 4.74 4.74 0 0 0 2.416-.642 4.724 4.724 0 0 0 1.752-1.752 4.74 4.74 0 0 0 .642-2.416c0-.864-.233-1.686-.698-2.467z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40" height="40"><defs><path id="a" d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40" height="40"><defs><path id="a" d="m14.466 22.299 3.235 3.231L8 32l6.466-9.701zM24.836 7l6.27 6.268h-.002L33 15.165l-1.97 1.966-1.893-1.893-3.61 3.61-1.71 10.6-13.265-13.265 10.6-1.71 3.61-3.61L22.87 8.97 24.835 7z"/></defs><use xlink:href="#a" fill="#30B4C0"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40" height="40"><defs><path id="a" d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40" height="40"><defs><path id="a" d="m14.466 22.299 3.235 3.231L8 32l6.466-9.701zM24.836 7l6.27 6.268h-.002L33 15.165l-1.97 1.966-1.893-1.893-3.61 3.61-1.71 10.6-13.265-13.265 10.6-1.71 3.61-3.61L22.87 8.97 24.835 7z"/></defs><use xlink:href="#a" fill="#A7AFBB"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#30B4C0" fill-rule="evenodd" d="M12.528 9.322a5.362 5.362 0 0 1 6.872 6.872l10.032 10.032 2.101 2.102-3.2 3.2L16.274 19.37a5.362 5.362 0 0 1-6.95-6.85l3.785 3.786 3.202-3.201-1.474-1.474zm3.759 11.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#30B4C0" fill-rule="evenodd" d="M12.528 9.322a5.362 5.362 0 0 1 6.872 6.872l10.032 10.032 2.101 2.102-3.2 3.2L16.274 19.37a5.362 5.362 0 0 1-6.95-6.85l3.785 3.786 3.202-3.201-1.474-1.474zm3.759 11.837.948.948 1.263 1.264.948.947-7.19 7.19-3.159-3.16 7.19-7.189zM30.085 9.372l1.263 1.263-1.895 3.16-1.895.631-4.057 4.056-1.263-1.263 4.056-4.056.632-1.896 3.159-1.895z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#A7AFBB" fill-rule="evenodd" d="M12.262 9.055a5.362 5.362 0 0 1 6.871 6.873c.016.015 3.36 3.358 10.032 10.031l2.102 2.102-3.201 3.2-12.057-12.158a5.362 5.362 0 0 1-6.951-6.85l3.785 3.787 3.202-3.202-1.474-1.474zm3.758 11.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path fill="#A7AFBB" fill-rule="evenodd" d="M12.262 9.055a5.362 5.362 0 0 1 6.871 6.873c.016.015 3.36 3.358 10.032 10.031l2.102 2.102-3.201 3.2-12.057-12.158a5.362 5.362 0 0 1-6.951-6.85l3.785 3.787 3.202-3.202-1.474-1.474zm3.758 11.838.948.947 1.264 1.264.947.948-7.19 7.19-3.158-3.16 7.19-7.19zM29.818 9.105l1.264 1.264-1.896 3.159-1.895.631-4.056 4.057-1.264-1.264 4.057-4.056.631-1.895 3.16-1.896z"/></svg>
|
|
@@ -226,10 +226,12 @@ var Map = function Map(props) {
|
|
|
226
226
|
var hereMapEvents = !disableMapEvents && new H.mapevents.MapEvents(hereMap);
|
|
227
227
|
var hereBehavior = !(disableMapEvents || disableBehavior) && new H.mapevents.Behavior(hereMapEvents);
|
|
228
228
|
addEventListenerMap(hereMap, eventListenerMap, hereMap);
|
|
229
|
+
|
|
230
|
+
// The api will be passed to services when using a render function.
|
|
231
|
+
// This allows the service to access the map internals
|
|
229
232
|
setApi({
|
|
230
233
|
credentials: credentials,
|
|
231
234
|
defaultLayers: defaultLayers,
|
|
232
|
-
group: hereMap,
|
|
233
235
|
map: hereMap,
|
|
234
236
|
mapEvents: hereMapEvents,
|
|
235
237
|
behavior: hereBehavior,
|
|
@@ -23,14 +23,6 @@ var defaultStyle = {
|
|
|
23
23
|
borderColor: 'rgba(54, 144, 174, 1)',
|
|
24
24
|
isBorderIncludedInWidth: false
|
|
25
25
|
};
|
|
26
|
-
var defaultArrowStyle = {
|
|
27
|
-
// lineWidth: 12,
|
|
28
|
-
// strokeColor: 'rgba(0, 0, 0, 0.8)',
|
|
29
|
-
// lineDash: [0, 3],
|
|
30
|
-
// lineDashOffset: 2,
|
|
31
|
-
// lineTailCap: 'arrow-tail',
|
|
32
|
-
// lineHeadCap: 'arrow-head',
|
|
33
|
-
};
|
|
34
26
|
var alternativeRouteStyle = _objectSpread(_objectSpread({}, defaultStyle), {}, {
|
|
35
27
|
color: 'rgb(218,253,255)'
|
|
36
28
|
});
|
|
@@ -143,7 +135,7 @@ var Route = function Route(props) {
|
|
|
143
135
|
};
|
|
144
136
|
Route.defaultProps = {
|
|
145
137
|
hasArrows: true,
|
|
146
|
-
arrowStyle:
|
|
138
|
+
arrowStyle: {},
|
|
147
139
|
isReduced: false,
|
|
148
140
|
isRouteAlternative: false,
|
|
149
141
|
markers: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/* eslint-disable no-undef */
|
|
3
|
-
import { useContext, useState, useEffect } from 'react';
|
|
3
|
+
import { useContext, useState, useEffect, useRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import mapProps from '../../../utils/proptypes';
|
|
6
6
|
import { MapContext } from '../../context';
|
|
@@ -19,20 +19,24 @@ var Circle = function Circle(_ref) {
|
|
|
19
19
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20
20
|
circle = _useState2[0],
|
|
21
21
|
setCircle = _useState2[1];
|
|
22
|
+
|
|
23
|
+
// Create a new circle and check for changes on the map itself.
|
|
24
|
+
// The map instance may change due to rendering changes like webgl vs raster.
|
|
25
|
+
// In this case, add the circle to the new map instance otherwise it will be gone.
|
|
22
26
|
useEffect(function () {
|
|
23
27
|
var newCircle = new H.map.Circle(position, radius, {
|
|
24
28
|
style: style,
|
|
25
29
|
precision: parseFloat(precision)
|
|
26
30
|
});
|
|
27
31
|
setCircle(newCircle);
|
|
28
|
-
api.
|
|
32
|
+
api.map.addObject(newCircle);
|
|
29
33
|
return function () {
|
|
30
|
-
if (api.
|
|
31
|
-
api.
|
|
34
|
+
if (api.map.getObjects().includes(newCircle)) {
|
|
35
|
+
api.map.removeObject(newCircle);
|
|
32
36
|
}
|
|
33
37
|
newCircle.dispose();
|
|
34
38
|
};
|
|
35
|
-
}, []);
|
|
39
|
+
}, [api.map]);
|
|
36
40
|
useUpdateProp(circle, 'setCenter', position);
|
|
37
41
|
useUpdateProp(circle, 'setStyle', style);
|
|
38
42
|
useUpdateProp(circle, 'setRadius', radius);
|
|
@@ -12,6 +12,7 @@ var MapLayerGroup = function MapLayerGroup(_ref) {
|
|
|
12
12
|
maxZoom = _ref.maxZoom,
|
|
13
13
|
isVisible = _ref.isVisible;
|
|
14
14
|
var context = useContext(MapContext);
|
|
15
|
+
var api = context.api;
|
|
15
16
|
var _useState = useState(),
|
|
16
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17
18
|
group = _useState2[0],
|
|
@@ -26,21 +27,21 @@ var MapLayerGroup = function MapLayerGroup(_ref) {
|
|
|
26
27
|
max: parseFloat(maxZoom)
|
|
27
28
|
});
|
|
28
29
|
newGroup.setVisibility(isVisible);
|
|
29
|
-
|
|
30
|
+
api.map.addObject(newGroup);
|
|
30
31
|
setGroup(newGroup);
|
|
31
32
|
var newChildApi = _objectSpread(_objectSpread({}, context), {}, {
|
|
32
|
-
api: _objectSpread(_objectSpread({},
|
|
33
|
+
api: _objectSpread(_objectSpread({}, api), {}, {
|
|
33
34
|
group: newGroup
|
|
34
35
|
})
|
|
35
36
|
});
|
|
36
37
|
setChildApi(newChildApi);
|
|
37
38
|
return function () {
|
|
38
|
-
if (
|
|
39
|
-
|
|
39
|
+
if (api.map.getObjects().includes(newGroup)) {
|
|
40
|
+
api.map.removeObject(newGroup);
|
|
40
41
|
}
|
|
41
42
|
newGroup.dispose();
|
|
42
43
|
};
|
|
43
|
-
}, []);
|
|
44
|
+
}, [api.map]);
|
|
44
45
|
useEffect(function () {
|
|
45
46
|
if (group) {
|
|
46
47
|
group.setVisibility(isVisible);
|
|
@@ -31,15 +31,15 @@ var Polygon = function Polygon(_ref) {
|
|
|
31
31
|
var newPolygon = new H.map.Polygon(createGeometry(points), {
|
|
32
32
|
style: style
|
|
33
33
|
});
|
|
34
|
-
api.
|
|
34
|
+
api.map.addObject(newPolygon);
|
|
35
35
|
setPolygon(newPolygon);
|
|
36
36
|
return function () {
|
|
37
|
-
if (api.
|
|
38
|
-
api.
|
|
37
|
+
if (api.map.getObjects().includes(newPolygon)) {
|
|
38
|
+
api.map.removeObject(newPolygon);
|
|
39
39
|
}
|
|
40
40
|
newPolygon.dispose();
|
|
41
41
|
};
|
|
42
|
-
}, []);
|
|
42
|
+
}, [api.map]);
|
|
43
43
|
useEffect(function () {
|
|
44
44
|
if (polygon) {
|
|
45
45
|
polygon.setGeometry(createGeometry(points));
|
|
@@ -36,9 +36,7 @@ var Polyline = function Polyline(_ref) {
|
|
|
36
36
|
style: style
|
|
37
37
|
});
|
|
38
38
|
if (hasArrows) {
|
|
39
|
-
// Create a patterned polyline
|
|
40
|
-
|
|
41
|
-
// Non-legacy version:
|
|
39
|
+
// Create a patterned polyline
|
|
42
40
|
var arrowLineStyle = new H.map.SpatialStyle(_objectSpread(_objectSpread({}, arrowStyle), {}, {
|
|
43
41
|
lineWidth: 10,
|
|
44
42
|
strokeColor: 'rgba(0, 0, 0, 0.8)',
|
|
@@ -57,43 +55,20 @@ var Polyline = function Polyline(_ref) {
|
|
|
57
55
|
} else {
|
|
58
56
|
lineGroup.addObjects([line]);
|
|
59
57
|
}
|
|
60
|
-
api.
|
|
58
|
+
api.map.addObject(lineGroup);
|
|
61
59
|
setPolyline(lineGroup);
|
|
62
60
|
return function () {
|
|
63
|
-
// cleanup
|
|
64
|
-
//console.log('cleanup polyline');
|
|
65
|
-
|
|
66
61
|
removeEventListenerMap(lineGroup);
|
|
67
62
|
lineGroup.forEach(function (singleLine) {
|
|
68
63
|
lineGroup.removeObject(singleLine);
|
|
69
64
|
singleLine.dispose();
|
|
70
65
|
});
|
|
71
|
-
if (api.
|
|
72
|
-
api.
|
|
66
|
+
if (api.map.getObjects().includes(lineGroup)) {
|
|
67
|
+
api.map.removeObject(lineGroup);
|
|
73
68
|
}
|
|
74
69
|
lineGroup.dispose();
|
|
75
70
|
};
|
|
76
|
-
}, [geometry, style, hasArrows, arrowStyle]);
|
|
77
|
-
|
|
78
|
-
/*useEffect(() => {
|
|
79
|
-
if (polyline) {
|
|
80
|
-
polyline.forEach((line, index) => {
|
|
81
|
-
if (index === 0) {
|
|
82
|
-
line.setStyle(style);
|
|
83
|
-
} else {
|
|
84
|
-
line.setStyle(arrowStyle);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}, [style, arrowStyle]);*/
|
|
89
|
-
|
|
90
|
-
/*useEffect(() => {
|
|
91
|
-
if (polyline) {
|
|
92
|
-
polyline.forEach(line => line.setGeometry(geometry));
|
|
93
|
-
}
|
|
94
|
-
}, [geometry]);*/
|
|
95
|
-
|
|
96
|
-
//useUpdateProp(polyline, 'setStyle', style);
|
|
71
|
+
}, [api.map, geometry, style, hasArrows, arrowStyle]);
|
|
97
72
|
useUpdateEventListenerMap(polyline, eventListenerMap);
|
|
98
73
|
return null;
|
|
99
74
|
};
|
|
@@ -10,6 +10,12 @@ import React from 'react';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import mapProps from '../../../../utils/proptypes';
|
|
12
12
|
import { addEventListenerMap, removeEventListenerMap, checkAndUpdateEventListenerMap } from '../../../../utils/eventHandling';
|
|
13
|
+
|
|
14
|
+
// Should be deprecated...
|
|
15
|
+
// Here Documentation:
|
|
16
|
+
// It should be only used where small numbers of markers with dynamic style and/or scripted icons are to be displayed
|
|
17
|
+
// on the map (for example animated interactive SVG). Otherwise a H.map.Marker should be preferred for performance reasons.
|
|
18
|
+
//
|
|
13
19
|
var DomMarker = /*#__PURE__*/function (_React$Component) {
|
|
14
20
|
_inherits(DomMarker, _React$Component);
|
|
15
21
|
var _super = _createSuper(DomMarker);
|
|
@@ -21,7 +27,7 @@ var DomMarker = /*#__PURE__*/function (_React$Component) {
|
|
|
21
27
|
_this.marker = new H.map.DomMarker(_this.convertPosition(props.position), {
|
|
22
28
|
icon: icon
|
|
23
29
|
});
|
|
24
|
-
context.api.
|
|
30
|
+
context.api.map.addObject(_this.marker);
|
|
25
31
|
addEventListenerMap(_this.marker, props.eventListenerMap, _this.context.api.map);
|
|
26
32
|
return _this;
|
|
27
33
|
}
|
|
@@ -48,8 +54,8 @@ var DomMarker = /*#__PURE__*/function (_React$Component) {
|
|
|
48
54
|
key: "componentWillUnmount",
|
|
49
55
|
value: function componentWillUnmount() {
|
|
50
56
|
removeEventListenerMap(this.marker);
|
|
51
|
-
if (this.context.api.
|
|
52
|
-
this.context.api.
|
|
57
|
+
if (this.context.api.map.includes(this.marker)) {
|
|
58
|
+
this.context.api.map.removeObject(this.marker);
|
|
53
59
|
}
|
|
54
60
|
this.marker.dispose();
|
|
55
61
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
/* eslint-disable no-undef */
|
|
3
2
|
import React, { useContext, useEffect, useState, useRef } from 'react';
|
|
4
3
|
import ReactDomServer from 'react-dom/server';
|
|
@@ -13,13 +12,11 @@ export var isHMapIcon = function isHMapIcon(icon) {
|
|
|
13
12
|
export var isDomMakerNeeded = function isDomMakerNeeded(icon) {
|
|
14
13
|
return !icon ? false : !isHMapIcon(icon);
|
|
15
14
|
};
|
|
16
|
-
export function getOrCreateIcon(icon
|
|
15
|
+
export function getOrCreateIcon(icon) {
|
|
17
16
|
if (!icon || isHMapIcon(icon) || icon instanceof H.map.DomIcon) {
|
|
18
17
|
return;
|
|
19
18
|
}
|
|
20
|
-
var renderedIcon = /*#__PURE__*/React.isValidElement(icon) ? ReactDomServer.renderToStaticMarkup( /*#__PURE__*/React.cloneElement(icon
|
|
21
|
-
mapType: mapType
|
|
22
|
-
})) : icon;
|
|
19
|
+
var renderedIcon = /*#__PURE__*/React.isValidElement(icon) ? ReactDomServer.renderToStaticMarkup( /*#__PURE__*/React.cloneElement(icon)) : icon;
|
|
23
20
|
return new H.map.DomIcon(renderedIcon);
|
|
24
21
|
}
|
|
25
22
|
var convertPosition = function convertPosition(pos) {
|
|
@@ -61,14 +58,14 @@ var setupMarker = function setupMarker(props, api) {
|
|
|
61
58
|
});
|
|
62
59
|
marker.setData(customData);
|
|
63
60
|
marker.draggable = !!draggable;
|
|
64
|
-
api.
|
|
61
|
+
api.map.addObject(marker);
|
|
65
62
|
addEventListenerMap(marker, eventListenerMap, api.map);
|
|
66
63
|
return marker;
|
|
67
64
|
};
|
|
68
65
|
var destroyMarker = function destroyMarker(marker, api) {
|
|
69
66
|
removeEventListenerMap(marker);
|
|
70
|
-
if (api.
|
|
71
|
-
api.
|
|
67
|
+
if (api.map.getObjects().includes(marker)) {
|
|
68
|
+
api.map.removeObject(marker);
|
|
72
69
|
}
|
|
73
70
|
marker.dispose();
|
|
74
71
|
};
|
|
@@ -80,10 +77,6 @@ var Marker = function Marker(props) {
|
|
|
80
77
|
var _useContext = useContext(MapContext),
|
|
81
78
|
api = _useContext.api;
|
|
82
79
|
var markerRef = useRef();
|
|
83
|
-
var _useState = useState(api === null || api === void 0 ? void 0 : api.settings.baseLayer),
|
|
84
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
85
|
-
currentBaseLayer = _useState2[0],
|
|
86
|
-
setCurrentBaseLayer = _useState2[1];
|
|
87
80
|
useEffect(function () {
|
|
88
81
|
markerRef.current = setupMarker(props, api);
|
|
89
82
|
return function () {
|
|
@@ -117,24 +110,6 @@ var Marker = function Marker(props) {
|
|
|
117
110
|
}
|
|
118
111
|
}, [eventListenerMap, markerRef.current]);
|
|
119
112
|
|
|
120
|
-
// In case the map base layer has changed between day and night, update the marker
|
|
121
|
-
useEffect(function () {
|
|
122
|
-
if (!markerRef.current) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
var newBaseLayer = api.settings.baseLayer;
|
|
126
|
-
console.log({
|
|
127
|
-
newBaseLayer: newBaseLayer
|
|
128
|
-
});
|
|
129
|
-
if (newBaseLayer !== currentBaseLayer) {
|
|
130
|
-
console.log(newBaseLayer);
|
|
131
|
-
|
|
132
|
-
// Update marker icons
|
|
133
|
-
markerRef.current.setIcon(getOrCreateIcon(icon, newBaseLayer));
|
|
134
|
-
setCurrentBaseLayer(newBaseLayer);
|
|
135
|
-
}
|
|
136
|
-
}, [api.settings.baseLayer, markerRef.current]);
|
|
137
|
-
|
|
138
113
|
// If icon type changed, we need to change the marker type
|
|
139
114
|
useEffect(function () {
|
|
140
115
|
if (!(markerRef.current && icon)) {
|
|
@@ -144,7 +119,7 @@ var Marker = function Marker(props) {
|
|
|
144
119
|
destroyMarker(markerRef.current, api);
|
|
145
120
|
markerRef.current = setupMarker(props, api);
|
|
146
121
|
} else {
|
|
147
|
-
markerRef.current.setIcon(getOrCreateIcon(icon
|
|
122
|
+
markerRef.current.setIcon(getOrCreateIcon(icon));
|
|
148
123
|
}
|
|
149
124
|
}, [icon, markerRef.current]);
|
|
150
125
|
return null;
|
|
@@ -33,7 +33,6 @@ var MarkerLayer = function MarkerLayer(props) {
|
|
|
33
33
|
}));
|
|
34
34
|
};
|
|
35
35
|
MarkerLayer.propTypes = {
|
|
36
|
-
// api: mapProps.api,
|
|
37
36
|
simpleTheme: mapProps.clusterTheme,
|
|
38
37
|
clusterDissolvable: PropTypes.bool,
|
|
39
38
|
clusterStrategy: PropTypes.oneOf(['FASTGRID', 'GRID', 'DYNAMICGRID']),
|
|
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["useWebGL"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FORMAT, TILE_SIZE } from '../../constants';
|
|
6
|
-
import { getPPI } from '../../mapUtils';
|
|
7
6
|
import Layer from './Layer';
|
|
8
7
|
var createRoadRestrictionLayer = function createRoadRestrictionLayer(useWebGL) {
|
|
9
8
|
return function (api, language) {
|
|
@@ -12,7 +11,7 @@ var createRoadRestrictionLayer = function createRoadRestrictionLayer(useWebGL) {
|
|
|
12
11
|
}).createTileLayer('truckonlytile', 'normal.day', TILE_SIZE, FORMAT, {
|
|
13
12
|
style: 'default',
|
|
14
13
|
lg: language,
|
|
15
|
-
ppi:
|
|
14
|
+
ppi: undefined
|
|
16
15
|
});
|
|
17
16
|
};
|
|
18
17
|
};
|
|
@@ -4,7 +4,7 @@ var _excluded = ["useWebGL"];
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FORMAT, TILE_SIZE } from '../../constants';
|
|
6
6
|
import Layer from './Layer';
|
|
7
|
-
var
|
|
7
|
+
var createWebGlTrafficLayer = function createWebGlTrafficLayer(api, language) {
|
|
8
8
|
// use new Here 3.1 API traffic layer for WebGL
|
|
9
9
|
// https://developer.here.com/documentation/maps/3.1.37.0/dev_guide/topics/migration.html
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ var createRasterTrafficLayer = function createRasterTrafficLayer(api, language)
|
|
|
26
26
|
var TrafficLayer = function TrafficLayer(props) {
|
|
27
27
|
var useWebGL = props.useWebGL,
|
|
28
28
|
remainingProps = _objectWithoutProperties(props, _excluded);
|
|
29
|
-
var createLayerCallback = useWebGL ?
|
|
29
|
+
var createLayerCallback = useWebGL ? createWebGlTrafficLayer : createRasterTrafficLayer;
|
|
30
30
|
return /*#__PURE__*/React.createElement(Layer, _extends({}, remainingProps, {
|
|
31
31
|
createLayer: createLayerCallback
|
|
32
32
|
}));
|
|
@@ -62,7 +62,7 @@ var ClusterLayer = function ClusterLayer(_ref) {
|
|
|
62
62
|
objectLayer.dispose();
|
|
63
63
|
newProvider.dispose();
|
|
64
64
|
};
|
|
65
|
-
}, [minWeight, minZoom, maxZoom]);
|
|
65
|
+
}, [minWeight, minZoom, maxZoom, api.map]);
|
|
66
66
|
|
|
67
67
|
// Effect to update data points of provider
|
|
68
68
|
useLayoutEffect(function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["mapType", "onMapTypeChange"];
|
|
3
|
+
var _excluded = ["mapType", "onMapTypeChange", "enableNightMap"];
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { MAP_TYPE_DEFAULT, MAP_TYPE_FLEET_STYLE, MAP_TYPE_NIGHT, MAP_TYPE_SATELLITE, MAP_TYPE_TERRAIN } from '../../../constants';
|
|
@@ -11,6 +11,7 @@ import { MapIcon, MAP_TYPE_FLAT_ACTIVE, MAP_TYPE_FLAT_INACTIVE, MAP_TYPE_FLAT_TR
|
|
|
11
11
|
var MapTypeSettings = function MapTypeSettings(props) {
|
|
12
12
|
var mapType = props.mapType,
|
|
13
13
|
onMapTypeChange = props.onMapTypeChange,
|
|
14
|
+
enableNightMap = props.enableNightMap,
|
|
14
15
|
remainingProps = _objectWithoutProperties(props, _excluded);
|
|
15
16
|
var type = useMemo(function () {
|
|
16
17
|
return {
|
|
@@ -51,7 +52,19 @@ var MapTypeSettings = function MapTypeSettings(props) {
|
|
|
51
52
|
return /*#__PURE__*/React.createElement(MapSettingsTile, _extends({
|
|
52
53
|
className: "MapTypeSettings",
|
|
53
54
|
inactiveIcon: getIcon(type),
|
|
54
|
-
panel: /*#__PURE__*/React.createElement(MapSettingsPanel, null, /*#__PURE__*/React.createElement(MapSettingsItem, {
|
|
55
|
+
panel: /*#__PURE__*/React.createElement(MapSettingsPanel, null, enableNightMap && /*#__PURE__*/React.createElement(MapSettingsItem, {
|
|
56
|
+
className: "MapTypeNight",
|
|
57
|
+
onClick: function onClick() {
|
|
58
|
+
return onMapTypeChange(MAP_TYPE_NIGHT);
|
|
59
|
+
},
|
|
60
|
+
isActive: type.isNight,
|
|
61
|
+
activeIcon: /*#__PURE__*/React.createElement(MapIcon, {
|
|
62
|
+
name: MAP_TYPE_NIGHT_ACTIVE
|
|
63
|
+
}),
|
|
64
|
+
inactiveIcon: /*#__PURE__*/React.createElement(MapIcon, {
|
|
65
|
+
name: MAP_TYPE_NIGHT_INACTIVE
|
|
66
|
+
})
|
|
67
|
+
}), /*#__PURE__*/React.createElement(MapSettingsItem, {
|
|
55
68
|
className: "MapTypeSatelite",
|
|
56
69
|
onClick: function onClick() {
|
|
57
70
|
return onMapTypeChange(MAP_TYPE_SATELLITE);
|
|
@@ -108,6 +121,7 @@ MapTypeSettings.defaultProps = {
|
|
|
108
121
|
};
|
|
109
122
|
MapTypeSettings.propTypes = {
|
|
110
123
|
mapType: PropTypes.string,
|
|
124
|
+
enableNightMap: PropTypes.bool,
|
|
111
125
|
onMapTypeChange: PropTypes.func
|
|
112
126
|
};
|
|
113
127
|
export default MapTypeSettings;
|