diff options
author | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-24 10:26:53 +0100 |
---|---|---|
committer | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-24 10:26:53 +0100 |
commit | 520f090971d82aedbdc3d23129be1dd2f8f4f62a (patch) | |
tree | 8b1a15ff073fd4f2579786917502837e0b1fc264 /kml/data.php | |
parent | 98f0773267a0cd804dc49d924efcf986e0d38a71 (diff) |
Links verbessert
Diffstat (limited to 'kml/data.php')
-rw-r--r-- | kml/data.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kml/data.php b/kml/data.php index c3479de..c97e24a 100644 --- a/kml/data.php +++ b/kml/data.php @@ -431,7 +431,7 @@ foreach ($locations as $location) { </Folder> <Folder> <name>Bodenlinks</name> - <visibility>1</visibility> + <visibility>0</visibility> <?php foreach ($links as $link) { $data1 = $locations[$locids[$link->ipfromLoc]]; @@ -440,7 +440,7 @@ foreach ($links as $link) { // $data1->locid, $data1->locname, $data1->lat,$data1->lng,$data2->locid, $data2->locname, $data2->lat, $data2->lng, $link->label, $link->channel, $link->defaultroute, $link->frequency, $link->dnsfrom,$link->dnsto); printf("\t" .'<Placemark id="%s_%s">' . "\n", $data1->locid, $data2->locid); printf("\t" .' <name>%s - %s</name>' . "\n", $data1->locname, $data2->locname); - printf("\t" .' <styleUrl>%s</styleUrl>' . "\n", ($link->label=='-1' ? '#ffstyle_vpn' : '#ffstyle_link')); + printf("\t" .' <styleUrl>%s</styleUrl><visibility>0</visibility>' . "\n", ($link->label=='-1' ? '#ffstyle_vpn' : '#ffstyle_link')); printf("\t" .' <LineString>' . "\n"); printf("\t" .' <extrude>1</extrude><tessellate>1</tessellate>' . "\n"); printf("\t" .' <altitudeMode>relativeToGround</altitudeMode>' . "\n"); @@ -455,7 +455,7 @@ foreach ($links as $link) { </Folder> <Folder> <name>Linienlinks</name> - <visibility>0</visibility> + <visibility>1</visibility> <?php foreach ($links as $link) { $data1 = $locations[$locids[$link->ipfromLoc]]; @@ -464,7 +464,7 @@ foreach ($links as $link) { // $data1->locid, $data1->locname, $data1->lat,$data1->lng,$data2->locid, $data2->locname, $data2->lat, $data2->lng, $link->label, $link->channel, $link->defaultroute, $link->frequency, $link->dnsfrom,$link->dnsto); printf("\t" .'<Placemark id="%s_%s">' . "\n", $data1->locid, $data2->locid); printf("\t" .' <name>%s - %s</name>' . "\n", $data1->locname, $data2->locname); - printf("\t" .' <styleUrl>%s</styleUrl><visibility>0</visibility>' . "\n", ($link->label=='-1' ? '#ffstyle_vpn' : '#ffstyle_link')); + printf("\t" .' <styleUrl>%s</styleUrl>' . "\n", ($link->label=='-1' ? '#ffstyle_vpn' : '#ffstyle_link')); printf("\t" .' <LineString>' . "\n"); printf("\t" .' <altitudeMode>clampedToGround</altitudeMode>' . "\n"); printf("\t" .' <coordinates>' . "\n"); |