changeset 200:990ca3264040

Open new Layer with default red points
author fknauft
date Wed, 16 Feb 2011 16:58:23 +0100
parents 6c30ac875d92
children 5888047cef31
files gis_gui/blocks/layer.js
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js	Wed Feb 16 16:55:01 2011 +0100
+++ b/gis_gui/blocks/layer.js	Wed Feb 16 16:58:23 2011 +0100
@@ -38,13 +38,11 @@
                 });
                 
         $(be).find(".layer_geom_select").attr("element","<select id='geom'><option selected>point</option><option>poly</option><option>line</option></select>");
-        if (!params.geometry_field) {
-            params.geometry_field = "point";
-        }
+        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) {
-            params.color_field = "red";
-        }
+        params.color_field = "red";
+        
         $(be).find(".layer_shape_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *",
                 function() {
                     $(this).find("option:first").before('<option>Default</option>');