diff options
Diffstat (limited to 'kml')
-rw-r--r-- | kml/data.php | 14 | ||||
-rw-r--r-- | kml/dot_yellow.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..e1d11f2 --- /dev/null +++ b/kml/dot_yellow.png |