Change select color
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
22040b43b3
commit
b182b7fda6
@ -250,8 +250,8 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
|
||||
return new style.Style(
|
||||
{
|
||||
stroke: new style.Stroke({
|
||||
color: 'red',
|
||||
width: 2
|
||||
color: '#0d6efd',
|
||||
width: 3
|
||||
})
|
||||
}
|
||||
);
|
||||
@ -466,7 +466,7 @@ 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 === 'pointermove' && !this.onFeatureHover.observers.length) return;
|
||||
const itemLayer= this.getItemlayer(this.itemLayer);
|
||||
if(itemLayer && itemLayer.layer) {
|
||||
this.selectedFeatures = {};
|
||||
|
Loading…
Reference in New Issue
Block a user