Skip to content

Commit

Permalink
fix #2879 add highlight for text annotations (#2880)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored May 16, 2018
1 parent 5c35a67 commit 51dda97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/client/components/map/openlayers/VectorStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 51dda97

Please sign in to comment.