gipy: display track on openstmap
adds option to plot openstmap if installed, similar to recorder. Code heavily copied from openstmap.
Notify @wagnerf42
Should the code go to openstmap module to make sharing easier? Also fixing or disabling warnings may be good.
ok the "heavily copied from openstmap" was not very precise from me, it is actually mixed recorder and openstmap, also with changes, so it is not a 1:1 copy, you will not find many identical lines in succession.
There are also obvious differences, for example in openstmap there is a call to stop the continous updating of the track which has been left out here, also the source of the track to display is different: While recorder does not show the current position, I have decided here to include it and the default zoom level is calculated from current position + full track display. In short: I would not bother sharing code here.
LGTM but there's some build errors that're blocking this :)
I have not changed these lines
I have not changed these lines
No worries - @atjn could you lend a hand with updating the lint exemptions?
I have sometimes just added some let-statements near the beginning of the script as an easy way to make the linter happy with older code. In this case e.g:
let direction, c;
I can fix the warnings if you want me to, but you need to provide me with a sample GPX file. Without it, the app never loads. I tried to download a few from different websites, but they all break the upload script with different errors.
You need a GPX-track file, not route. I have created a test file from https://www.bbbike.org/. Both the .gpx and the .gps are in test.zip
Thanks for the file. I made the fix in #3533 so you can merge that first, then merge this afterward.
Thanks - both for the openstmap change and the lint fixes