Search notes:

GoogleEarth kml: Point element

The <Point> kml element shows the location of a longitude/lattitude coordinate pair.

Using «inline» styles

A <Placemark> can use embedded or inline styles. Thus, the point's style does not to be referenced by a <styleUrl> tag.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
    <name>Point.kml</name>

    <Placemark>
        <name>Zürich</name>

        <Style>
            <Icon><href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href></Icon>
        </Style>

        <Point>
            <coordinates>8.543240928407617,47.36695287673603,0</coordinates>
        </Point>

    </Placemark>

</Document>
</kml>
Github repository about-GoogleEarth, path: /kml/elements/Point/inline-Style.kml

Coloring the point

The <color> tag in the two tags <IconStyle> and <LabelStyle> allow to color a point.
In the following example, the marker is colored red and the label yellow:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
    <name>color.kml</name>

    <Placemark>
        <name>Paradeplatz</name>

        <Style>
            <IconStyle>
                <color>ff0000ff</color>
                <scale>1.1</scale>
                <Icon>
                    <href>http://maps.google.com/mapfiles/kml/pushpin/wht-pushpin.png</href>
                </Icon>
            </IconStyle>
            <LabelStyle>
                <color>ff00ffff</color>
            </LabelStyle>
        </Style>

        <Point>
            <coordinates>8.53890807077965,47.36972631992387,0</coordinates>
        </Point>

    </Placemark>

</Document>
</kml>
Github repository about-GoogleEarth, path: /kml/elements/Point/color.kml

See also

Remove the annoying directions from the Balloons of <Point> elements.

Index