summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Mayrhofer <mtmayr@mtmayr.com>2020-02-24 10:31:05 +0100
committerMathias Mayrhofer <mtmayr@mtmayr.com>2020-02-24 10:31:05 +0100
commit0b8d074a6a24a4325724b33ae545e8e0d62070ea (patch)
treea403d4a44d7e526b5f7fed14d03aaba8ff77febd
parent520f090971d82aedbdc3d23129be1dd2f8f4f62a (diff)
Tunnels verbessert
-rw-r--r--kml/data.php14
-rw-r--r--kml/dot_yellow.pngbin0 -> 2243 bytes
2 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");
diff --git a/kml/dot_yellow.png b/kml/dot_yellow.png
new file mode 100644
index 0000000..e1d11f2
--- /dev/null
+++ b/kml/dot_yellow.png
Binary files differ