From d642b78a97168efb859c1e05e902a95d8e726658 Mon Sep 17 00:00:00 2001 From: danji_ma90 Date: Mon, 4 Nov 2024 11:14:53 +0100 Subject: [PATCH] fix(handicap): add partially conform layer for handicap (#1168) * chore: add partially conform layer for handicap * chore(release): 1.28.15-beta.0 * chore: update CHANGELOG * chore(release): 1.30.8-beta.0 * chore(release): 1.30.8-beta.1 * chore(release): 1.30.9-beta.0 --- package.json | 2 +- src/config/ch.sbb.handicap/index.js | 34 ++++++++++++------------ src/config/ch.sbb.handicap/index.test.js | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 6f2f7249c..c26c690de 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "trafimage-maps", "description": "trafimage-maps web component", - "version": "1.30.8", + "version": "1.30.9-beta.0", "private": true, "main": "build/bundle.js", "proxy": "http://127.0.0.1:8000", diff --git a/src/config/ch.sbb.handicap/index.js b/src/config/ch.sbb.handicap/index.js index 97f90866b..cd9922e16 100644 --- a/src/config/ch.sbb.handicap/index.js +++ b/src/config/ch.sbb.handicap/index.js @@ -76,22 +76,22 @@ const nichtBarrierefrei = new HandicapLayer({ }, }); -// const teilBarrierefrei = new HandicapLayer({ -// name: "ch.sbb.teilbarrierefreiebahnhoefe", -// mapboxLayer: handicapDataLayer, -// styleLayersFilter: ({ metadata }) => { -// return /^symbol.teilbarrierefrei/.test(metadata?.["handicap.filter"]); -// }, -// properties: { -// isQueryable: true, -// useOverlay: true, -// popupComponent: "StopPlacePopup", -// highlightPointStyle: handicapHighlightStyleMain, -// hasInfos: true, -// layerInfoComponent: "HandicapLayerInfo", -// color: "#F17E00", -// }, -// }); +const teilBarrierefrei = new HandicapLayer({ + name: "ch.sbb.teilbarrierefreiebahnhoefe", + mapboxLayer: handicapDataLayer, + styleLayersFilter: ({ metadata }) => { + return /^symbol.teilbarrierefrei/.test(metadata?.["handicap.filter"]); + }, + properties: { + isQueryable: true, + useOverlay: true, + popupComponent: "StopPlacePopup", + highlightPointStyle: handicapHighlightStyleMain, + hasInfos: true, + layerInfoComponent: "HandicapLayerInfo", + color: "#F17E00", + }, +}); // TODO: We need to wait for ROKAS to add data for this layer. // const shuttle = new MapboxStyleLayer({ @@ -231,7 +231,7 @@ export default [ statusUnbekannt, // shuttle, nichtBarrierefrei, - // teilBarrierefrei, + teilBarrierefrei, barrierefrei, // nichtBarrierefreieBahnhoefe, // barrierfreierBahnhoefe, diff --git a/src/config/ch.sbb.handicap/index.test.js b/src/config/ch.sbb.handicap/index.test.js index 67d902a97..3088b3557 100644 --- a/src/config/ch.sbb.handicap/index.test.js +++ b/src/config/ch.sbb.handicap/index.test.js @@ -11,7 +11,7 @@ describe("ch.sbb.handicap", () => { .map((l) => l.key) .join(","); expect(permalinkKeys).toBe( - "ch.sbb.bahnhofplaene,ch.sbb.bahnhofplaene.interaktiv,ch.sbb.bahnhofplaene.printprodukte,ch.sbb.status_unbekannt,ch.sbb.nichtbarrierfreierbahnhoefe,ch.sbb.barrierfreierbahnhoefe", + "ch.sbb.bahnhofplaene,ch.sbb.bahnhofplaene.interaktiv,ch.sbb.bahnhofplaene.printprodukte,ch.sbb.status_unbekannt,ch.sbb.nichtbarrierfreierbahnhoefe,ch.sbb.teilbarrierefreiebahnhoefe,ch.sbb.barrierfreierbahnhoefe", ); }); });