Locus Map - forum

Support => Troubles & Questions => Topic started by: plu-irin on October 03, 2020, 18:16:28

Title: Add photo to route description
Post by: plu-irin 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?
Title: Re: Add photo to route description
Post by: Menion 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.
Title: Re: Add photo to route description
Post by: 0709 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
Title: Re: Add photo to route description
Post by: plu-irin 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:

<!-- 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">?   
Title: Re: Add photo to route description
Post by: john_percy on October 06, 2020, 09:04:33
Try img src not Img scr


Sent from my moto g(6) plus using Tapatalk

Title: Re: Add photo to route description
Post by: plu-irin on October 06, 2020, 19:40:47
Quote from: john_percyTry 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 (https://docs.locusmap.eu/doku.php?id=manual:user_guide:tracks:planning) page).
Title: Re: Add photo to route description
Post by: Menion on October 12, 2020, 07:34:22
Thanks Willy, will be fixed in next version.