Index: trunk/src/inc/KMLFile.class.php
===================================================================
--- trunk/src/inc/KMLFile.class.php	(revision 7631)
+++ trunk/src/inc/KMLFile.class.php	(revision 7632)
@@ -6,10 +6,53 @@
  */
 
+define('PLACEMARK_GREEN', 'http://www.google.com/intl/en_us/mapfiles/ms/micons/green-dot.png');
+define('PLACEMARK_ORANGE', 'http://www.google.com/intl/en_us/mapfiles/ms/micons/orange-dot.png');
+define('PLACEMARK_RED', 'http://www.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png');
+
 class KMLFile {
 	private $template = '
 		<?xml version="1.0" encoding="UTF-8"?>
 		<kml xmlns="http://www.opengis.net/kml/2.2">
-			%CONTENT%
+			<Document>
+				<name>Wireless Leiden Interactive Nodemap 2.0</name>
+				<open>1</open>
+				<description>Wireless Leiden Interactive Nodemap 2.0</description>
+				<Style id="greenArrowIcon">
+					<IconStyle>
+						<Icon>
+							<href>%PLACEMARK_GREEN%</href>
+						</Icon>
+					</IconStyle>
+				</Style>
+				<Style id="orangeArrowIcon">
+					<IconStyle>
+						<Icon>
+							<href>%PLACEMARK_ORANGE%</href>
+						</Icon>
+					</IconStyle>
+				</Style>
+				<Style id="redArrowIcon">
+					<IconStyle>
+						<Icon>
+							<href>%PLACEMARK_RED%</href>
+						</Icon>
+					</IconStyle>
+				</Style>
+				<Folder>
+					<name>Nodes</name>
+					<description>Nodes from the Wireless Leiden network</description>
+					<LookAt>
+						<longitude>52.161087</longitude>
+						<latitude>4.490153</latitude>
+						<altitude>0</altitude>
+						<heading>0</heading>
+						<tilt>0</tilt>
+						<range>500</range>
+					</LookAt>
+					%CONTENT%
+				</Folder>
+			</Document>
 		</kml>';
+
 	private $fileFirst = 'type,host_name,has_been_checked,check_execution_time,current_state,last_hard_state,last_check,problem_has_been_acknowledged';
 	private $fileContent = array('string', 'string', 'integer', 'double', 'integer', 'integer', 'integer', 'integer');
@@ -38,4 +81,7 @@
 		}
 
+		$toString = str_replace('%PLACEMARK_GREEN%', PLACEMARK_GREEN, $toString);
+		$toString = str_replace('%PLACEMARK_ORANGE%', PLACEMARK_ORANGE, $toString);
+		$toString = str_replace('%PLACEMARK_RED%', PLACEMARK_RED, $toString);
 		$toString = str_replace('%CONTENT%', $placemarkString, $toString);
 
Index: trunk/src/inc/KMLPlacemark.class.php
===================================================================
--- trunk/src/inc/KMLPlacemark.class.php	(revision 7631)
+++ trunk/src/inc/KMLPlacemark.class.php	(revision 7632)
@@ -8,16 +8,28 @@
 class KMLPlacemark {
 	private $template = '
-		<placemark>
+		<Placemark>
 			<name>%NAME%</name>
+			<visibility>0</visibility>
 			<description>%DESCRIPTION%</description>
-			<point>
-				<coordinates>%XCOORDINATE%,%YCOORDINATE%,0</coordinates>
-			</point>
-		</placemark>';
+			<LookAt>
+				<longitude>%LONGITUDE%</longitude>
+				<latitude>%LATITUDE%</latitude>
+				<altitude>0</altitude>
+				<heading>0</heading>
+				<tilt>0</tilt>
+				<range>500</range>
+			</LookAt>
+			<styleUrl>%STYLE%</styleUrl>
+			<Point>
+				<altitudeMode>relativeToGround</altitudeMode>
+				<coordinates>%LONGITUDE%,%LATITUDE%</coordinates>
+			</Point>
+		</Placemark>';
 
 	private $name;
 	private $description;
-	private $xCoordinate;
-	private $yCoordinate;
+	private $longitude;
+	private $latitude;
+	private $style;
 
 	/*
@@ -37,10 +49,14 @@
 	}
 
-	function setXCoordinate($newXCoordinate) {
-		$this->xCoordinate = (double) $newXCoordinate;
+	function setLONGITUDE($newLONGITUDE) {
+		$this->longitude = (double) $newLONGITUDE;
 	}
 
-	function setYCoordinate($newYCoordinate) {
-		$this->yCoordinate = (double) $newYCoordinate;
+	function setLATITUDE($newLATITUDE) {
+		$this->latitude = (double) $newLATITUDE;
+	}
+
+	function setStyle($newStyle) {
+		$this->style = (string) $newStyle;
 	}
 
@@ -50,7 +66,8 @@
 		$toString = str_replace('%NAME%', $this->name, $toString);
 		$toString = str_replace('%DESCRIPTION%', $this->description, $toString);
-		$toString = str_replace('%XCOORDINATE%', $this->xCoordinate, $toString);
-		$toString = str_replace('%YCOORDINATE%', $this->yCoordinate, $toString);
-
+		$toString = str_replace('%LONGITUDE%', $this->longitude, $toString);
+		$toString = str_replace('%LATITUDE%', $this->latitude, $toString);
+		$toString = str_replace('%STYLE%', $this->style, $toString);
+		
 		return $toString;
 	}
