From 920a3fb34d951218684bffcbe1159500c9e70435 Mon Sep 17 00:00:00 2001 From: Galen Date: Fri, 15 Nov 2024 11:21:02 -0800 Subject: [PATCH] add hook for addSearchLayer in map subscription, re #10502 --- arches/app/media/js/viewmodels/map.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arches/app/media/js/viewmodels/map.js b/arches/app/media/js/viewmodels/map.js index e6678ecdae..d3f6dbf953 100644 --- a/arches/app/media/js/viewmodels/map.js +++ b/arches/app/media/js/viewmodels/map.js @@ -317,6 +317,10 @@ define([ map.fitBounds(ko.unwrap(params.bounds), boundingOptions); } + // If searchQueryId is already available, add the search layer + if (self.searchQueryId()) { + self.addSearchLayer(self.searchQueryId()); + } }); this.bounds = ko.observable(ko.unwrap(params.bounds) || arches.hexBinBounds);