ix race condition bug on highlight
This commit is contained in:
parent
f06c445264
commit
15e5a409c1
1 changed files with 8 additions and 6 deletions
|
|
@ -124,6 +124,7 @@ function updateActiveFeature(feature_or_featureid){
|
|||
}
|
||||
|
||||
document.getElementById("result-panel").addEventListener("activePanelChange", e => {
|
||||
if(e.activePanelIndex){
|
||||
let activeElement = e.target.children[e.activePanelIndex]
|
||||
if(activeElement instanceof FeatureElement){
|
||||
let feature = activeElement.feature
|
||||
|
|
@ -131,4 +132,5 @@ document.getElementById("result-panel").addEventListener("activePanelChange", e
|
|||
} else {
|
||||
MAP.unhighlight_all()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue