Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Use variable anchor on power plants

Russ Garrettac7c6c04644c
diff --git a/web/src/style/style_oim_power.ts b/web/src/style/style_oim_power.ts
index 2abc7be..1cf6d1d 100644
--- a/web/src/style/style_oim_power.ts
+++ b/web/src/style/style_oim_power.ts
@@ -1103,7 +1103,7 @@ export default function layers(): LayerSpecificationWithZIndex[] {
]),
'text-field': name_output_label(7, 9),
'text-font': font,
- 'text-anchor': 'top',
+ 'text-variable-anchor': ['top', 'bottom'],
'text-radial-offset': interpolate(zoom, [
[7, 1.2],
[