kml <description> tag to get from external .html file?

410 views
Skip to first unread message

icube

unread,
Aug 23, 2009, 10:40:37 PM8/23/09
to KML Developer Support - Getting Started with KML
Hi i would like to know if it's possible to render the description's
content from an external .html file instead of in-lining in the .kml
file.

thanks

Barry Hunter

unread,
Aug 25, 2009, 3:48:30 PM8/25/09
to KML Developer Support - Getting Started with KML
<description><![CDATA[<iframe src="http://domain.com/page.html"
width="300" height="400">Loading</iframe>]]></description>

Only works with GE5+

(no other KML clients know of honour iframes)

Luiz Rodrigo Tozzi

unread,
Sep 2, 2009, 4:41:49 PM9/2/09
to KML Developer Support - Getting Started with KML
is it possible to use a **LOCAL html file** in this iframe src?

for example

<description><![CDATA[<iframe src="http://www.google.com" width="300"
height="400"></iframe>]]></description>

works fine, but

<description><![CDATA[<iframe src="localpage.html" width="300"
height="400"></iframe>]]></description>

doesn't work at all even if I have a "localpage.html" in the same
directory as the KML

any ideas?

(I'm using GE 5, Windows Vista 32bits)

On 25 ago, 16:48, Barry Hunter wrote:
> <description><![CDATA[<iframesrc="http://domain.com/page.html"

Luiz Rodrigo Tozzi

unread,
Sep 2, 2009, 5:25:33 PM9/2/09
to KML Developer Support - Getting Started with KML
sorry...

in documentation says:

"Links to local files are generally not allowed. This prevents
malicious code from damaging your system or accessing your data.
Should you wish to allow access to your local filesystem, select
Preferences > Allow placemark balloons to access local files and
personal data. Links to image files on the local filesystem are always
allowed, if contained within an <img> tag."

http://code.google.com/intl/en/apis/kml/documentation/kmlreference.html#description

after turning it on i can access local files using relative path URLs
in the iframe src


On 2 set, 17:41, Luiz Rodrigo Tozzi wrote:
> is it possible to use a **LOCAL html file** in thisiframesrc?
>
> for example
>
> <description><![CDATA[<iframesrc="http://www.google.com" width="300"
> height="400"></iframe>]]></description>
>
> works fine, but
>
> <description><![CDATA[<iframesrc="localpage.html" width="300"
Reply all
Reply to author
Forward
0 new messages