This commit is contained in:
parent
431cc78c19
commit
8f54e095fe
@ -387,6 +387,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
|
||||
|
||||
mapEventHandler = (event) => {
|
||||
// select only when having observers
|
||||
console.debug("Event");
|
||||
if(event.type === 'click' && !this.onFeatureSelected.observers.length) return;
|
||||
if(event.type === 'pointermove' && !this.onFeatureHover.observers.length) return;
|
||||
if(this.itemLayer && this.itemLayer.layer) {
|
||||
|
Loading…
Reference in New Issue
Block a user