Skip to content

Commit

Permalink
Add leisure track lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Jan 8, 2025
1 parent 998bd93 commit 4eaa528
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions basemap/layers/leisure/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export let directives = [
'line-color': theme.leisureNatureReserveLineColor,
'line-width': 2,
},
{
filter: ['==', ['get', 'leisure'], 'track'],
'line-color': theme.leisureTrackLineColor,
'line-width-stops': theme.leisureTrackLineWidth,
},
];

export default asLayerObject(withSortKeys(directives), {
Expand All @@ -36,4 +41,5 @@ export default asLayerObject(withSortKeys(directives), {
'line-cap': 'round',
'line-join': 'round',
},
'filter': ['==', ['geometry-type'], 'LineString'],
});
3 changes: 3 additions & 0 deletions basemap/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ export default {
leisureSwimmingPoolOverlayOutlineColor: 'rgb(120, 183, 202)',
leisureTrackBackgroundFillColor: 'rgb(196, 224, 203)',
leisureTrackBackgroundFillOutlineColor: 'rgba(101, 206, 166, 1.0)',
leisureTrackLineColor: "rgb(196, 224, 203)",
leisureTrackLineWidth: [5, 0.5, 16, 2],
manMadeBridgeFillColor: 'rgb(184, 184, 184)',
manMadeGroyneFillColor: 'rgb(184, 184, 184)',
manMadeIconColor: 'rgb(85, 85, 85)',
Expand Down Expand Up @@ -416,4 +418,5 @@ export default {
waterwayTextColor: 'rgba(26, 109, 187, 1)',
waterwayTextHaloColor: 'rgba(255, 255, 255, 0.8)',
waterwayTunnelColor: 'rgb(216,237,250)',

};

0 comments on commit 4eaa528

Please sign in to comment.