MultiGeometry and Placemarks

3,983 views
Skip to first unread message

Steinar Kj?rnsr?d

unread,
Jan 7, 2011, 6:56:01 AM1/7/11
to kml-support-g...@googlegroups.com
I have several KML files with MultiGeometry inside one single placemark. When these files are viewed through Google Maps, the placemark is repeated N times in the left column where N are the number of geometries inside the MultiGeometry block. In my case, these are LineStrings. So the general structure is this
<Document>
 <Folder>
   <Placemark>
     <MultiGeometry>
        <LineString>
           <coordinates>
                 ............
           </coordinates>
          </LineString>
          <LineString>
           <coordinates>
                 ............
           </coordinates>
          </LineString>
       .....
         </MultiGeometry>
       </Placemark>
     .....
      </Folder>
    ....
     </Document>



For an example, see

http://maps.google.no/?q=http://www.skiforeningen.no/markadb/kml/loypestatus/5.kml

Browse down to the red tracks far down in the table of contents in the left column. The track with number 409 appears multiple times in the folder, but has only one - 1 - Placemark entry in the KML file, adhering to the above structure.

Any idea?

Btw, these files show groomed xc-skiing tracks around Oslo, colors indicating how fresh the grooming is.


shannon9585

unread,
Jan 10, 2011, 8:44:17 AM1/10/11
to KML Developer Support - Getting Started with KML
View this page: http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html

You'll see <MultiGeometry> is only parially supported in Google Maps.
> http://maps.google.no/?q=http://www.skiforeningen.no/markadb/kml/loyp...

treebles

unread,
Jan 7, 2011, 11:59:35 AM1/7/11
to KML Developer Support - Getting Started with KML
MultiGeometry is only partially supported in Google Maps, it is
rendered but but displayed as separate features in left side panel.
Please, take a look at the limitation of KML in Google Maps.

http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html

On Jan 7, 6:56 am, Steinar Kj?rnsr?d wrote:
> http://maps.google.no/?q=http://www.skiforeningen.no/markadb/kml/loyp...
Reply all
Reply to author
Forward
0 new messages