gpstrek - Better center named waypoint icon

pull/2768/head
Martin Boonk 2023-06-10 11:11:56 +02:00
parent 9d4d43def2
commit 4d55da2f79
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ let getMapSlice = function(){
graphics.setFont6x15().setFontAlign(-1,0);
for (let c of named){
if (data.i != 0 || currentPosFromGPS){
graphics.drawImage(point, data.poly[c.i]-point.width/2, data.poly[c.i+1]-point.height/2);
graphics.drawImage(point, Math.round(data.poly[c.i]-point.width/2), Math.round(data.poly[c.i+1]-point.height/2));
}
graphics.drawString(c.n, data.poly[c.i] + 10, data.poly[c.i+1]);
}