@geops/rvf-mobility-web-component 0.1.36 → 0.1.38
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 +16 -0
- package/index.html +1 -1
- package/index.js +3 -4
- package/input.css +0 -1
- package/package.json +1 -1
- package/src/GeolocationButton/GeolocationButton.tsx +1 -1
- package/src/RvfFeatureDetails/RvfLineNetworkDetails/RvfLineNetworkDetails.tsx +6 -2
- package/src/RvfMobilityMap/RvfMobilityMap.tsx +2 -3
- package/src/utils/constants.ts +4 -8
package/input.css
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@geops/rvf-mobility-web-component",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"description": "Web components for rvf in the domains of mobility and logistics.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.38",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
|
@@ -10,7 +10,7 @@ import { Icon, Style } from "ol/style";
|
|
|
10
10
|
import { useEffect, useMemo } from "preact/hooks";
|
|
11
11
|
|
|
12
12
|
import GeolocationIcon from "../icons/Geolocation";
|
|
13
|
-
// @ts-
|
|
13
|
+
// @ts-expect-error - svg file not handled by vite
|
|
14
14
|
import locationSvg from "../icons/Geolocation/location.svg";
|
|
15
15
|
import RvfIconButton from "../RvfIconButton";
|
|
16
16
|
import useMapContext from "../utils/hooks/useMapContext";
|
|
@@ -156,11 +156,15 @@ function RvfLineNetworkDetails({
|
|
|
156
156
|
};
|
|
157
157
|
|
|
158
158
|
if (textColor) {
|
|
159
|
-
line.text_color =
|
|
159
|
+
line.text_color =
|
|
160
|
+
textColor[0] === "#" ? textColor : "#" + textColor;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
if (backgroundColor) {
|
|
163
|
-
line.color =
|
|
164
|
+
line.color =
|
|
165
|
+
backgroundColor[0] === "#"
|
|
166
|
+
? backgroundColor
|
|
167
|
+
: "#" + backgroundColor;
|
|
164
168
|
}
|
|
165
169
|
|
|
166
170
|
return (
|
|
@@ -559,7 +559,6 @@ function RvfMobilityMap({
|
|
|
559
559
|
/>
|
|
560
560
|
<RvfLineNetworkPlanLayer
|
|
561
561
|
isQueryable={true}
|
|
562
|
-
minZoom={10}
|
|
563
562
|
title={RVF_LAYERS_TITLES.liniennetz}
|
|
564
563
|
/>
|
|
565
564
|
<RvfPoisLayer title={RVF_LAYERS_TITLES.pois} />
|
|
@@ -643,7 +642,7 @@ function RvfMobilityMap({
|
|
|
643
642
|
onClose={() => {
|
|
644
643
|
setIsExportMenuOpen(false);
|
|
645
644
|
}}
|
|
646
|
-
title="
|
|
645
|
+
title="Drucken"
|
|
647
646
|
></RvfOverlayHeader>
|
|
648
647
|
<RvfExportMenu className="relative flex flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6" />
|
|
649
648
|
</>
|
|
@@ -688,7 +687,7 @@ function RvfMobilityMap({
|
|
|
688
687
|
{hasPrint && (
|
|
689
688
|
<RvfExportMenuButton
|
|
690
689
|
className={"border-none"}
|
|
691
|
-
title="
|
|
690
|
+
title="Drucken"
|
|
692
691
|
/>
|
|
693
692
|
)}
|
|
694
693
|
|
package/src/utils/constants.ts
CHANGED
|
@@ -40,23 +40,19 @@ export const RVF_LAYERS_TITLES = {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
export const RVF_LAYERS_NAMES = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
bikeOthers: "bikeothers",
|
|
46
|
-
cargobike: "cargobike",
|
|
43
|
+
bikeFrelo: "fahrradfrelo",
|
|
44
|
+
bikeOthers: "fahrradandere",
|
|
47
45
|
cargobikeFrelo: "cargobikefrelo",
|
|
48
|
-
cargobikeOthers: "
|
|
46
|
+
cargobikeOthers: "cargobikeandere",
|
|
49
47
|
carGrf: "grueneflotte",
|
|
50
48
|
carNatur: "naturenergie",
|
|
51
|
-
carOthers: "
|
|
49
|
+
carOthers: "autoandere",
|
|
52
50
|
echtzeit: "echtzeit",
|
|
53
51
|
eroller: "e-roller",
|
|
54
|
-
fahrrad: "fahrrad",
|
|
55
52
|
haltestellen: "haltestellen",
|
|
56
53
|
liniennetz: "liniennetz",
|
|
57
54
|
mitfahrpunkte: "mitfahrpunkte",
|
|
58
55
|
pois: "pois",
|
|
59
|
-
sharedMobility: "shared mobility",
|
|
60
56
|
tarifzonen: "tarifzonen",
|
|
61
57
|
verkaufsstellen: "verkaufsstellen",
|
|
62
58
|
};
|