On Friday, 28 June 2013 11:22:44 UTC+1, Bjorn Nyberg wrote:
Hi,I am trying to get a relative path to work in a kmz of mine that I have exported from ArcGIS however the paths are not working for a <a href>. Stating an <img src works fine but I do not want to embed the picture in the thumbnail itself but rather have it pop up in a separate window (in google earth) and I cant understand why referencing an image should be that different between those two methods.
What I have been attempting to do is something along the line of :
<a href="../files/image.jpg">Test</a>
Such a link is opened in a browser (be it the one built into GE or otherwise) - and you can't pass such a relative link to a browser. It simply wont know how to resolve it.
Even if GE was to first convert it to a full URL, it wouldn't work.
A browser can't resolve a URL like
c:/folder/file.kmz/files/image.jpg
it simply doenst understand KMZ files.
(Whereas the image tag is being resolved by the Google Earth client itself)
I also tried to link it to another kmz file using network links, however it appears to only open the same kmz again? something along the lines of
<NetworkLink>
<name>Link</name>
<visibility>0</visibility>
<a href>"../files/kmz2.kmz></a>
</NetworkLink>
network links dont use <a> tags, IF it did work (I'm not sure) would be something more like
<NetworkLink>
<name>Link</name>
<visibility>0</visibility>
<Link>
<href>../files/kmz2.kmz</href>
</NetworkLink>