From 3ac5d719de909aace9b3a15385148c79aba836b6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 31 Jul 2018 21:08:06 +0100 Subject: [PATCH] map: offset digi labels from the point for visibility --- src/map.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/map.js b/src/map.js index 58ce8d9..07260fd 100644 --- a/src/map.js +++ b/src/map.js @@ -156,7 +156,10 @@ function plotPacketPaths(packets) { zIndex: 1, // TODO: probably not the best way to do this source: new VectorSource(), style: feature => { - digi_style.getText().setText(feature.get('callsign')); + digi_style.setText(new Text({ + text: feature.get('callsign'), + offsetY: 12 + })); return digi_style; } });