Index: nodes/nodemap.html
===================================================================
--- nodes/nodemap.html	(revision 8280)
+++ nodes/nodemap.html	(revision 8282)
@@ -9,5 +9,7 @@
       }
     </style>
-    <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
+    <!-- <script src="http://www.openlayers.org/api/OpenLayers.js"></script> -->
+    <script src="http://openlayers.org/dev/OpenLayers.js"</script>
+
     <script>
       function init() {
@@ -16,47 +18,61 @@
         map.addLayer(mapnik);
 
-        var pois = new OpenLayers.Layer.Text( "My Points",
-                           { location:"./textfile.txt",
-                             projection: map.displayProjection
-                           });
-        map.addLayer(pois);
+        //layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
+        //        "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
+        //map.addLayer(layer);
+        //var pois = new OpenLayers.Layer.Text( "My Points",
+        //                   { location:"./textfile.txt",
+        //                     projection: map.displayProjection
+        //                   });
+        //map.addLayer(pois);
 
-        var vectors = new OpenLayers.Layer.Vector("Vector Layer")
-        map.addLayer(vectors);
-        map.addControl(new OpenLayers.Control.MousePosition());
-        map.addControl(new OpenLayers.Control.EditingToolbar(vectors));
+        var kml = new OpenLayers.Layer.GML("KML", "./kmlfile.kml",
+            { format: OpenLayers.Format.KML,
+              formatOptions: {
+                extractStyles: true, 
+                extractAttributes: true,
+                maxDepth: 2
+              }
+            });
+        map.addLayer(kml);
 
-        var in_options = {
-          'internalProjection': map.baseLayer.projection,
-          'externalProjection': new OpenLayers.Projection("EPSG:4326")
-        };
-        var wkt = new OpenLayers.Format.WKT(in_options);
-        var txtFile = new XMLHttpRequest();
-        txtFile.open("GET", "./wktfile.txt", false);
-        // txtFile.onreadystatechange = function() {
-        //   if(txtFile.readyState == 4) {
-        //     alert(txtFile.responseText);
-        //   }
-        // }
-        txtFile.send(null);
 
-        var features = wkt.read(txtFile.responseText.replace(/\n/g,''));
-        var bounds;
-        
-        if (features) {
-          if(features.constructor != Array) {
-           features = [features];
-          }
-          for(var i=0; i<features.length; ++i) {
-            if (!bounds) {
-              bounds = features[i].geometry.getBounds();
-            }
-            bounds.extend(features[i].geometry.getBounds());
-          }
-          vectors.addFeatures(features);
-          map.zoomToExtent(bounds);
-       } else {
-        alert("ERROR in WTK");
-       }
+        //var vectors = new OpenLayers.Layer.Vector("Vector Layer")
+        //map.addLayer(vectors);
+        //map.addControl(new OpenLayers.Control.MousePosition());
+        //map.addControl(new OpenLayers.Control.EditingToolbar(vectors));
+
+        //var in_options = {
+        //  'internalProjection': map.baseLayer.projection,
+        //  'externalProjection': new OpenLayers.Projection("EPSG:4326")
+        //};
+        //var wkt = new OpenLayers.Format.WKT(in_options);
+        //var txtFile = new XMLHttpRequest();
+        //txtFile.open("GET", "./wktfile.txt", false);
+        //// txtFile.onreadystatechange = function() {
+        ////   if(txtFile.readyState == 4) {
+        ////     alert(txtFile.responseText);
+        ////   }
+        //// }
+        //txtFile.send(null);
+
+        //var features = wkt.read(txtFile.responseText.replace(/\n/g,''));
+        //var bounds;
+        //
+        //if (features) {
+        //  if(features.constructor != Array) {
+        //   features = [features];
+        //  }
+        //  for(var i=0; i<features.length; ++i) {
+        //    if (!bounds) {
+        //      bounds = features[i].geometry.getBounds();
+        //    }
+        //    bounds.extend(features[i].geometry.getBounds());
+        //  }
+        //  vectors.addFeatures(features);
+        //  map.zoomToExtent(bounds);
+        //} else {
+        //   alert("ERROR in WTK");
+        //}
 
          map.setCenter(new OpenLayers.LonLat(4.40,52.186) // Center of the map
