Hi list,
I want to add an event registration to OpenLayers.Control.DrawFeature. I want
to respond to the click event. I've done something like:
var oDrawCirCtrl = new OpenLayers.Control.DrawFeature(
this.mapContainer.getLayersByName(olName)[0],
OpenLayers.Handler.RegularPolygon,
{ id:"oDrawCirCtrl", title: olDesc, displayClass:
'olControlDrawFeatureCircle',handlerOptions: {sides: 40}}
);
oDrawCirCtrl.events.register("click",null,function(e){
var k ="";
});
oDrawCirCtrl.events.on({click: function(e){
var k ="";
}});
But the function isn't executed...
Any ideas?? Am I doing something wrong.
Un saludo,
··················································································
David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)
··················································································
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··················································································
email: [email protected] web: www.ikt.es
··················································································
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users