Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Telecoms layer tweaks
Russ Garrett4818bb2e81a0
diff --git a/web/src/style/common.ts b/web/src/style/common.tsindex d1e4ff2..4537a86 100644--- a/web/src/style/common.ts+++ b/web/src/style/common.ts@@ -17,7 +17,14 @@ export const operator_text: ExpressionSpecification = [['zoom'],['get', 'name'],14,- ['case', ['has', 'operator'], ['concat', ['get', 'name'], ' (', ['get', 'operator'], ')'], ['get', 'name']]+ [+ 'case',+ ['all', ['has', 'operator'], ['has', 'name']],+ ['concat', ['get', 'name'], '\n(', ['get', 'operator'], ')'],+ ['has', 'operator'],+ ['get', 'operator'],+ ['get', 'name']+ ]]export const underground_p: ExpressionSpecification = [@@ -43,11 +50,11 @@ export type OIMSymbolOptions = {minZoom: numbertextField: ExpressionSpecificationtextSize?: number+ textMinZoom: number+ textOffset?: numbericonImage: stringiconScale?: number- textMinZoom: numbericonMaxZoom?: number- textOffset?: number}/**diff --git a/web/src/style/style_oim_telecoms.ts b/web/src/style/style_oim_telecoms.tsindex 29b1a32..870283b 100644--- a/web/src/style/style_oim_telecoms.ts+++ b/web/src/style/style_oim_telecoms.ts@@ -49,7 +49,8 @@ const layers: LayerSpecificationWithZIndex[] = [textField: operator_text,iconImage: 'comms_tower',iconMaxZoom: 21,- textMinZoom: 12+ textMinZoom: 12,+ textOffset: 1.5}),oimSymbol({zorder: 562,@@ -61,7 +62,7 @@ const layers: LayerSpecificationWithZIndex[] = [textField: operator_text,iconImage: 'telecom_exchange',iconScale: 0.2,- textMinZoom: 11,+ textMinZoom: 11.5,iconMaxZoom: 13.5}),oimSymbol({