Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/layer.js @ 200:990ca3264040
Open new Layer with default red points
author | fknauft |
---|---|
date | Wed, 16 Feb 2011 16:58:23 +0100 |
parents | 6c30ac875d92 |
children | 5888047cef31 |
comparison
equal
deleted
inserted
replaced
199:6c30ac875d92 | 200:990ca3264040 |
---|---|
36 } | 36 } |
37 $(this).find("option").filter(function(){return $(this).text() == params.size_field;}).attr("selected","true"); | 37 $(this).find("option").filter(function(){return $(this).text() == params.size_field;}).attr("selected","true"); |
38 }); | 38 }); |
39 | 39 |
40 $(be).find(".layer_geom_select").attr("element","<select id='geom'><option selected>point</option><option>poly</option><option>line</option></select>"); | 40 $(be).find(".layer_geom_select").attr("element","<select id='geom'><option selected>point</option><option>poly</option><option>line</option></select>"); |
41 if (!params.geometry_field) { | 41 params.geometry_field = "point"; |
42 params.geometry_field = "point"; | 42 |
43 } | |
44 $(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>"); | 43 $(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>"); |
45 if (!params.color_field) { | 44 params.color_field = "red"; |
46 params.color_field = "red"; | 45 |
47 } | |
48 $(be).find(".layer_shape_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *", | 46 $(be).find(".layer_shape_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *", |
49 function() { | 47 function() { |
50 $(this).find("option:first").before('<option>Default</option>'); | 48 $(this).find("option:first").before('<option>Default</option>'); |
51 if (!params.shape_field) { | 49 if (!params.shape_field) { |
52 params.shape_field = "Default"; | 50 params.shape_field = "Default"; |