Do not handle map event in 3D mode

This commit is contained in:
Willem Dantuma
2022-09-28 21:17:57 +02:00
parent cf84f8c93d
commit ac5bd7d635
6 changed files with 36 additions and 9 deletions

View File

@@ -94,6 +94,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
public dataLayerSlideValue:number = 50;
public dataLayerSlideEnabled = false;
private visibleAreaBottom = 0;
private viewEnabled: boolean = true;
@ViewChild('map') map;
@ViewChild('contentDiv') contentDiv: ElementRef;
@@ -375,6 +376,9 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
this.dataLayerSlideEnabled=v;
this.map.instance.render();
});
this.store.select(mapReducers.selectGetViewEnabled).subscribe((v) => {
this.viewEnabled = v;
});
}
handleSearchCollapse(event) {
@@ -428,7 +432,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
}
handleOnMoveEnd(event) {
if(this.initialized) {
if(this.initialized && this.viewEnabled) {
this.zone.run(() =>{
console.debug("Move end");
var map = event.map;