Do KML files support multi layer placemark data?

704 views
Skip to first unread message

Tadashi Ebisu

unread,
Mar 4, 2015, 2:11:24 PM3/4/15
to kml-suppor...@googlegroups.com
Greetings KML support group!

Long time maps user, first time poster.  I work at an event company and I'm trying to create a program that takes a. csv file and converts it into a google earth engine/ cartodb geocoded .kml file,  Sounds simple and I'm almost done.

However, my issue comes when I want to have multiple placemark layers in the same .kml file.  For instance, creating a map with placemark points from one and having another layer with different data on the same map.  I know how to do this manually (by uploading separate ,kml files individually) but would like to know if its possible within the xml formatting itself.

So my question is- do KML files support multiple placemark location layers (For instance if I have a map with one layer containing participants from March and another from an event in August, to appear on the same map)?  Is there a specific formatting tag like there is with images (e.g. <layer1> </layer1>) to handle multiple layers?


Many thanks to the fine person who can help me with this!


barryhunter (KML Guru)

unread,
Mar 4, 2015, 2:20:00 PM3/4/15
to kml-suppor...@googlegroups.com
KML supports the concept of Folders. 

A Folder can contain features (eg placemarks) or in fact further folders. 

<Document>
 
<Folder>
     
<name>folder one</name>
     
<Placemark>...</Placemark>
     
<Placemark>...</Placemark>

     ...
 
</Folder>
   ...
 
<Folder>
     
<name>folder two</name>
     
<Placemark>...</Placemark>
     
<Placemark>...</Placemark>

     ...
 
</Folder>
  ....
</Document>



When importing such a file into My Maps - the first level of folders will equate into layers (ie each folder becomes a layer) - provided under 10 folders. 

I'm not sure if Maps Engine supports such folders or not. 

Fusion Tables ignores folders (all features from a KML file got into one Table) 
Reply all
Reply to author
Forward
0 new messages