map: offset digi labels from the point for visibility

This commit is contained in:
Adam Goldsmith 2018-07-31 21:08:06 +01:00
parent 5ecd2d69da
commit 3ac5d719de

View File

@ -156,7 +156,10 @@ function plotPacketPaths(packets) {
zIndex: 1, // TODO: probably not the best way to do this zIndex: 1, // TODO: probably not the best way to do this
source: new VectorSource(), source: new VectorSource(),
style: feature => { style: feature => {
digi_style.getText().setText(feature.get('callsign')); digi_style.setText(new Text({
text: feature.get('callsign'),
offsetY: 12
}));
return digi_style; return digi_style;
} }
}); });