This object is in archive! 

Images as links don't work

Ray Broersma shared this problem 9 years ago
Solved

When I enter gpx routes from Dropbox via Android the routes get displayed wonderfully. But the images get displayed as ghostly icons with 0 bytes. Or as my Android says, no media available.

This is not a Dropbox problem, so it must be a locus problem. What is the problem? A snippet of my code reads:

<link href="http://www.insecten.eu/images/herberg.jpg">

<text>herberg</text>

<type>image/jpeg</type></link>

And here, also I get empty, ghostly icons saying no media.

Thanks,

Raymond

Replies (3)

photo
1

Hello Ray,


I have to ask for some sample file to test this problem, as I'm not sure what exactly happen on your device. It's anyway quite possible that Locus incorrectly handle HTTP links on images.


I do not know if above link should be correct, but seems that no such image exists.

photo
1

Thanks Menion, here's a portion of my gpx, with, I hope, just enough markup to make it

valid. Let me know what happens.


  1. <?xml version="1.0" encoding="UTF-8"?>

    <gpx

    version="1.1"

    creator="GPSBabel - http://www.gpsbabel.org"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns="http://www.topografix.com/GPX/1/1"


    xsi:schemaLocation="http://www.topografix.com/GPX/1/0

    http://www.topografix.com/GPX/1/0/gpx.xsd

    http://www.topografix.com/GPX/1/1

    http://www.topografix.com/GPX/1/1/gpx.xsd

    http://www.garmin.com/xmlschemas/GpxExtensions/v3

    http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd

    http://www.garmin.com/xmlschemas/WaypointExtension/v1

    http://www8.garmin.com/xmlschemas/WaypointExtensionv1.xsd

    http://www.garmin.com/xmlschemas/TrackPointExtension/v1

    http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd">;

  2. <wpt lat="51.397329" lon="5.589699">

    <name>stra10a</name>

    <desc>Startpunt route 1. Ingang Strabrechtse Heide, bord UES insectenreservaat Strabrechtse Heide.</desc>

    <link href="http://www.insectenroutes.nl/images/stra10a_ues.jpg">

    <text>Ingang Strabrechtse Heide bord insectenreservaat</text>

    <type>image/jpeg</type></link>

    </wpt>

    </gpx>

As you can see, my example consists of a single waypoint. If you need a track to test it you can use this track (without xml or gpx tags):


  1. <trk>

    <trkseg>

    <name>strabrecht_route_1</name>

    <trkpt lat="51.3973294292" lon="5.5896996986"></trkpt>

    <trkpt lat="51.3974720000" lon="5.5897490000"></trkpt>

    <trkpt lat="51.3976380000" lon="5.5898610000"></trkpt>

    <trkpt lat="51.3976833131" lon="5.5897747166"></trkpt>

    <trkpt lat="51.3976880908" lon="5.5897662509"></trkpt>

    <trkpt lat="51.3977913558" lon="5.5895992834"></trkpt>

    <trkpt lat="51.3979340997" lon="5.5893498380"></trkpt>

    <trkpt lat="51.3980259653" lon="5.5892345868"></trkpt>

    <trkpt lat="51.3981297333" lon="5.5890128855"></trkpt>

    <trkpt lat="51.3981940000" lon="5.5888610000"></trkpt>

    <trkpt lat="51.3982749078" lon="5.5892000534"></trkpt>

    <trkpt lat="51.3983326592" lon="5.5894593894"></trkpt>

    <trkpt lat="51.3983490039" lon="5.5895913206"></trkpt>

    <trkpt lat="51.3983790111" lon="5.5896582082"></trkpt>

    <trkpt lat="51.3984171487" lon="5.5896965135"></trkpt>

    <trkpt lat="51.3984837849" lon="5.5896720383"></trkpt>

    <trkpt lat="51.3985602278" lon="5.5896182265"></trkpt>

    <trkpt lat="51.3986385148" lon="5.5895326473"></trkpt>

    <trkpt lat="51.3986030594" lon="5.5894134566"></trkpt>

    <trkpt lat="51.3985968567" lon="5.5893113650"></trkpt>

  2. </trkseg>
  3. </trk>

This site does not allow me to add an attachment due to "incorrect file type."

Thanks,

Ray

photo
1

Thanks Ray,


it's what I though. Link to www image is in link directly in GPX file. You are correct, that Locus is not able to correctly add such images to "attachments" tab. Instead of some downloading etc. I've fixed this issue that such links will be simply added as a common links.


You will see in next version (today). Link to your image will be at first tab in point screen, at the bottom. And after tap, it really works :). Thank you for your report. (btw. best is to pack file to zip and zip is allowed here).

Replies have been locked on this page!