Hi you are the first person to report this bug. The error occure because the last selected tool is trying to get activated but since the edit plugin related javascript files are not loaded (and the tool not in the toolbar anymore), en error is thrown.
try to modify it like that the file dhtmlInit.js : Index: htdocs/js/dhtmlInit.js =================================================================== RCS file: /var/lib/cvs/projects/cw3/cartoweb3/htdocs/js/dhtmlInit.js,v retrieving revision 1.32 diff -u -r1.32 dhtmlInit.js --- htdocs/js/dhtmlInit.js 18 Jun 2008 10:13:45 -0000 1.32 +++ htdocs/js/dhtmlInit.js 24 Jun 2008 12:46:02 -0000 @@ -76,10 +76,15 @@ // initial selected tool if (typeof cw3_initial_selected_tool != "undefined") { - // prevent interface failure if last selected tool was pdfrotate, set it to default zoomin - // FIXME replace this hack by a check in ClientExportPdf.php, maybe in Initialize() or so - cw3_initial_selected_tool = cw3_initial_selected_tool.replace(/pdfrotate/g, "zoomin"); - eval (cw3_initial_selected_tool); + // prevent interface failure if last selected tool is not available anymore, set tool to zoomin + try { + eval (cw3_initial_selected_tool); + } catch (e) { + mainmap.zoomin('map'); + if (toolbar_rendering != 'radio' ) { + setActiveToolButton('zoomin'); + } + } } xHide(xGetElementById('loadbarDiv')); regards Oliver ----- Original Message ----- From: Giovanni Virdis To: cartoweb-users@lists.maptools.org Sent: Tuesday, June 24, 2008 2:14 PM Subject: [Cartoweb-users] Problem with edit toolbar Hi , If I use the select tool and after select a feature I logout from application when return to the map return this error mainmap.edit_sel('map');setActiveToolButton('edit_sel'); maybe because when I logout the edit tollbar comes disabled and the button edit_sel is not active. This problem there is also in the Edit demo i have tried directly from http://www.cartoweb.org/demo.html ------------------------------------------------------------------------------ _______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users
_______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users