I think that your code is correct. I imagine you just had to uncomment some piece of code.

First, were did you make the modification ? Directly in the mainstream edit plugin ? In an overriden edit plugin in your project ?
Did you try to launch the setup script ?
Finally, did you try to clear browser cache ?

Regards

Pierre

Fabio D'Ovidio wrote:

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???


_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to