diff --git a/web/client/components/map/openlayers/VectorStyle.js b/web/client/components/map/openlayers/VectorStyle.js index 4edeaf8a1b..57d7b522ab 100644 --- a/web/client/components/map/openlayers/VectorStyle.js +++ b/web/client/components/map/openlayers/VectorStyle.js @@ -228,10 +228,13 @@ const getValidStyle = (geomType, options = { style: defaultStyles}, isDrawing, t font: tempStyle.font, fill: new ol.style.Fill({ color: colorToRgbaStr(tempStyle.stroke || tempStyle.color || '#000000', tempStyle.opacity || 1) - }) + }), + stroke: options.style.highlight ? new ol.style.Stroke({ + color: colorToRgbaStr(tempStyle.stroke || tempStyle.color || '#000000', tempStyle.opacity || 1), + width: 1 + }) : null }) }); - } if (geomType === "MultiPolygon" || geomType === "Polygon") { style = {