Setting up measurements in WebViewer

When creating a new instance of WebViewer, the enableMeasurement property needs to be set to true to display the measurement annotation tools in the UI

JavaScript

1WebViewer({
2 ... // other options
3 enableMeasurement: true
4}, viewerElement);

Besides passing in a constructor option, measurement can be toggled using the WebViewer API with the enableFeatures and disableFeatures functions.

1WebViewer({
2 ... // other options
3}, viewerElement)
4 .then(instance => {
5 instance.UI.enableFeatures([instance.Feature.Measurement]);
6 });

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales