Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? Yeah
Please give a brief summary of your issue:
Hi,
For Measure tools, there is an option to enable Snapping via the style panel and a checkbox. Can I programmatically enable this for all measure tools on webviewer init?
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
It sounds like you want to enable snapping for measurement tools programmatically when initializing WebViewer. This can be done by accessing the measurement tool properties through the WebViewer API and setting the snapping option.
Some things you can try:
Access the measurement tool using the instance.Tool namespace after WebViewer has been initialized.
Use the setSnappingEnabled method to enable snapping for specific measurement tools.
Apply this setting in the WebViewer initialization callback to ensure it is set when the viewer loads.