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(
|
return new style.Style(
|
||||||
{
|
{
|
||||||
stroke: new style.Stroke({
|
stroke: new style.Stroke({
|
||||||
color: 'red',
|
color: '#0d6efd',
|
||||||
width: 2
|
width: 3
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -466,7 +466,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
|
|||||||
mapEventHandler = (event) => {
|
mapEventHandler = (event) => {
|
||||||
// select only when having observers
|
// select only when having observers
|
||||||
if(event.type === 'click' && !this.onFeatureSelected.observers.length) return;
|
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);
|
const itemLayer= this.getItemlayer(this.itemLayer);
|
||||||
if(itemLayer && itemLayer.layer) {
|
if(itemLayer && itemLayer.layer) {
|
||||||
this.selectedFeatures = {};
|
this.selectedFeatures = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user