Deactivate OpenLayers Control

المشرف العام

Administrator
طاقم الإدارة
I have a control that draw line. What I want is that once the line is drawn the control should be deactivated.

new GeoExt.Action(Ext.apply({ text: 'Draw Line', control: new OpenLayers.Control.DrawFeature( this.layer,OpenLayers.Handler.Path, { eventListeners: { featureadded: this.myFunction, scope: this } })}, actionDefaults))myFunction: function(evt) {//Deactivate Control Here }

أكثر...
 
أعلى