Change select color
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

master
Willem Dantuma 2023-08-01 09:18:11 +02:00
parent 22040b43b3
commit b182b7fda6
1 changed files with 3 additions and 3 deletions

View File

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