Author Topic: Saving Track sent from API  (Read 599 times)

Offline popo

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Device: Nokia 5.4
Saving Track sent from API
« on: March 11, 2022, 09:54:34 »
Hello,
I am using LocusMap since many years and I have developed a small add-on which generate a 2 points-track (a vector). I send the track through the uri file mechanism and function SendTrack  and it is correctly displayed on Locus (Locus Map Pro 3.57.1).
The problem is that the track is not appearing in the track manager and it cannot be modified (message says track must be recorder before). Do I need to call a function to get the track recorder in Locus database ?
If I close Locus Map then all tracks are lost.
Thanks for your help
 

Online Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12780
  • Thanked: 928 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: Saving Track sent from API
« Reply #1 on: March 14, 2022, 12:05:24 »
Hi,
it depends on how you set a "mode". If you see tracks only temporary on the map, you most probably use `SendMode.Basic`. What you need is to import tracks (lines) into internal database. For this, please use `SendMode.Import`. This should help, let me know.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline popo

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Device: Nokia 5.4
Re: Saving Track sent from API
« Reply #2 on: March 15, 2022, 17:05:02 »
Hi Menion,
thanks a lot - it does exactly what I want now.