Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Tweak tunnel styles

Russ Garrett883e6236612e
diff --git a/src/style/style_oim_power.js b/src/style/style_oim_power.js
index 4b12317..0c1f554 100644
--- a/src/style/style_oim_power.js
+++ b/src/style/style_oim_power.js
@@ -362,9 +362,11 @@ const layers = [
filter: ['==', ['get', 'tunnel'], true],
minzoom: 12,
paint: {
- 'line-opacity': ['case', construction_p, 0.1, 0.3],
+ 'line-opacity': ['case', construction_p, 0.2, 0.4],
'line-color': '#7C4544',
- 'line-width': 8,
+ 'line-width': ['interpolate', ['linear'], ['zoom'],
+ 12, 4, 18, 10
+ ],
},
layout: {
'line-join': 'round',