Skip to content

Commit

Permalink
Default selection style
Browse files Browse the repository at this point in the history
  • Loading branch information
lolochristen committed Jul 8, 2024
1 parent 68e4f88 commit 3396c1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/OpenLayers.Blazor/wwwroot/openlayers_interop.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,11 @@ MapOL.prototype.setSelectionSettings = function(layerId, enableSelection, style,
var that = this;
var defaultSelectionStyle = new ol.style.Style({
fill: new ol.style.Fill({
color: '#eeeeee',
color: '#eeeeeeaa',
}),
stroke: new ol.style.Stroke({
color: 'rgba(255, 255, 255, 0.7)',
width: 2,
color: 'rgba(67, 141, 239, 0.7)',
width: 5,
}),
});

Expand All @@ -797,7 +797,7 @@ MapOL.prototype.setSelectionSettings = function(layerId, enableSelection, style,
if (style) {
return that.mapStyleOptionsToStyle(style, feature);
} else {
const color = feature.get('COLOR') || '#eeeeee';
const color = feature.get('COLOR') || '#eeeeeeaa';
defaultSelectionStyle.getFill().setColor(color);
return defaultSelectionStyle;
}
Expand Down

0 comments on commit 3396c1d

Please sign in to comment.