Multiple Placemarks in one KML

13,490 views
Skip to first unread message

Sye

unread,
Nov 24, 2011, 1:17:36 AM11/24/11
to KML Developer Support - Getting Started with KML
HI All,

Firstly, apologies for asking this question as I am sure it has
already been asked/covered in a hundred other forums.

I am relatively new to KML, and I am trying to map a hundred or so
building with one KML file. I can get one Placemark to display but I
am having issues getting multiple Placemarks to appear.

Below is a brief version of what I have created, but when I try and
run it through the Google KML Interactive Sampler I get the Error
Parsing KML error.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Grosvenor Place</name>
<visibility>1</visibility>
<description><![CDATA[
225 George St, Sydney<br>
<br>
Map Ref: C_1<br>
Precinct: Core<br>
Grade: Premiun<br>
Full Floors Available: 3<br>
]]></description>
<Point>
<coordinates>151.20716,-33.86288,0</coordinates>
</Point>
<Style>
<IconStyle>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/
shaded_dot.png
</href>
</Icon>
<colorMode>normal</colorMode>
<color>ff54edff</color>
</IconStyle>
</Style> >
</Placemark>
<Placemark>
<name>Chifley Tower</name>
<visibility>1</visibility>
<description><![CDATA[
2 Chifley Sq, Sydney<br>
<br>
Map Ref: C_2<br>
Precinct: Core<br>
Grade: Premiun<br>
Full Floors Available: 6<br>
]]></description>
<Point>
<coordinates>151.21166,-33.86615,0</coordinates>
</Point>
<Style>
<IconStyle>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/
shaded_dot.png
</href>
</Icon>
<colorMode>normal</colorMode>
<color>ff54edff</color>
</IconStyle>
</Style> >
</Placemark>
</kml>

Can anyone see where I am going wrong??

Many thanks in advance.

Rossko

unread,
Nov 24, 2011, 5:06:54 AM11/24/11
to KML Developer Support - Getting Started with KML
> Can anyone see where I am going wrong??

Try wrapping your <Placemarks> in a <Document>

Jason M

unread,
Nov 24, 2011, 11:33:00 AM11/24/11
to KML Developer Support - Getting Started with KML

Sye

unread,
Nov 24, 2011, 9:18:47 PM11/24/11
to KML Developer Support - Getting Started with KML
Thanks Rossko, that worked perfectly.

Almost seems too easy!!! LOL

Reply all
Reply to author
Forward
0 new messages