Author Topic: Add photo to route description  (Read 1060 times)

Offline plu-irin

  • More than Newbie
  • *
  • Posts: 11
    • View Profile
  • Device: Sony Xperia
Add photo to route description
« on: October 03, 2020, 18:16:28 »
Hi,

I wonder if it is possible to add photos to the description of a route (not attached to a point, just a photo in the description). Looking at the rohter routes I bought in the Locus-Store in principle it should be possible. However, I couldn’t find something about this in the manual. Is there a way to do this?
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12538
  • Thanked: 800 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 5, A12
Re: Add photo to route description
« Reply #1 on: October 05, 2020, 08:23:22 »
It's quite a simple method. Description for points/tracks may be full-featured HTML code, so images attached to Rother tracks are currently only linked ("<img src="">) to web images, nothing more.
- 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 0709

  • More than Newbie
  • *
  • Posts: 84
  • Thanked: 90 times
    • View Profile
    • Locus track navigation
  • Device: THL4000 CM12.1 (A5.1.1) SM-T235 (A5.1.1) MI A2 Lite (A9)
Re: Add photo to route description
« Reply #2 on: October 05, 2020, 15:17:39 »
Hi Menion.

The linked picture in gpx track description is not displayed in Locus.
File: BOM_navwpt.zip
« Last Edit: October 21, 2020, 13:00:56 by 0709 »
Locus Pro 3.52
 

Offline plu-irin

  • More than Newbie
  • *
  • Posts: 11
    • View Profile
  • Device: Sony Xperia
Re: Add photo to route description
« Reply #3 on: October 05, 2020, 22:28:24 »
Thank you both,

I added some simple html to the description directly inside Locus. In principle the content renders o.k. in the detail information of the track. However, in the track folder the html code is visible (see screenshots). Moreover, the linked image is not displayed.

In the (exported) gpx the part looks like this:
Code: [Select]
<!-- desc_user:start -->
<b>Bernrieder Panoramaweg</b><br>
<img scr="https://www.w3schools.com/images/lamp.jpg" width="100" height="100"><br> Rundwanderweg mit schönen Aussichtpunkten...
<!-- desc_user:end -->

What am I doing wrong? Btw. in which directory locus is looking for the linked image if I just use <img scr=”test.jpg”>?   
 

Offline john_percy

  • Expert
  • Master of Locus
  • ****
  • Posts: 911
  • Thanked: 165 times
    • View Profile
  • Device: MotoG
Re: Add photo to route description
« Reply #4 on: October 06, 2020, 09:04:33 »
Try img src not Img scr


Sent from my moto g(6) plus using Tapatalk

 

Offline plu-irin

  • More than Newbie
  • *
  • Posts: 11
    • View Profile
  • Device: Sony Xperia
Re: Add photo to route description
« Reply #5 on: October 06, 2020, 19:40:47 »
Quote from: john_percy
Try img src not Img scr

A very good remark - that solved all issues. Some time ago I was in a training in which all participants got the following advice: „embarrass yourself daily”. Mission accomplished!

Btw. if no absolute path is given the file has to be in /Locus/data/import (or relative to this.)

I think it would be worth to add the html capabilities in the manual (maybe in the section “Save Route” on this page).
« Last Edit: October 06, 2020, 21:42:44 by plu-irin »
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12538
  • Thanked: 800 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 5, A12
Re: Add photo to route description
« Reply #6 on: October 12, 2020, 07:34:22 »
Thanks Willy, will be fixed in next version.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download