Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Styling for underground power plants
Russ Garrett436fbcb11e7b
diff --git a/tegola/layers.yml b/tegola/layers.ymlindex 894c907..d89ba27 100644--- a/tegola/layers.yml+++ b/tegola/layers.yml@@ -196,6 +196,8 @@ layers:sql: tags -> 'plant:storage'- name: repd_idsql: tags -> 'repd:id'+ - name: location+ sql: tags -> 'location'from: power_plantwhere: >geometry && !BBOX! ANDdiff --git a/web/src/style/style_oim_power.ts b/web/src/style/style_oim_power.tsindex 3b56bd8..551f596 100644--- a/web/src/style/style_oim_power.ts+++ b/web/src/style/style_oim_power.ts@@ -441,7 +441,7 @@ const layers: LayerSpecificationWithZIndex[] = [zorder: 161,id: 'power_plant_outline',type: 'line',- filter: ['!', construction_p],+ filter: all(['!', construction_p], ['!', underground_p]),source: 'power',minzoom: 8,'source-layer': 'power_plant',@@ -457,6 +457,24 @@ const layers: LayerSpecificationWithZIndex[] = ['line-join': 'round'}},+ {+ zorder: 161,+ id: 'power_plant_outline_underground',+ type: 'line',+ filter: all(underground_p, not(construction_p)),+ source: 'power',+ minzoom: 8,+ 'source-layer': 'power_plant',+ paint: {+ 'line-color': rgb(30, 30, 30),+ 'line-opacity': 0.8,+ 'line-width': interpolate(zoom, [+ [13, 0.5],+ [20, 2]+ ]),+ 'line-dasharray': [2, 2]+ }+ },{zorder: 161,id: 'power_plant_outline_construction',