Skip to content

Commit

Permalink
chore: fix RailplusLayer filters
Browse files Browse the repository at this point in the history
  • Loading branch information
danji90 committed Oct 18, 2023
1 parent b5e2c19 commit dca85e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/config/ch.railplus.mitglieder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ export const railplusMeterspurbahnen = new RailplusLayer({
mapboxLayer: netzkarteRailplus,
styleLayersFilter: ({ metadata }) =>
metadata &&
metadata['isb.filter'] &&
/^(tvs|tvs_flag)$/.test(metadata['isb.filter']),
metadata['railplus.filter'] &&
/^line$/.test(metadata['railplus.filter']),
queryRenderedLayersFilter: ({ metadata }) =>
metadata && metadata['isb.filter'] && /^tvs$/.test(metadata['isb.filter']),
metadata &&
metadata['railplus.filter'] &&
/^line$/.test(metadata['railplus.filter']),
properties: {
isQueryable: true,
popupComponent: 'RailplusPopup',
Expand Down

0 comments on commit dca85e9

Please sign in to comment.