Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Fix missing voltages in transformer infobox
Russ Garrettcbb1239c8982
diff --git a/web/src/infopopup.ts b/web/src/infopopup.tsindex 0fda983..44c20f7 100644--- a/web/src/infopopup.ts+++ b/web/src/infopopup.ts@@ -223,7 +223,6 @@ class InfoPopup {}popupHtml(feature: MapGeoJSONFeature) {- console.log(feature.properties)const attrs_table = el('table', { class: 'item_info' })const renderedProperties = Object.keys(feature.properties).sort()@@ -233,7 +232,7 @@ class InfoPopup {const content = el('div', this.nameTags(feature))- if (feature.properties['voltage']) {+ if (feature.properties['voltage'] || feature.properties['voltage_primary']) {mount(content, this.voltageField(feature))}