Skip to content

Commit

Permalink
Don't rotate signal direction indicators (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
besentv authored Jan 30, 2025
1 parent 62386ca commit 15fdda7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxy/js/styles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,8 @@ const layers = Object.fromEntries(knownThemes.map(theme => [theme, {
'top',
],
'icon-rotate': ['get', 'azimuth'],
'icon-keep-upright': true,
'icon-rotation-alignment': 'map',
},
},
...[0, 1].flatMap(featureIndex =>
Expand Down Expand Up @@ -2043,6 +2045,8 @@ const layers = Object.fromEntries(knownThemes.map(theme => [theme, {
'top',
],
'icon-rotate': ['get', 'azimuth'],
'icon-keep-upright': true,
'icon-rotation-alignment': 'map',
},
},
// Show at most 2 combined features
Expand Down Expand Up @@ -2317,6 +2321,8 @@ const layers = Object.fromEntries(knownThemes.map(theme => [theme, {
'top',
],
'icon-rotate': ['get', 'azimuth'],
'icon-keep-upright': true,
'icon-rotation-alignment': 'map',
},
},
...imageLayerWithOutline(
Expand Down

0 comments on commit 15fdda7

Please sign in to comment.