Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Sort keys before info popup display
Russ Garrett627ff8b2596e
diff --git a/src/infopopup.js b/src/infopopup.jsindex 1f1c72f..d912fa2 100644--- a/src/infopopup.js+++ b/src/infopopup.js@@ -75,7 +75,7 @@ class InfoPopup {let attrs_table = el('table', {'class': 'item_info'});setChildren(attrs_table,- Object.keys(feature.properties).map(key =>+ Object.keys(feature.properties).sort().map(key =>this.renderKey(key, feature.properties[key]),),);