I have created a KML file containing several thousand placemarks. The description contains a simple HTML tag referencing a location on local disk, pointing to a JPG photograph. The photos display in the popup balloons properly.
I would like for users of Google Earth 7 to be able to click on the displayed photo and have their default JPG file type handler application open and display the photo file.
I have tried enclosing the <img>
tag with an <a href>
tag, using the notation href="file://photos\technician01\photo1.jpg"
, but I can't get the behaviour I am looking for (no external viewer is ever spawned).
Is there a way to accomplish this?
Update Here's a complete block of HTML I have attempted to achieve the described functionality:
<a href=" photos\technician01\August 19, 2013\DSCN0596.jpg">
<table style="width:800px;height:600px">
<tr>
<td>
<img src="photos\technician01\August 19, 2013\DSCN0596.jpg" style="height:auto; width:100%"/>
</td>
</tr>
</table>
</a>`
<img>
tag with a piece of text yields the same results; no external application is spawned when clicking in the hyperlink.src
tag)src
path with%20
<a href=
value and removed it; no effect). Do different rules govern the validity of the<img src=
as opposed to the<a href=
values? The photos display as expected in the balloons (<img src=
), which is why I was hesitant to blame to path name (they are identical, with spaces, commas, whatever). Is it possible that this is a security restriction? Has anyone seen this functional in the wild?