Remove fill colors for selected items
This commit is contained in:
parent
d3c28847ec
commit
bb555eec74
@ -116,8 +116,6 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
||||
if (!this.stylesCache[key]) {
|
||||
if (this.itemTypeService.itemTypes[key]) {
|
||||
let itemType = this.itemTypeService.itemTypes[key];
|
||||
let fillColor = color.asArray(itemType.iconColor);
|
||||
fillColor[3] = this.selectedItem?0:0.5;
|
||||
this.stylesCache[key] = new style.Style({
|
||||
image: itemType.icon ? new style.Icon({
|
||||
anchor: [0.5, 1],
|
||||
@ -128,9 +126,6 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
||||
color: 'red',
|
||||
width: 1
|
||||
}),
|
||||
fill: new style.Fill({
|
||||
color: fillColor
|
||||
}),
|
||||
geometry:(feature) => this.geometry(feature)
|
||||
});
|
||||
} else {
|
||||
|
@ -64,9 +64,6 @@ export class MapEffects {
|
||||
stroke: new style.Stroke({
|
||||
color: 'red',
|
||||
width: 1
|
||||
}),
|
||||
fill: new style.Fill({
|
||||
color: 'rgba(0, 0, 255, 0.1)'
|
||||
})
|
||||
})));
|
||||
actions.push(new mapActions.SetStyle('selected',new style.Style({
|
||||
@ -78,9 +75,6 @@ export class MapEffects {
|
||||
stroke: new style.Stroke({
|
||||
color: 'red',
|
||||
width: 3
|
||||
}),
|
||||
fill: new style.Fill({
|
||||
color: 'rgba(0, 0, 255, 0.1)'
|
||||
})
|
||||
})));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user