Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Render underground substations differently
Russ Garrett7f58ac440e17
diff --git a/tegola/layers.yml b/tegola/layers.ymlindex 7da2fc9..69f402a 100644--- a/tegola/layers.yml+++ b/tegola/layers.yml@@ -157,6 +157,8 @@ layers:field_sets: [geom, name, frequency, voltages, construction, wiki, url, start_date]fields:- name: substation+ - name: location+ sql: tags -> 'location'id_field: osm_idfrom: substationwhere: geometry && !BBOX!diff --git a/web/src/style/style_oim_power.ts b/web/src/style/style_oim_power.tsindex 33ef76e..2f89649 100644--- a/web/src/style/style_oim_power.ts+++ b/web/src/style/style_oim_power.ts@@ -513,7 +513,7 @@ const layers: LayerSpecificationWithZIndex[] = [zorder: 162,id: 'power_substation_outline',type: 'line',- filter: substation_visible_p,+ filter: all(substation_visible_p, not(underground_p)),source: 'power','source-layer': 'power_substation',minzoom: 13,@@ -526,6 +526,24 @@ const layers: LayerSpecificationWithZIndex[] = [])}},+ {+ zorder: 162,+ id: 'power_substation_outline_underground',+ type: 'line',+ filter: underground_p,+ source: 'power',+ minzoom: 8,+ 'source-layer': 'power_substation',+ paint: {+ 'line-color': rgb(30, 30, 30),+ 'line-opacity': 0.8,+ 'line-width': interpolate(zoom, [+ [13, 0.5],+ [20, 4]+ ]),+ 'line-dasharray': [2, 2]+ }+ },{zorder: 163,id: 'power_solar_panel',