1
0
Fork 0

gpstrek - In case of GPS show only a small waypoint marker

master
Martin Boonk 2023-05-21 15:46:58 +02:00
parent 8fd1e26bef
commit fcb1b0d15e
1 changed files with 7 additions and 3 deletions

View File

@ -350,11 +350,15 @@ let getMapSlice = function(){
if (current.y > y + height) { current.y = y + height - errorMarkerSize - 5; graphics.setColor(1,0,0).fillRect(x,y + height - errorMarkerSize,x + width ,y+height);}
graphics.drawImage(arrow, current.x-arrow.width/2,current.y);
}
graphics.setColor(0,1,0);
graphics.fillRect(mapCenterX-1,mapCenterY-1, mapCenterX+1,mapCenterY+1);
graphics.setColor(graphics.theme.fg);
} else {
graphics.setColor(0,1,0);
graphics.fillCircle(mapCenterX,mapCenterY, 5);
graphics.setColor(graphics.theme.fg);
}
graphics.setFont("Vector",25).setFontAlign(0,0);
graphics.setColor(graphics.theme.fg);