changeset 159:3dc6be23494c

map layers with custom colors
author fknauft
date Mon, 07 Feb 2011 15:36:10 +0100
parents 1897ef5479f4
children 6938425e4599
files gis_gui/blocks/layer.js gis_gui/blocks/map.js
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js	Mon Feb 07 14:04:39 2011 +0100
+++ b/gis_gui/blocks/layer.js	Mon Feb 07 15:36:10 2011 +0100
@@ -121,7 +121,7 @@
         paramstr += "&connect_line="+params.connect_line;
     }
     var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr;
-    //alert(layerurl);
+    alert(layerurl);
     jQuery.get(layerurl, function(data, textStatus, XMLHttpRequest) {
         // function after load kml url finished
         console.debug("kml url loaded! this=", this, " data=", data, " ("+typeof(data)+")");
--- a/gis_gui/blocks/map.js	Mon Feb 07 14:04:39 2011 +0100
+++ b/gis_gui/blocks/map.js	Mon Feb 07 15:36:10 2011 +0100
@@ -159,6 +159,12 @@
         if (params.position_field && params.position_field != "Default") {
             paramstr += "&gis_id_field="+params.position_field;
         }
+        if (params.color_field != "Default") {
+            paramstr += "&color_field="+params.color_field;
+        }
+        if (params.geometry_field != "Default") {
+            paramstr += "&geometry_field="+params.geometry_field;
+        }
         if (params.connect_line) {
             paramstr += "&connect_line="+params.connect_line;
         }