From 7e6b77ff4e83a0c198e6cacba0f08ff92b8362da Mon Sep 17 00:00:00 2001 From: frederic wagner Date: Mon, 27 Nov 2023 09:34:41 +0100 Subject: [PATCH] gipy: fix for zoom + touch update --- apps/gipy/ChangeLog | 7 ++++--- apps/gipy/app.js | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/gipy/ChangeLog b/apps/gipy/ChangeLog index 2835488e2..d46d24c69 100644 --- a/apps/gipy/ChangeLog +++ b/apps/gipy/ChangeLog @@ -120,10 +120,11 @@ * New display algorithm : way faster, larger roads, zooming out is now ok * You will need to re-generate your maps because the new algorithm uses a different scale * Better path simplification - * Waypoints autodetection using the map - * New option: sleep between waypoints * Removed sharp turns auto-detection + * Waypoints autodetection using the map : this will generate more points than really needed but can still be effective. + * New option: sleep between waypoints * Interface: centered svg preview + display file sizes * Interface: disable/enable waypoints detection and elevation * Touching the screen when sleeping will wake up but not change screen - * Removing footways (if bicycles not allowed) to reduce resource usage \ No newline at end of file + * Removing footways (if bicycles not allowed) to reduce resource usage + * Switching screen will clear the screen immediately so you can know your screen touch has been received \ No newline at end of file diff --git a/apps/gipy/app.js b/apps/gipy/app.js index 69d5e2a94..0a631613b 100644 --- a/apps/gipy/app.js +++ b/apps/gipy/app.js @@ -1411,8 +1411,8 @@ function start_gipy(path, maps, interests, heights) { value: status.zoomed_in, format: (v) => (v ? "In" : "Out"), onchange: (v) => { - status.reset_images_cache(); status.zoomed_in = v; + status.reset_images_cache(); }, }, /*LANG*/ @@ -1461,6 +1461,8 @@ function start_gipy(path, maps, interests, heights) { return; } if (active && status.heights !== null) { + g.clear(); + g.flip(); status.screen = (status.screen + 1) % 3; status.display(); }