From c873bf3dd3dcf034a9f772da39e35526b5116f4e Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sun, 11 Aug 2024 12:59:34 +0200 Subject: [PATCH] gipy openstmap: clear area before redraw --- apps/gipy/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/gipy/app.js b/apps/gipy/app.js index df90ad2b8..0559a4bd1 100644 --- a/apps/gipy/app.js +++ b/apps/gipy/app.js @@ -1502,6 +1502,7 @@ function start_gipy(path, maps, interests, heights) { osm.lon = (minLong+maxLong)/2.0; const drawOpenStmap = () => { + g.clearRect(Bangle.appRect); osm.draw(); // draw track @@ -1509,7 +1510,11 @@ function start_gipy(path, maps, interests, heights) { for(let i=0; i { // back handling + g.clearRect(0, 0, g.getWidth(), g.getHeight()); E.showMenu(menu); }, drag: (ev) => { // zoom, move