SWVL viewerMeasureMixin(viewer, options)

A mixin which adds the Measure widget to the Viewer widget. Rather than being called directly, this function is normally passed as a parameter to Viewer#extend, as shown in the example below.
Name Type Description
viewer Viewer The viewer instance.
options Object optional An object with the following properties:
Name Type Default Description
container String | Element The container for the widget
scene Scene The scene
units MeasureUnits MeasureUnits.METERS optional The default unit of measurement
locale String optional The BCP 47 language tag string customizing language-sensitive number formatting. If undefined, the runtime's default locale is used. See the Intl page on MDN
var viewer = new Cesium.Viewer('cesiumContainer');