Skip to content

Commit

Permalink
add hook for addSearchLayer in map subscription, re #10502
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Nov 15, 2024
1 parent 5ea684a commit 920a3fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arches/app/media/js/viewmodels/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 920a3fb

Please sign in to comment.