changeset 199:6c30ac875d92

Open new Layer with default red points
author fknauft
date Wed, 16 Feb 2011 16:55:01 +0100
parents 1b3c75891824
children 990ca3264040
files gis_gui/blocks/layer.js
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js	Wed Feb 16 16:47:59 2011 +0100
+++ b/gis_gui/blocks/layer.js	Wed Feb 16 16:55:01 2011 +0100
@@ -38,8 +38,8 @@
                 });
                 
         $(be).find(".layer_geom_select").attr("element","<select id='geom'><option selected>point</option><option>poly</option><option>line</option></select>");
-        if (!params.geometrie_field) {
-            params.geometrie_field = "point";
+        if (!params.geometry_field) {
+            params.geometry_field = "point";
         }
         $(be).find(".layer_color_select").attr("element","<select id='color'><option selected>red</option><option>blue</option><option>black</option><option>green</option><option>violett</option></select>");
         if (!params.color_field) {
@@ -61,7 +61,6 @@
         //params = block.readLayerParams();
         
         // load map
-        params = block.readLayerParams(); //FJK
         block.updateLayer(be,params);
         
         // update button