These functions allow you to control the measure component. The measure component keeps track of length and area of a user defined polyline. It keeps 2 sets of resulting length/area :
addMeasureChangedListener() function adds a change listener for this event. getMeasureLength() and getMeasureArea() functions.addMeasurementsChangedListener() function adds a change listener for this event.getMeasurementsLength() and getMeasurementsArea() functions.
Measurements can be cleared using the clearMeasurements() function.
You can also retrieve the total number of measurements and all individual measurements. When editing the measurement, last_coo contains the location of where the mousecursor currently is.
Be aware: These functions are only usefull if you enable the measure component itself! See UI configuration for more information.
Note: Use internal parameters to setting measure line color and width.