Skip to content

Commit

Permalink
UX(web): tweak state border transition (#6168)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonypls committed Nov 22, 2023
1 parent 81ad2d3 commit 8f73c0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/src/features/map/map-layers/StatesLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default function StatesLayer() {
const statesBorderStyle = {
'line-color': theme.stateBorderColor,
'line-width': 1.4,
'line-opacity': 0.9,
'line-dasharray': [1, 1],
'line-opacity': ['interpolate', ['linear'], ['zoom'], 2.8, 0, 3, 0.9],
} as mapboxgl.LinePaint;

const stateLabelLayout = {
Expand All @@ -37,7 +37,6 @@ export default function StatesLayer() {
beforeId="zones-selectable-layer"
type="line"
paint={statesBorderStyle}
minzoom={2.5}
source="states"
/>
<Layer
Expand All @@ -61,7 +60,7 @@ export default function StatesLayer() {
}}
paint={stateLabelPaint}
maxzoom={4.5}
minzoom={3}
minzoom={2.9}
/>
</Source>
);
Expand Down

0 comments on commit 8f73c0e

Please sign in to comment.