@geops/rvf-mobility-web-component 0.1.32 → 0.1.33
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 +14 -0
- package/index.html +4 -1
- package/index.js +142 -142
- package/package.json +1 -1
- package/src/NotificationLayer/NotificationLayer.tsx +84 -57
- package/src/NotificationLayer/notificationUtils.ts +191 -23
- package/src/RvfMobilityMap/RvfMobilityMap.tsx +1 -1
- package/src/icons/warning-banner.png +0 -0
- package/src/icons/warning.png +0 -0
- package/src/utils/addSourceAndLayers.ts +24 -2
- package/src/utils/hooks/useUpdatePermalink.tsx +18 -7
- package/src/utils/hooks/useZoom.tsx +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.33](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.32...v0.1.33) (2025-02-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* send the change of permalink to the parent ([368990d](https://github.com/geops/rvf-mobility-web-component/commit/368990d02522286e4e397a5088e3b4cbe93b52a7))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add icon on icon ref point ([6944936](https://github.com/geops/rvf-mobility-web-component/commit/6944936b0d29a70c1a475033e9f448a2f049b692))
|
|
16
|
+
* add icon on icon ref point ([2a4459f](https://github.com/geops/rvf-mobility-web-component/commit/2a4459f1f69c43dbf8d0ef87fee68b39cd6192b0))
|
|
17
|
+
* display also deviation notifications ([8d4360d](https://github.com/geops/rvf-mobility-web-component/commit/8d4360d7950ba2b506bbdf468f7917bb647657b0))
|
|
18
|
+
|
|
5
19
|
### [0.1.32](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.31...v0.1.32) (2025-02-20)
|
|
6
20
|
|
|
7
21
|
|
package/index.html
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
extent: "The extent to show when opening the map in EPSG:3857 coordinates, ex: 831634,5933959,940649,6173660. Default is the RVF data extent: 834896.1809495519,6057089.852937808,940649.6972031617,6173660.451962929 . Parameter required if center and zoom are not set.",
|
|
117
117
|
maxextent: "The maximum extent of the map in EPSG:3857 coordinates, ex: 831634,5933959,940649,6173660. Default is the RVF data extent: [834896.1809495519,6057089.852937808,940649.6972031617,6173660.451962929 .",
|
|
118
118
|
search: "Show/hide the search bar on the map. Default to false.",
|
|
119
|
-
permalink: "Add/remove url paremeters to the current window location. These parameters are used to store the current state of the map. They will be used on page load to configure the web-
|
|
119
|
+
permalink: "Add/remove url paremeters to the current window location. These parameters are used to store the current state of the map. They will be used on page load to configure the web-component. Default to false. Parameter required if extent is not set.",
|
|
120
120
|
center: "The center of the map in EPSG:3857 coordinates, ex: 831634,5933959. The center must be inside the RVF extent: [834896.1809495519, 6057089.852937808, 940649.6972031617, 6173660.451962929]. Default to null. Parameter required if extent is not set.",
|
|
121
121
|
zoom: "The zoom level of the map (between 0 and 20). Default to null. If maxextent paramter is defined some values will not have any effects because the view will be constraint to the maxextent defined. Parameter required if extent is not set.",
|
|
122
122
|
print: "Show/hide the print button in the toolbar. Default to true.",
|
|
@@ -135,6 +135,9 @@
|
|
|
135
135
|
wc.addEventListener('mwc:attribute', (event) => {
|
|
136
136
|
document.querySelector('#code').innerHTML = generateCodeText(wc, attrs, pkgSrc);
|
|
137
137
|
});
|
|
138
|
+
wc.addEventListener('mwc:permalink', (event) => {
|
|
139
|
+
window.parent?.postMessage({type:"mwc:permalink", data: event.data}, '*');
|
|
140
|
+
});
|
|
138
141
|
applyPermalinkParameters(wc);
|
|
139
142
|
</script>
|
|
140
143
|
</body>
|