osm 0.25: Enable scaled image filtering on 2v19+ firmware

pull/2954/head
Gordon Williams 2023-08-07 14:30:30 +01:00
parent de1287a685
commit 614c003eca
3 changed files with 3 additions and 1 deletions

View File

@ -29,3 +29,4 @@
0.22: Replace position marker with direction arrow
0.23: Bugfix: Enable Compass if needed
0.24: Allow zooming by clicking the screen
0.25: Enable scaled image filtering on 2v19+ firmware

View File

@ -2,7 +2,7 @@
"id": "openstmap",
"name": "OpenStreetMap",
"shortName": "OpenStMap",
"version": "0.24",
"version": "0.25",
"description": "Loads map tiles from OpenStreetMap onto your Bangle.js and displays a map of where you are. Once installed this also adds map functionality to `GPS Recorder` and `Recorder` apps",
"readme": "README.md",
"icon": "app.png",

View File

@ -52,6 +52,7 @@ exports.draw = function() {
if (d!=1) { // if the two are different, add scaling
s *= d;
o.scale = d;
o.filter = true; // on 2v19+ enables supersampling
}
//console.log(ix,iy);
var tx = 0|(ix/s);