Adding photos to description pop up bubbles

1,476 views
Skip to first unread message

Payal Patel

unread,
Jul 20, 2011, 4:10:18 PM7/20/11
to KML Developer Support - Google Earth Plug-in
Hello,
I'm a novice KML coder trying to build a Google Earth map of
properties. In the pop up bubble for each placemark, I'd like to add
a logo and/or a photo. Can anyone please tell me which KML tag I
should use? I've tried this code below with no luck. The link is
where I've uploaded the logo.

<img src=https://picasaweb.google.com/112484655985642836345/TRSLogo#>"


Thanks,
Payal

GTrek

unread,
Jul 20, 2011, 5:47:04 PM7/20/11
to KML Developer Support - Google Earth Plug-in
Hi Payal,

Are you using the GE desktop application or the embedded GE API

if it's the latter then:-
<Placemark>
<name>PlaceMarkName</name>
<description><![CDATA[<img src=ulr of image>]]></description>
<Style>
<BalloonStyle>
<displayMode>default</displayMode>
<text><b>$[name]</b><br/>$[description]Description text</
text> // displayed over and under image
</BalloonStyle>
</Style>
<styleUrl>#POI_1</styleUrl>
<LookAt>
<longitude>-13.79967778</longitude>
<latitude>28.85858611</latitude>
<range>6000</range>
<tilt>45</tilt>
<heading>0</heading>
</LookAt>
<Point>
<coordinates> -13.79967778,28.85858611,0.0</coordinates>
</Point>
</Placemark>


Regards

John
www.gtrek.co.uk

Payal Patel

unread,
Jul 21, 2011, 7:02:53 PM7/21/11
to KML Developer Support - Google Earth Plug-in
I'm using GE desktop to view my KML files if that's what you mean.
Would I use this same code?

<description><![CDATA[<img src=ulr of image>]]></description>

Thank you for your help!!

-Payal
> > Payal- Hide quoted text -
>
> - Show quoted text -

GTrek

unread,
Jul 22, 2011, 4:45:56 AM7/22/11
to KML Developer Support - Google Earth Plug-in
Hi,

If you're using the desktop GE then I would pack all the info into a
KMZ file:-

root/
KML_file
pics/
pic1
pic2 etc


And then change the "img src=pics\pic1"

If you would like an example then let me have an email address, you
can get mine from the website below.

Regards

John
www.gtrek.co.uk

Payal Patel

unread,
Jul 22, 2011, 2:39:44 PM7/22/11
to KML Developer Support - Google Earth Plug-in
Hi John,
Will followup with you via email.

-Payal

On Jul 22, 3:45 am, GTrek wrote:
> Hi,
>
> If you're using the desktop GE then I would pack all the info into a
> KMZ file:-
>
> root/
>   KML_file
>   pics/
>      pic1
>      pic2 etc
>
> And then change the "img src=pics\pic1"
>
> If you would like an example then let me have an email address, you
> can get mine from the website below.
>
> Regards
>
> Johnwww.gtrek.co.uk
>
> > > On Jul 20, 9:10 pm,PayalPatel wrote:
>
> > > > Hello,
> > > > I'm a novice KML coder trying to build a Google Earth map of
> > > > properties.  In the pop up bubble for each placemark, I'd like to add
> > > > a logo and/or a photo.  Can anyone please tell me which KML tag I
> > > > should use?  I've tried this code below with no luck.  The link is
> > > > where I've uploaded the logo.
>
> > > > <img src=https://picasaweb.google.com/112484655985642836345/TRSLogo#>"
>
> > > > Thanks,
> > > >Payal- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -

dp

unread,
Nov 25, 2012, 5:59:53 PM11/25/12
to google-earth-...@googlegroups.com
my observation is this: you don't have an easy url for the image. 
in my experience if you grab an image url that ends in .jpg or similar, it works. 
your code looks right. 
Reply all
Reply to author
Forward
0 new messages