@geops/rvf-mobility-web-component 0.1.50 → 0.1.52

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/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.50",
5
+ "version": "0.1.52",
6
6
  "homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -241,8 +241,8 @@ const attrs: MobilityMapAttributes = {
241
241
  description: null, //`The tenant to use by default for all geOps APIs (Stops, Realtime, MOCO ...). Can be override for each API by other XXXXtenant parameters.`,
242
242
  },
243
243
  toolbar: {
244
- defaultValue: "false",
245
- description: "Show/hide the toolbar on the left.",
244
+ defaultValue: "true",
245
+ description: "Show/hide the toolbar on the top left.",
246
246
  type: "boolean",
247
247
  },
248
248
  zoom: {
@@ -4,14 +4,10 @@ import Tracking from "../icons/Tracking";
4
4
  import RouteIcon from "../RouteIcon";
5
5
  import RouteInfos from "../RouteInfos";
6
6
  import IconButton from "../ui/IconButton";
7
- import getBgColor from "../utils/getBgColor";
8
7
  import useMapContext from "../utils/hooks/useMapContext";
9
8
 
10
9
  function RouteScheduleHeader() {
11
10
  const { isFollowing, setIsFollowing, stopSequence } = useMapContext();
12
- const { stroke, text_color: textColor, type, vehicleType } = stopSequence;
13
- const backgroundColor = stroke || getBgColor(type || vehicleType);
14
- const color = textColor || "black";
15
11
  return (
16
12
  <div className="flex items-center gap-x-4 bg-slate-100 p-4 py-2">
17
13
  <RouteIcon stopSequence={stopSequence} />
@@ -21,11 +17,7 @@ function RouteScheduleHeader() {
21
17
  onClick={() => {
22
18
  setIsFollowing(!isFollowing);
23
19
  }}
24
- style={{
25
- /* stylelint-disable-next-line value-keyword-case */
26
- backgroundColor: isFollowing ? backgroundColor : "white",
27
- color: isFollowing ? color : "black",
28
- }}
20
+ selected={isFollowing}
29
21
  >
30
22
  <Tracking />
31
23
  </IconButton>
@@ -66,9 +66,11 @@ export const RVF_LAYERS_NAMES = {
66
66
 
67
67
  export const DEFAULT_QUERYABLE_LAYERS = Object.keys(RVF_LAYERS_NAMES)
68
68
  .filter((name) => {
69
- return (
70
- name !== RVF_LAYERS_NAMES.tarifzonen && name !== RVF_LAYERS_NAMES.pois
71
- );
69
+ return ![
70
+ RVF_LAYERS_NAMES.haltestellen,
71
+ RVF_LAYERS_NAMES.pois,
72
+ RVF_LAYERS_NAMES.tarifzonen,
73
+ ].includes(name);
72
74
  })
73
75
  .toString();
74
76