Ignore:
Timestamp:
Apr 7, 2010, 12:24:40 PM (16 years ago)
Author:
Pieter Naber
Message:

Fixed KML output, it's now valid. Added ID's to the placemarkers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/inc/KMLFile.class.php

    r7661 r7692  
    1212class KMLFile {
    1313        private $template = '
    14                 <?xml version="1.0" encoding="UTF-8"?>
     14                <\?xml version="1.0" encoding="UTF-8"?>
    1515                <kml xmlns="http://www.opengis.net/kml/2.2">
    1616                        <Document>
     
    135135                        } else {
    136136                                $placemark = new KMLPlacemark();
     137                                $placemark->setID($name);
    137138                                $placemark->setName($name);
    138139                                $placemark->setDescriptionLocation($descriptionLocation);
     
    196197                        } else {
    197198                                $placemark = new KMLPlacemark();
     199                                $placemark->setID($host_name);
    198200                                $placemark->setName($host_name);
    199201                                $placemark->setDescriptionStatus($descriptionStatus);
Note: See TracChangeset for help on using the changeset viewer.