Skip to content

Commit

Permalink
Decrease map stroke width to 1 for better legibility
Browse files Browse the repository at this point in the history
Especially helpful when zoomed out and where there are lots of small
areas
  • Loading branch information
struan authored and zarino committed Apr 2, 2024
1 parent d629575 commit 3f18e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hub/static/js/explore.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ const app = createApp({
fillColor: feature.properties.color,
fillOpacity: feature.properties.opacity,
color: 'white',
weight: 2,
weight: 1,
opacity: 1,
}
},
Expand All @@ -421,7 +421,7 @@ const app = createApp({
layer.bindTooltip(feature.properties.name)
layer.on({
mouseover: (e) => { e.target.setStyle({ weight: 5 }) },
mouseout: (e) => { e.target.setStyle({ weight: 2}) },
mouseout: (e) => { e.target.setStyle({ weight: 1 }) },
click: (e) => {
trackEvent('explore_area_click', {
'area_type': feature.properties.type,
Expand Down

0 comments on commit 3f18e33

Please sign in to comment.