Skip to content
Snippets Groups Projects
Commit 63708d69 authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

more consistent spatial search behaviour

parent 07fa241a
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ export class DataBrowserUI implements OnDestroy,OnInit{
}
handleDebouncedNavigation(navigation:any){
if(!isDefined(navigation.position)||!this._spatialDataVisible)
if(!isDefined(navigation.position))
return
const center = navigation.position.map(n=>n/1e6)
const searchWidth = this.constantService.spatialWidth / 4 * navigation.zoom / 1e6
......@@ -240,6 +240,9 @@ export class DataBrowserUI implements OnDestroy,OnInit{
templateSpace,
pageNo
}
if(!this._spatialDataVisible)
return
console.log('spatial search')
this.atlasviewerDataService.spatialSearch(this.spatialSearchObj)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment