@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/input.css CHANGED
@@ -39,4 +39,3 @@ html {
39
39
  @apply text-button font-semibold;
40
40
  } */
41
41
  }
42
-
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.36",
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-ecpect-error - svg file not handled by vite
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 = "#" + textColor;
159
+ line.text_color =
160
+ textColor[0] === "#" ? textColor : "#" + textColor;
160
161
  }
161
162
 
162
163
  if (backgroundColor) {
163
- line.color = "#" + backgroundColor;
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="Drücken"
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="Drücken"
690
+ title="Drucken"
692
691
  />
693
692
  )}
694
693
 
@@ -40,23 +40,19 @@ export const RVF_LAYERS_TITLES = {
40
40
  };
41
41
 
42
42
  export const RVF_LAYERS_NAMES = {
43
- auto: "auto",
44
- bikeFrelo: "frelo",
45
- bikeOthers: "bikeothers",
46
- cargobike: "cargobike",
43
+ bikeFrelo: "fahrradfrelo",
44
+ bikeOthers: "fahrradandere",
47
45
  cargobikeFrelo: "cargobikefrelo",
48
- cargobikeOthers: "cargobikeothers",
46
+ cargobikeOthers: "cargobikeandere",
49
47
  carGrf: "grueneflotte",
50
48
  carNatur: "naturenergie",
51
- carOthers: "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
  };