Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Fix stray parentheses when no operator

Russ Garrett92693e916277
diff --git a/src/style/style_oim_common.js b/src/style/style_oim_common.js
index c0b5c7b..be34849 100644
--- a/src/style/style_oim_common.js
+++ b/src/style/style_oim_common.js
@@ -6,7 +6,7 @@ const text_paint = {
const operator_text = ["step", ["zoom"],
['get', 'name'],
- 14, ["case", ['!=', ['get', 'operator'], ''],
+ 14, ["case", ['has', 'operator'],
["concat", ['get', 'name'], ' (', ['get', 'operator'], ')'],
['get', 'name']
]