Skip to content

Commit

Permalink
fix(handicap): add partially conform layer for handicap (#1168)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
danji90 authored Nov 4, 2024
1 parent cd80e14 commit d642b78
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
34 changes: 17 additions & 17 deletions src/config/ch.sbb.handicap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -231,7 +231,7 @@ export default [
statusUnbekannt,
// shuttle,
nichtBarrierefrei,
// teilBarrierefrei,
teilBarrierefrei,
barrierefrei,
// nichtBarrierefreieBahnhoefe,
// barrierfreierBahnhoefe,
Expand Down
2 changes: 1 addition & 1 deletion src/config/ch.sbb.handicap/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
});
});

0 comments on commit d642b78

Please sign in to comment.