changeset 234:6e6e78adb447

show line and polygon-layer
author fknauft
date Mon, 05 Sep 2011 11:35:01 +0200
parents bdab16f83512
children ed0cb46fb936
files gis_gui/blocks/map.js
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/map.js	Mon Aug 01 21:35:27 2011 +0200
+++ b/gis_gui/blocks/map.js	Mon Sep 05 11:35:01 2011 +0200
@@ -184,7 +184,9 @@
         var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr;
         jQuery.get(layerurl, function (data, textStatus, XMLHttpRequest) {
             // function after load kml url finished
-            console.debug("kml url loaded! this=", this, " data=", data, " ("+typeof(data)+")");
+            console.debug("kml url loaded! this=", this );
+            console.debug("                data=", data );
+            console debug("                data type="+typeof(data));
             if (typeof(data) == "string") {
                 var kmlURL = data;
             } else {
@@ -194,8 +196,10 @@
             // render layer
             if (google != null) {
                 var newMarker=new google.maps.KmlLayer(kmlURL);
-                console.debug("new marker layer=",newMarker," map=",map);
+                console.debug("new marker layer=",newMarker);
+                console.debug("           map=",map);
                 newMarker.setMap(map);
+                console.debug("Map-Update finished");
             }
         });
     }