interface MeasureOptions {
    displaySystem: MeasureDisplaySystem;
    geodesic: boolean;
    handlerOptions: {};
    immediate: boolean;
    persist: boolean;
}

Properties

displaySystem: MeasureDisplaySystem

APIProperty: displaySystem {String} Display system for output measurements. Supported values are 'english', 'metric', and 'geographic'. Default is 'metric'.

geodesic: boolean

APIProperty: geodesic {Boolean} Calculate geodesic metrics instead of planar metrics. This requires that geometries can be transformed into Geographic/WGS84 (if that is not already the map projection). Default is false.

handlerOptions: {}

APIProperty: handlerOptions {Object} Used to set non-default properties on the control's handler

immediate: boolean

APIProperty: immediate {Boolean} Activates the immediate measurement so that the "measurepartial" event is also fired once the measurement sketch is modified. Default is false.

persist: boolean

APIProperty: persist {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 is called.