This is documentation of an archived release.
For documentation on the current version, please check Knowledge Base.

Measure

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 :

  • The measure set keeps length and area of the most current state (updated whenever the mouse moves).
    → The related addMeasureChangedListener() function adds a change listener for this event.
    → Length and area can be retrieved using the getMeasureLength() and getMeasureArea() functions.
  • The measurements set keeps length and area of all fixed measurements (updated on click).
    → The related addMeasurementsChangedListener() function adds a change listener for this event.
    → Length and area can be retrieved using the 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.

 
Last modified:: 2019/03/25 11:36