View Full Version : Opening JPEGs from a balloon in 4.3.7204?
jerpat
06-16-2008, 08:51 PM
So, in previous versions of Google Earth, I had a description of my placemark that had an image that was encapsulated in an href anchor. The href itself was href="file:///c:/myPicture.jpg" for example. Clicking on the image in GE < v. 4.3 brings up the browser with my picture in it. In 4.3, it does :( nothing. Any ideas????
jerpat
06-16-2008, 09:09 PM
It works fine if I anchor text...just not my image. So, my anchored image does not respond, but anchored text does. Weird....again, any ideas?
jerpat
06-16-2008, 09:19 PM
Sorry for the multiple posts...but hopefully the extra data will help.
So, like I said, with just the pic as the anchor, the click on the anchor is "ignored". If I have the option: "Show web results in external browser off", it brings up the image in GE's default browser. If I have the option on, it ignores my request. A regular web site will work fine either way.
Gandolf
06-16-2008, 11:29 PM
Can you give an example of your file in text form? We can look at it and get a better idea of what you need.
Forkboy2
06-17-2008, 05:27 AM
I've also noticed that they made some changes to the way local files in balloons are handled in latest couple of releases. Previously I don't think it was possible to open local kml/kmz file directly from a link in the balloon, which now it is.
<a href='d:/a.jpg'>XXXX</a> will load a local JPG file, which is what I think you're trying to do.
jerpat
06-18-2008, 03:37 AM
Can you give an example of your file in text form? We can look at it and get a better idea of what you need.
Sorry, I'm not totally sure what you're asking for:
I've got the following, for example:
<Placemark>
<description>
<![CDATA[
<table>
<tr><td><a href="file:///c:/MyPic.jpg"><img src="c:\MyPic.jpg"></a></td></tr>
</table>
]]>
</description>
.
.
.
</Placemark>
It turns out that *any* local file, .jpg, .htm, etc. in the anchor is totally ignored, but a http://<whatever> works like a charm.
I've also tried href="C:\MyPic.jpg" and any other variation you can probably conjure up, just to be sure what I was seeing wasn't some weird glitch in GE with the way the file is specified.
Of course, the image comes up just fine...but when you click on the image...nothing happens (except the balloon goes away).
Of further note, I've been able to get limited success by telling Google Earth *not* to open the link in an external browser (Tools>Options>General>Show web results in external browser). But we'd really like to be able to open the picture in an external browser like in the previous versions.
Someone else complained about this on the google group too...
http://groups.google.com/group/kml-support-getting-started/browse_thread/thread/d7542efb07cbc688
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.