Zoom to elements #2751
Replies: 2 comments 2 replies
-
Please define "doesn't work". |
Beta Was this translation helpful? Give feedback.
-
I tried the following code (iTwinjs version: 2.19.0).
Whether I use or don't use marginPerecent property, the zoom result is same in both cases in my app. I used marginPercent to leave 50% view blank around the edges. So this is not happening. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the zoomToElements API and setting the marginPercent in ViewChangeOptions parameter. The zoom operation should not get too close to the element in the viewer, that's why I am using the marginPercent. But it doesn't seem to work?
Are there other options to avoid zooming too close to an element in the viewer?
Beta Was this translation helpful? Give feedback.
All reactions