Skip to content

Commit

Permalink
Improve ordering of leisure layer
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Feb 8, 2023
1 parent 9cae8d4 commit 102c2ab
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions basemap/layers/leisure/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ let directives = [
'fill-color': 'rgb(170, 211, 223)',
'fill-outline-color': 'rgb(120, 183, 202)',
},
{
filter: ['==', ['get', 'leisure'], 'sports_centre'],
'fill-color': 'rgb(223, 252, 226)',
},
{
filter: ['==', ['get', 'leisure'], 'miniature_golf'],
'fill-color': 'rgb(181, 226, 181)',
Expand All @@ -36,23 +32,22 @@ let directives = [
'fill-color': 'rgb(223, 252, 226)',
'fill-outline-color': 'rgb(164, 221, 169)',
},
{
filter: ['==', ['get', 'leisure'], 'pitch'],
'fill-color': 'rgb(170, 224, 203)',
'fill-outline-color': 'rgb(151, 212, 186)',
},
{
filter: ['==', ['get', 'leisure'], 'track'],
'fill-color': 'rgb(196, 224, 203)',
},
{
filter: ['==', ['get', 'leisure'], 'stadium'],
filter: ['==', ['get', 'leisure'], 'sports_centre'],
'fill-color': 'rgb(223, 252, 226)',
},
{
filter: ['==', ['get', 'leisure'], 'pitch'],
'fill-color': 'rgb(170, 224, 203)',
'fill-outline-color': 'rgb(151, 212, 186)',
},
{
filter: ['==', ['get', 'leisure'], 'swimming_pool'],
'fill-color': 'rgb(170, 211, 223)',
'fill-outline-color': 'rgb(120, 183, 202)',
filter: ['==', ['get', 'leisure'], 'stadium'],
'fill-color': 'rgb(223, 252, 226)',
},
{
filter: ['==', ['get', 'leisure'], 'park'],
Expand All @@ -65,6 +60,7 @@ export default asLayerObject(withSortKeys(directives), {
type: 'fill',
source: 'baremaps',
'source-layer': 'leisure',
filter: ['==', ['geometry-type'], 'Polygon'],
layout: {
visibility: 'visible',
},
Expand Down

0 comments on commit 102c2ab

Please sign in to comment.