Skip to content

Commit

Permalink
Highlighting will be cleared on layer saving or reactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-HNguyen committed Jul 5, 2024
1 parent aa05d5b commit 8475281
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 3dwebclient/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,11 @@ function saveLayerSettings() {
document.getElementById('loadingIndicator').style.display = 'block';
Promise.resolve(activeLayer.reActivate()).then((result) => {
document.getElementById('loadingIndicator').style.display = 'none';
webMap.clearSelectedObjects();
}, (error) => {
CitydbUtil.showAlertWindow("OK", "Error", error.message);
document.getElementById('loadingIndicator').style.display = 'none';
webMap.clearSelectedObjects();
});

function applySaving(propertyName, activeLayer) {
Expand Down Expand Up @@ -614,6 +616,7 @@ function addLayerToList(layer) {
if (checkbox.checked) {
console.log("Layer " + citydbLayer.name + " is visible now!");
citydbLayer.activate(true);
webMap.clearSelectedObjects();
} else {
console.log("Layer " + citydbLayer.name + " is not visible now!");
citydbLayer.activate(false);
Expand Down

0 comments on commit 8475281

Please sign in to comment.