Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Render solar generator areas

Russ Garrett278099fa050a
diff --git a/src/style_oim_power.js b/src/style_oim_power.js
index 2de6e35..6e084cd 100644
--- a/src/style_oim_power.js
+++ b/src/style_oim_power.js
@@ -285,6 +285,19 @@ const layers = [
'fill-outline-color': 'rgba(0, 0, 0, 1)',
},
},
+ {
+ zorder: 162,
+ id: 'power_solar_panel',
+ type: 'fill',
+ source: 'openinframap',
+ 'source-layer': 'power_generator_area',
+ filter: ['==', ['get', 'source'], 'solar'],
+ minzoom: 13,
+ paint: {
+ 'fill-color': '#726BA9',
+ 'fill-outline-color': 'rgba(50, 50, 50, 1)',
+ },
+ },
{
zorder: 260,
id: 'power_line',