[Cartoweb-users] edit_sel in dhtmlEdit.js

Yves Jacolin yjacolin at free.fr
Thu Jun 8 13:10:41 EDT 2006


I think this code is not a button but just a function to select a region. If 
you don't call it in the interface, it won't do anything !
I am not an expert in javascript so I may tell you something wrong !
Someone to confirm ?

Y.
Le Jeudi 8 Juin 2006 18:57, Fabio D'Ovidio a écrit :
> I have enabled this button in order to select only a point and not a
> rectangle :
>
>
> Map.prototype.edit_sel = function(aDisplay) {
>   this.resetMapEventHandlers();
>   this.getDisplay(aDisplay).setTool('sel.point');
>   this.onSelPoint = function(x, y) {
>     myform.selection_coords.value = x + "," + y;
>     myform.selection_type.value = "point";
>     storeFeatures();
>     doSubmit();
>   }
> };
>
> in dhtmledit.js file.
>
>
> Why don't my changes have effects in my project???
>
> Thank you !
> ***************************************************************************
>*****************
>
>
>  Ing. Fabio D'Ovidio
>  WebGIS Staff
>  Planetek Italia Srl
>  via Massaua, 12 - 70123 Bari - Italy
>  web : http ://www.planetek.it
>  e-mail : dovidio at planetek.it
>
> ***************************************************************************
>*****************

-- 
Yves Jacolin
-------------
http://yjacolin.gloobe.org
http://softlibre.gloobe.org



More information about the Cartoweb-users mailing list