Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Show converters with no voltage at slightly lower zoom

Russ Garrett3fc4e4f52da5
diff --git a/src/style/style_oim_power.js b/src/style/style_oim_power.js
index 498c68b..b93d6fc 100644
--- a/src/style/style_oim_power.js
+++ b/src/style/style_oim_power.js
@@ -204,7 +204,10 @@ const substation_point_visible_p = [
const converter_p = ['all',
['==', ['get', 'substation'], 'converter'],
- ['>', voltage, 100]
+ ['any',
+ ['>', voltage, 100],
+ ['>', ['zoom'], 6]
+ ]
]
const substation_label_visible_p = [