Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Use fill-color for substations
Russ Garrett47ab1725a44b
diff --git a/web/public/openinframap.mapcss b/web/public/openinframap.mapcssindex 73beaee..cfe128c 100644--- a/web/public/openinframap.mapcss+++ b/web/public/openinframap.mapcss@@ -136,44 +136,47 @@ way[power=~/line|minor_line|cable/][circuits>1][count(split(";",tag(voltage)))=1}/* Substation colours */-way[power=substation][to_int(get(split(";",tag(voltage)),0))<10000]{- left-casing-color:#7A7A85;- left-casing-width:3;+area[power=substation]{+ fill-opacity:0.6;+ fill-extent:10;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=10000][to_int(get(split(";",tag(voltage)),0))<25000]{- left-casing-color:#6E97B8;- left-casing-width:3;+area[power=substation][to_int(get(split(";",tag(voltage)),0))<10000]{+ fill-color:#7A7A85;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=25000][to_int(get(split(";",tag(voltage)),0))<52000]{- left-casing-color:#55B555;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=10000][to_int(get(split(";",tag(voltage)),0))<25000]{+ fill-color:#6E97B8;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=52000][to_int(get(split(";",tag(voltage)),0))<132000]{- left-casing-color:#B59F10;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=25000][to_int(get(split(";",tag(voltage)),0))<52000]{+ fill-color:#55B555;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=132000][to_int(get(split(";",tag(voltage)),0))<220000]{- left-casing-color:#B55D00;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=52000][to_int(get(split(";",tag(voltage)),0))<132000]{+ fill-color:#B59F10;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=220000][to_int(get(split(";",tag(voltage)),0))<310000]{- left-casing-color:#C73030;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=132000][to_int(get(split(";",tag(voltage)),0))<220000]{+ fill-color:#B55D00;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=310000][to_int(get(split(";",tag(voltage)),0))<550000]{- left-casing-color:#B54EB2;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=220000][to_int(get(split(";",tag(voltage)),0))<310000]{+ fill-color:#C73030;}-way[power=substation][to_int(get(split(";",tag(voltage)),0))>=550000]{- left-casing-color:#00C1CF;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=310000][to_int(get(split(";",tag(voltage)),0))<550000]{+ fill-color:#B54EB2;}-way[power=substation][to_int(get(split(";",tag(frequency)),0))=0]{- left-casing-color:#4E01B5;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(voltage)),0))>=550000]{+ fill-color:#00C1CF;}-way[power=substation][to_float(get(split(";",tag(frequency)),0))>16][to_float(get(split(";",tag(frequency)),0))<17]{- left-casing-color:#A8B596;- left-casing-width:3;++area[power=substation][to_int(get(split(";",tag(frequency)),0))=0]{+ fill-color:#4E01B5;+}++area[power=substation][to_float(get(split(";",tag(frequency)),0))>16][to_float(get(split(";",tag(frequency)),0))<17]{+ fill-color:#A8B596;}\ No newline at end of file