diff options
author | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-24 10:31:05 +0100 |
---|---|---|
committer | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-24 10:31:05 +0100 |
commit | 0b8d074a6a24a4325724b33ae545e8e0d62070ea (patch) | |
tree | a403d4a44d7e526b5f7fed14d03aaba8ff77febd /kml/data.php | |
parent | 520f090971d82aedbdc3d23129be1dd2f8f4f62a (diff) |
Tunnels verbessert
Diffstat (limited to 'kml/data.php')
-rw-r--r-- | kml/data.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/kml/data.php b/kml/data.php index c97e24a..47df524 100644 --- a/kml/data.php +++ b/kml/data.php @@ -349,6 +349,18 @@ echo "<?xml version='1.0' encoding='UTF-8'?>\n"; <scale>0.9</scale> </LabelStyle> </Style> + <Style id="ffstyle_tunnel"> + <IconStyle id="myicon"> + <color>f0ffffff</color> + <scale>0.5</scale> + <Icon><href>dot_vellow.png</href></Icon> + <hotSpot x="0.6" y="0.4" xunits="fraction" yunits="fraction"/> + </IconStyle> + <LabelStyle id="mylab"> + <color>f000ffff</color> + <scale>0.9</scale> + </LabelStyle> + </Style> <Style id="ffstyle_link"> <LabelStyle id="mylab_link"> <color>f099ffff</color> @@ -391,7 +403,7 @@ foreach ($locations as $location) { 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); - printf("\t" .' <styleUrl>#ffstyle_online</styleUrl>' . "\n"); + printf("\t" .' <styleUrl>#ffstyle_%s</styleUrl>' . "\n", $data->state); printf("\t" .' <Point>' . "\n"); printf("\t" .' <extrude>1</extrude>' . "\n"); printf("\t" .' <altitudeMode>relativeToGround</altitudeMode>' . "\n"); |