Space Weaver -- vector map viewer for BangleJS #3271
Replies: 2 comments
-
Posted at 2023-08-29 by @gfwilliams Hi - the best bet is to render in smaller chunks - for example the openstreetmap app renders the user's track a hundred points at a time using setInterval, and then it can work alongside everything else. Have you seen gipy? https://banglejs.com/apps/?id=gipy&readme It seems like it might do a similar thing already? As I understand it, it stores the map data in a binary format on the Bangle which is a bit faster and more memory efficient |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-09-01 by user156311 Thanks for gipy pointer. I tried it, and it is fun, but it was unable to render area bigger than two villages. I aim to be limited by flash size, not RAM size. (And yes, I'll be switching to binary). Thanks for setInterval hint. I'll try to think how to do it in a nice way. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-08-23 by user156311
I'm working on vector map application for Bangle.js -- code is available here: espruino/BangleApps#2981
But I'm quickly running into limits of hardware, system limits, and limits of my knowledge of JavaScript. Help is wanted.
Is there a way to do some kind of multitasking? I guess "abort expensive computation if user action is detected" would already be a huge improvement for me. Drawing map takes seconds to minute, aborting the draw when user requests move would be good.
Beta Was this translation helpful? Give feedback.
All reactions