Skip to main content

Hi,

i have some pdf docs residing in Folders. From GoogleEarth I would like to open them by clicking on a hyperlink. Some years back I managed to do that, unfortunately I do not remenber very well how.

What I remember is to use the a-tag and the href attribute.

So far I did the following:

As a result I see the "Link to pdf" appearing as a blue underlined hyperlink. But opening the document fails.

I also tried to prefix the "D:xxx" with file://D:xx but it also did not work.

The resulting kml file and the pdf folfer with the documents do not reside in the same folder.

Any ideas?

It should be a file:/// url instead of file:// (3 instead of 2 /), but even then I haven't been able to get it to work on my Google Earth either, at least not with a random test PDF.


Hi, @femo, If it doesnt work via Google Earth, you can always try something like:

<a href="/images/myw3schoolsimage.jpg" download>

To open it locally.


It should be a file:/// url instead of file:// (3 instead of 2 /), but even then I haven't been able to get it to work on my Google Earth either, at least not with a random test PDF.

Hi @redgeographics,

 

I agree with you. None of the yellow marked hyperlinks worked.

 

 

 


Hi @redgeographics,

 

I agree with you. None of the yellow marked hyperlinks worked.

 

 

 

A plain .html or .txt file does work though (should have mentioned that right away...)

 

 


Hi @redgeographics,

I agree with you. None of the two yellow marked hyperlinks worked.

Hi @itay,

hmm, I can't follow your example. Could you transfer it to my pdf example?

I am very sure, that opening a local pdf document from GE worked in the past.


Hi @femo,

 

This is the the example

http://www.w3schools.com/tags/att_a_download.asp

Made me wonder if maybe there are setting(s) in GE that need to be checked in to allow local acces, any chance you missed something like that?

Hope this helps


Hi @femo,

 

This is the the example

http://www.w3schools.com/tags/att_a_download.asp

Made me wonder if maybe there are setting(s) in GE that need to be checked in to allow local acces, any chance you missed something like that?

Hope this helps

Any chance that you need to convert it into a raster (jpg) before viewing it in GE?

 

 


Hi @femo, this works for me for opening a pdf locally (the last link for the w3schools doenst work)

 

  • Start Google earth and Under Tools, Options, General tab, make sure the following are checked:
  • Display box - "Show web results in external browser"
  • Placemark balloons box - "Allow placemark balloons to access local files and personal data"

Hope this helps


Hi @redgeographics,

I agree with you. None of the two yellow marked hyperlinks worked.

Hi @itay,

hmm, I can't follow your example. Could you transfer it to my pdf example?

I am very sure, that opening a local pdf document from GE worked in the past.

Hi @femo, this works for me tto open a pdf locally (the last link for the w3schools doenst work)

 

?Start Google earth and Under Tools, Options, General tab, make sure the following are checked:

 

?Display box - "Show web results in external browser"

 

?Placemark balloons box - "Allow placemark balloons to access local files and personal data"

 

 


Hi @femo, this works for me for opening a pdf locally (the last link for the w3schools doenst work)

 

  • Start Google earth and Under Tools, Options, General tab, make sure the following are checked:
  • Display box - "Show web results in external browser"
  • Placemark balloons box - "Allow placemark balloons to access local files and personal data"

Hope this helps

Hi @itay, yes that is the solution! Thank you very much. All three syntax options (see screenshot above) work well.

Hi @redgeographics, thanks to you too for your time and support!


Reply