[Cartoweb-dev] Outline.Ajax.js patch for circle clear

Bruno Friedmann bruno at ioda-net.ch
Wed Mar 26 05:17:17 EDT 2008


### Eclipse Workspace Patch 1.0
#P cartoweb3
Index: plugins/outline/htdocs/js/Outline.ajax.js
===================================================================
RCS file: /var/lib/cvs/public/cartoweb3/plugins/outline/htdocs/js/Outline.ajax.js,v
retrieving revision 1.3
diff -u -r1.3 Outline.ajax.js
--- plugins/outline/htdocs/js/Outline.ajax.js	5 Nov 2007 10:08:44 -0000	1.3
+++ plugins/outline/htdocs/js/Outline.ajax.js	26 Mar 2008 09:10:31 -0000
@@ -33,6 +33,7 @@
         mainmap.getDisplay('map').clearLayer('outline_line');
         mainmap.getDisplay('map').clearLayer('outline_rectangle');
         mainmap.getDisplay('map').clearLayer('outline_point');
+        mainmap.getDisplay('map').clearLayer('outline_circle');
     }
 };


With this line you could clear a circle draw on the map.

I think you could add in docu the fact that people need to change the
   /* HTML element's id definitions */
    outlineFolderId: 'folder6',

oultineFolderId to correspond to what they have in their cartoclient.tpl
First time we use it, our outline (folder3) doesn't update, but the pdf folder which was folder6

Perharps there's a way to get the folderId parameter in the client_conf outline.ini.in.


-- 

     Bruno Friedmann  bruno at ioda-net.ch




More information about the Cartoweb-dev mailing list