Skip to content

Commit 2dd1210

Browse files
committed
fix #2879 add highlight for text annotations
1 parent e262ccc commit 2dd1210

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

web/client/components/map/openlayers/VectorStyle.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,13 @@ const getValidStyle = (geomType, options = { style: defaultStyles}, isDrawing, t
228228
font: tempStyle.font,
229229
fill: new ol.style.Fill({
230230
color: colorToRgbaStr(tempStyle.stroke || tempStyle.color || '#000000', tempStyle.opacity || 1)
231-
})
231+
}),
232+
stroke: options.style.highlight ? new ol.style.Stroke({
233+
color: colorToRgbaStr(tempStyle.stroke || tempStyle.color || '#000000', tempStyle.opacity || 1),
234+
width: 1
235+
}) : null
232236
})
233237
});
234-
235238
}
236239
if (geomType === "MultiPolygon" || geomType === "Polygon") {
237240
style = {

0 commit comments

Comments
 (0)