Dear List,
I am having trouble trying to capture events when the ModifyFeature control
is activated and deactivated.
I define my control as such:
modify = new
OpenLayers.Control.ModifyFeature(lyrPlanning,{'displayClass':
'olControlModifyFeature',
'mode': OpenLayers.Control.ModifyFeature.RESHAPE |
OpenLayers.Control.ModifyFeature.DRAG |
OpenLayers.Control.ModifyFeature.ROTATE});
I try to register the event like this:
modify.events.register('deactivate',modify,modify_deactivated);
this last line causes a syntax error!
I had already defined
function modify_deactivated() {alert('!');}"
I have that feeling that I am doing something so silly I will never get it.
Appreciate any help
George Mu'ammar
--
View this message in context:
http://n2.nabble.com/Control-activate-and-deactivate-events-tp2983592p2983592.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users