Label Opacity

751 views
Skip to first unread message

fatrandy13

unread,
Sep 9, 2008, 11:44:22 AM9/9/08
to KML Developer Support - Getting Started with KML
How can I specify Label Opacity within a KML file. The only way I can
seem to do this is by going into the properties window for the
placemark within Google Earth.

Something like:

<Placemark>
<name opacity=0>The Name</name>
<description>Hey Guys</description>
<point>
<coordinates>100.2,44.9</coordinates>
</point>
</Placemark>

I just want the icons to appear on the map, not the name with it.

Roman N

unread,
Sep 9, 2008, 12:56:41 PM9/9/08
to KML Developer Support - Getting Started with KML
Hi,

You can use LabelStyle/color. KML colors are of the format aabbggrr
(alpha, blue, green, red). To control label opacity, set alpha to
something less than 'ff', i.e. '7f' is approximately 50% opaque.

Here are some resources on Style, LabelStyle, and color:

http://code.google.com/apis/kml/documentation/kmlreference.html#style
(Style reference)
http://code.google.com/apis/kml/documentation/kmlreference.html#labelstyle
(LabelStyle reference)
http://code.google.com/apis/kml/documentation/kml_tut.html#geometrystyles
(using Styles on placemarks)

Hope that helps, let me know if you have any other questions,

- Roman
Reply all
Reply to author
Forward
0 new messages