diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index 9b1ca4f..2efc2ef 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -390,8 +390,8 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange mapEventHandler = (event) => { // select only when having observers - // if(event.type === 'click' && !this.onFeatureSelected.observers.length) return; - //if(event.type === 'pointermove' && !this.onFeatureHover.observers.length) return; + if(event.type === 'click' && !this.onFeatureSelected.observers.length) return; + if(event.type === 'pointermove' && !this.onFeatureHover.observers.length) return; let itemLayer= this.getItemlayer(this.itemLayer); if(itemLayer && itemLayer.layer) { this.selectedFeatures = {};