diff options
author | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-23 15:08:56 +0100 |
---|---|---|
committer | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-23 15:08:56 +0100 |
commit | 29f92dd2e75c1982a6114c969952df44488b5af4 (patch) | |
tree | 5ff23e68a116e0bea8f57799277501bb9aebe252 /kml/data.php | |
parent | 150d595ef5e09381fc14cc47966f8335310c8779 (diff) |
Test
Diffstat (limited to 'kml/data.php')
-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> |