# HG changeset patch
# User fknauft
# Date 1296731674 -3600
# Node ID c0551ecb05095257c16e730ad1e452f71697f38c
# Parent c570e374935eabf28499b3c2acbd2628316c8c65
polygon-Layers
diff -r c570e374935e -r c0551ecb0509 gis_gui/blocks/layer.html.pt
--- a/gis_gui/blocks/layer.html.pt Thu Feb 03 11:46:43 2011 +0100
+++ b/gis_gui/blocks/layer.html.pt Thu Feb 03 12:14:34 2011 +0100
@@ -39,7 +39,7 @@
Position | |
Label | |
Size | |
- Color | |
+ Color | |
Geometry | |
Shape | |
connect markers with a line |
diff -r c570e374935e -r c0551ecb0509 gis_gui/blocks/layer.js
--- a/gis_gui/blocks/layer.js Thu Feb 03 11:46:43 2011 +0100
+++ b/gis_gui/blocks/layer.js Thu Feb 03 12:14:34 2011 +0100
@@ -36,37 +36,11 @@
}
$(this).find("option").filter(function(){return $(this).text() == params.size_field;}).attr("selected","true");
});
-
- aaaatest.load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *",
- function() {
- $(this).find("option:first").before('');
- if (!params.size_field) {
- params.size_field = "Default";
- }
- $(this).find("option").filter(function(){return $(this).text() == params.size_field;}).attr("selected","true");
- });
-
-
-
-
- $(be).find(".layer_geom_select").load(['point','poly','line'],
- function() {
- $(this).find("option:first").before('');
- if (!params.geom_field) {
- params.geom_field = "Default";
- }
- $(this).find("option").filter(function(){return $(this).text() == params.geom_field;}).attr("selected","true");
- });
+
+ $(be).find(".layer_geom_select").attr("element","");
- $(be).find(".layer_color_select").load(['red','blue','black','green','violett'],
- function() {
- $(this).find("option:first").before('');
- if (!params.color_field) {
- params.color_field = "Default";
- }
- $(this).find("option").filter(function(){return $(this).text() == params.color_field;}).attr("selected","true");
- });
-
+ $(be).find(".layer_color_select").attr("element","");
+
$(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('');
@@ -147,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)+")");