diff options
-rw-r--r-- | kml/data.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kml/data.php b/kml/data.php index dacdbc8..6b169a7 100644 --- a/kml/data.php +++ b/kml/data.php @@ -390,6 +390,7 @@ foreach ($locations as $location) { $data = $locations[$location->locid]; //printf("\t" . '<node id="%s" name="%s" lat="%s" lng="%s" pixel_x="%s" pixel_y="%s" state="%s" gallery_link="%s" router_links="%s"/>' . "\n", // $data->locid, $data->locname, $data->lat, $data->lng, $data->pixel_x, $data->pixel_y, $data->state, $data->gallery_link, $data->dnsnames); + if ($data->state!='offline') { printf("\t" .'<Placemark id="%s">' . "\n", $data->locid); printf("\t" .' <name>%s</name>' . "\n", $data->locname); printf("\t" .' <description><br>%s</br><br>%s</br><br>#%s, %s</br></description>' . "\n", $data->gallery_link, $data->dnsnames, $data->locid, $data->state); @@ -402,6 +403,7 @@ foreach ($locations as $location) { printf("\t" .' </coordinates>' . "\n"); printf("\t" .' </Point>' . "\n"); printf("\t" .'</Placemark>' . "\n"); + } } ?> </Folder> |