summaryrefslogtreecommitdiff
path: root/kml/data.php
diff options
context:
space:
mode:
Diffstat (limited to 'kml/data.php')
-rw-r--r--kml/data.php14
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");