Mercurial > gemma
changeset 3382:2d90ec061458
client: improved gauges label on map
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 22 May 2019 15:55:50 +0200 |
parents | 540ef09bd6bc |
children | 4ed940b0f0ca |
files | client/src/components/map/styles.js |
diffstat | 1 files changed, 5 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/map/styles.js Wed May 22 15:53:05 2019 +0200 +++ b/client/src/components/map/styles.js Wed May 22 15:55:50 2019 +0200 @@ -253,21 +253,14 @@ }), text: new Text({ font: '10px "Open Sans", "sans-serif"', - offsetY: 14, + offsetY: 15, fill: new Fill({ - color: isLegend ? "transparent" : "white" + color: "black" }), - text - }) - }), - new Style({ - text: new Text({ - font: '10px "Open Sans", "sans-serif"', - offsetY: 13, - offsetX: -1, - fill: new Fill({ - color: isLegend ? "transparent" : "black" + backgroundFill: new Fill({ + color: "rgba(255, 255, 255, 0.7)" }), + padding: [2, 2, 2, 2], text }) })