Remove directions from balloons

3,960 views
Skip to first unread message

Marcus

unread,
Jul 19, 2008, 6:08:27 AM7/19/08
to KML Developer Support - Getting Started with KML
How do I remove the "Directions - to here, from here" link and text at
the bottom of the balloon?

I have read the other threads about the issue, but I cant figure it
out...when I edit the file in notepad, I get a error when i try to
copy and paste it back into google...can someone explain it veeeery
simple and step for step for a newbee....

please...

Kind regards Mak99

ManoM

unread,
Jul 19, 2008, 6:26:26 PM7/19/08
to KML Developer Support - Getting Started with KML
Hi Marcus,

You can style the balloon using BallonStyle/text to suppress the
driving directions. Here's an example:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>BalloonStyle.kml</name>
<open>1</open>
<Style id="exampleBalloonStyle">
<BalloonStyle>
<text>$[description]</text>
</BalloonStyle>
</Style>
<Placemark>
<name>No Driving Directions</name>
<description>An example of BalloonStyle/text suppressing driving
directions</description>
<styleUrl>#exampleBalloonStyle</styleUrl>
<Point>
<coordinates>-122.370533,37.823842,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>

BalloonStyle controls how a balloon displays. This tells Earth to only
display the description element and nothing else in the balloon.

You can get more information on BalloonStyle here:
http://code.google.com/apis/kml/documentation/kmlreference.html#BalloonStyle

Mano
Reply all
Reply to author
Forward
0 new messages