Allows for drawing of features for measurements.
| OpenLayers. | Allows for drawing of features for measurements. |
| Properties | |
| handlerOptions | {Object} Used to set non-default properties on the control’s handler |
| persist | {Boolean} Keep the temporary measurement sketch drawn after the measurement is complete. |
| immediate | {Boolean} Activates the immediate measurement so that the “measurepartial” event is also fired once the measurement sketch is modified. |
| Constructor | |
| OpenLayers. | |
| Functions | |
| deactivate | |
| cancel | Stop the control from measuring. |
| setImmediate | Sets the immediate property. |
{Boolean} Keep the temporary measurement sketch drawn after the measurement is complete. The geometry will persist until a new measurement is started, the control is deactivated, or cancel is called.
| handler | {OpenLayers.Handler} |
| options | {Object} |
cancel: function()
Stop the control from measuring. If persist is true, the temporary sketch will be erased.
setImmediate: function( immediate )
Sets the immediate property. Changes the activity of immediate measurement.
deactivate: function()
Stop the control from measuring.
cancel: function()
Sets the immediate property.
setImmediate: function( immediate )