changeset 197:a1fb4c3ac037

Open new Layer with default red points
author fknauft
date Wed, 16 Feb 2011 16:46:30 +0100
parents ec2f2d5e3e21
children 1b3c75891824
files gis_gui/blocks/layer.js
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js	Wed Feb 16 16:39:14 2011 +0100
+++ b/gis_gui/blocks/layer.js	Wed Feb 16 16:46:30 2011 +0100
@@ -38,8 +38,12 @@
                 });
                 
         $(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";
 
         $(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";
          
         $(be).find(".layer_shape_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *",
                 function() {