From 51dda97bd2f0667c13563413e247475ae3f646e7 Mon Sep 17 00:00:00 2001 From: Matteo V Date: Wed, 16 May 2018 16:01:44 +0200 Subject: [PATCH] fix #2879 add highlight for text annotations (#2880) --- web/client/components/map/openlayers/VectorStyle.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 = {