Fix: hide 'addnewpoint'-icon when closing the dialog

This commit is contained in:
Pieter Vander Vennet 2023-05-18 23:37:36 +02:00
parent b78e37f7a4
commit 499ad85f1e

View file

@ -541,6 +541,14 @@ export default class ThemeViewState implements SpecialVisualizationState {
}
})
}
{
this.selectedElement.addCallback(selected => {
if(selected === undefined){
// We did _unselect_ an item - we always remove the lastclick-object
this.lastClickObject.features.setData([])
}
})
}
new MetaTagging(this)
new TitleHandler(this.selectedElement, this.selectedLayer, this.featureProperties, this)
new ChangeToElementsActor(this.changes, this.featureProperties)