Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Power style tweaks

Russ Garrett1a6e95684edc
diff --git a/web/src/style/style_oim_power.ts b/web/src/style/style_oim_power.ts
index dcf0f93..7aad133 100644
--- a/web/src/style/style_oim_power.ts
+++ b/web/src/style/style_oim_power.ts
@@ -668,6 +668,25 @@ export default function layers(): LayerSpecificationWithZIndex[] {
'line-cap': 'round'
}
},
+ {
+ zorder: 263,
+ id: 'power_portal_way',
+ type: 'line',
+ source: 'power',
+ 'source-layer': 'power_portal_way',
+ minzoom: 14,
+ layout: {
+ 'line-join': 'bevel',
+ 'line-cap': 'square'
+ },
+ paint: {
+ 'line-color': '#444',
+ 'line-width': interpolate(zoom, [
+ [14, 2],
+ [20, 6]
+ ])
+ }
+ },
{
zorder: 264,
id: 'power_tower',
@@ -760,25 +779,6 @@ export default function layers(): LayerSpecificationWithZIndex[] {
'icon-rotate': ['get', 'angle']
}
},
- {
- zorder: 265,
- id: 'power_portal_way',
- type: 'line',
- source: 'power',
- 'source-layer': 'power_portal_way',
- minzoom: 14,
- layout: {
- 'line-join': 'bevel',
- 'line-cap': 'square'
- },
- paint: {
- 'line-color': '#444',
- 'line-width': interpolate(zoom, [
- [14, 2],
- [20, 6]
- ])
- }
- },
{
zorder: 266,
id: 'power_pole_transformer',
@@ -953,7 +953,8 @@ export default function layers(): LayerSpecificationWithZIndex[] {
[17, 11],
[20, 14]
]),
- 'text-offset': [0, 2]
+ 'text-variable-anchor': ['top', 'bottom'],
+ 'text-radial-offset': 1.5
}
},
oimSymbol({