@geops/rvf-mobility-web-component 0.1.23 → 0.1.24
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 +7 -0
- package/index.html +5 -1
- package/index.js +193 -137
- package/package.json +1 -1
- package/src/RvfFeatureDetails/RvfFeatureDetails.tsx +6 -6
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/RvfSharedMobilityDetails.tsx +11 -87
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/StationDetails.tsx +2 -158
- package/src/RvfMobilityMap/RvfMobilityMap.tsx +33 -7
- package/src/RvfSelectedFeatureHighlightLayer/RvfSelectedFeatureHighlightLayer.tsx +0 -1
- package/src/RvfSharedMobilityLayerGroup2/RvfSharedMobilityLayerGroup2.tsx +740 -0
- package/src/RvfSharedMobilityLayerGroup2/index.tsx +1 -0
- package/src/RvfSingleClickListener/RvfSingleClickListener.tsx +76 -19
- package/src/index.tsx +2 -1
- package/src/utils/constants.ts +72 -1
- package/src/utils/createFreeFloatMobilityLayer.ts +5 -2
- package/src/utils/createMobiDataBwWfsLayer.ts +6 -3
- package/src/utils/getBgColor.ts +16 -1
- package/src/utils/getDelayColor.test.ts +8 -7
- package/src/utils/getDelayColor.ts +7 -7
- package/src/utils/getDelayColorForVehicle.test.ts +16 -9
- package/src/utils/getDelayColorForVehicle.ts +2 -2
- package/src/utils/getMainColorForVehicle.ts +6 -5
- package/src/utils/getRadius.ts +39 -0
- package/src/utils/getTextColor.ts +10 -0
- package/src/utils/realtimeRVFStyle.ts +452 -0
- package/src/utils/sharingGraphqlUtils.ts +312 -0
- package/src/utils/sharingStylesUtils.ts +222 -0
- package/src/utils/sharingWFSUtils.ts +74 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.24](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.23...v0.1.24) (2025-02-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* use rvf tenant and improve realitme display ([#22](https://github.com/geops/rvf-mobility-web-component/issues/22)) ([8ef1412](https://github.com/geops/rvf-mobility-web-component/commit/8ef1412c22fe6b4f66a07c92920b7f02ce920da0))
|
|
11
|
+
|
|
5
12
|
### [0.1.23](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.22...v0.1.23) (2025-01-28)
|
|
6
13
|
|
|
7
14
|
|
package/index.html
CHANGED
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
// "apikey",
|
|
69
69
|
// "baselayer",
|
|
70
70
|
// "center",
|
|
71
|
+
"details",
|
|
71
72
|
// "geolocation",
|
|
72
73
|
"layers",
|
|
73
74
|
"layertree",
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
];
|
|
89
90
|
|
|
90
91
|
const booleanAttrs = [
|
|
92
|
+
"details",
|
|
91
93
|
"geolocation",
|
|
92
94
|
"notification",
|
|
93
95
|
"realtime",
|
|
@@ -100,11 +102,13 @@
|
|
|
100
102
|
|
|
101
103
|
const events = [
|
|
102
104
|
"singleclick",
|
|
105
|
+
"selectedfeature",
|
|
103
106
|
// "mwc:attribute",
|
|
104
107
|
];
|
|
105
108
|
|
|
106
109
|
const descriptionByAttr = {
|
|
107
|
-
layers: "A comma separated list of layers: echtzeit,haltestellen,verkaufsstellen,liniennetz,tarifzonen,fahrrad,auto,cargobike,e-roller,mitfahrpunkt,pois"
|
|
110
|
+
layers: "A comma separated list of layers: echtzeit,haltestellen,verkaufsstellen,liniennetz,tarifzonen,fahrrad,auto,cargobike,e-roller,mitfahrpunkt,pois",
|
|
111
|
+
details: "Show shared mobility details in the sidebar when we click on an shared mobility feature.",
|
|
108
112
|
};
|
|
109
113
|
|
|
110
114
|
document.querySelector('#attributes').innerHTML = generateAttributesTable(wc, attrs, booleanAttrs, descriptionByAttr);
|