re add Optimisation
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-01-26 17:48:11 +01:00
parent e858ac778c
commit a2e7439776

View File

@ -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 = {};