[OpenLayers-Dev] generate event on Control.DrawFeature

morelli.gab at virgilio.it morelli.gab at virgilio.it
Wed Jul 9 02:32:36 EDT 2008


I have a Problem.
How can associate a event of mouse at Control.
DrawFeature?

drawControls = {
      point: new OpenLayers.Control.
DrawFeature(vectors,
                   OpenLayers.Handler.Point),
       line: new OpenLayers.Control.DrawFeature(vectors,
                  OpenLayers.Handler.Path),
        polygon: new 
OpenLayers.Control.DrawFeature(vectors,
                  OpenLayers.
Handler.Polygon),
       drag: new OpenLayers.Control.DragFeature
(vectors),
};

when i click on the mouse for generate a point i wont 
that event
"mouseon"  genrate an action

thank you



More information about the Dev mailing list