PDA

View Full Version : Photo to placemark.



sladys
04-30-2006, 08:44 PM
How do I add a photo to a placemark, I have tried so much but never succeded.

Can anyone help?

Jens
04-30-2006, 10:01 PM
Do you mean in the nice presentation box that pops up when you click on a placemark?

Zothip
04-30-2006, 10:04 PM
<img src='www.dns.com/pic.jpg'>

cheers

Zothip
04-30-2006, 10:07 PM
And...

If you want to change the color of the balloon, add this after the <icon id="whatever">


<BalloonStyle>
<color>FF0080</color>
</BalloonStyle>

Just change the color code.

here (http://www.googleearthhacks.com/forums/showthread.php?t=6575) is a nice example of colored balloons and pictures.

Jens
04-30-2006, 10:13 PM
I use this for pictures on the web:

<img src="PICTURE ULR HERE" width="XXX" height="XXX" border="0"><br>
<a href="PICTURE ULR HERE">TEXT HERE</a>

It adjusts the picture's height and width and adds a link to the original picture as well using the picture text.

cathar1234
06-08-2011, 09:57 AM
I am trying to add a picture from my hard drive instead of the internet I put in the file path and all I am getting is a grey box instead of a picture any advice on this?

Appletom
06-08-2011, 12:27 PM
Pretty sure cathar1234 that you have to have the picture on the internet. The picture won't be part of the kmz file, it will be called for display in GE by the kmz file.

Hopefully someone wiser than myself will chime in.

Munden
06-09-2011, 12:51 AM
It's possible to link to a local file on your computer, but you cannot share this placemark. The thing is that you have to remember that you're not giving a file path, but it's a URL path. That will not simply be C:\pictures\yay.jpg or whatever yours might be. Your URL can look like this:

file:///C:/Pics/Art/Paintings/JohnSingerSargent/Mrs_Fiske_Warren_and_Her_Daughter.jpg

thus:
<center>
<img width=600 src="file:///C:/Pics/Art/Paintings/JohnSingerSargent/Mrs_Fiske_Warren_and_Her_Daughter.jpg">
</center>

It will continue to pull up that image from the placemark you've made in your MyPlaces listing. If you save this to a separate KMZ outside of your MyPlaces and then try to open that KMZ, you'll find that the image isn't in the placemark anymore. If you simply want to show it to people on that computer (as one might in a classroom) then you're fine. If you want to share it, you'll have to put it on a picture sharing website and link to that.

The exception to this rule is custom icons. Those get bundled into your KMZ archive and the references in your placemarks are automatically updated to use that file.