changeset 196:ec2f2d5e3e21

Open new Layer with default red points
author fknauft
date Wed, 16 Feb 2011 16:39:14 +0100
parents f1b76cc939f4
children a1fb4c3ac037
files gis_gui/blocks/layer.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js	Wed Feb 16 16:23:51 2011 +0100
+++ b/gis_gui/blocks/layer.js	Wed Feb 16 16:39:14 2011 +0100
@@ -2,7 +2,7 @@
 guiBlocks.prototype.addLayerBlock = function(url, baseId, params) {
     if (typeof(params) == "string") {
         // then its the table name
-        params = {"type": "layer", "table": params};
+        params = {"type": "layer", "table": params, "color_field":"red","geometry_field":"point"};
     }
     var block = this.addBlock(url, baseId, params, function() {
         // function after add block finished