From d6407933f882e083818df78bcacbc7488ba5917e Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 10 Mar 2026 20:14:19 +0000 Subject: [PATCH] Avoid jumping on null map --- html/static/js/map-arcgis-tile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/static/js/map-arcgis-tile.js b/html/static/js/map-arcgis-tile.js index b38717ac..4d2e2dee 100644 --- a/html/static/js/map-arcgis-tile.js +++ b/html/static/js/map-arcgis-tile.js @@ -16,7 +16,7 @@ class MapArcgisTile extends HTMLElement { attributeChangedCallback(name, old_value, new_value) { //console.log("map-arcgis-tile: attribute changed", name, old_value, new_value); - if (name == "latitude" || (name == "longitude" && this._map != null)) { + if ((name == "latitude" || name == "longitude") && this._map != null) { const latitude = parseFloat(this.getAttribute("latitude")); const longitude = parseFloat(this.getAttribute("longitude")); this._map.jumpTo({