-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom to specific id is not working #403
Comments
Can you show your code - or at least the salient zoom code? Are you using: viewer.zoomto() |
As I wrote, I was able to reproduce it in wexbim-files-viewer. |
I have changed it to viewer.zoomTo(arg.id); - so picking should cause focusing on picked element but the camera seems to be set to something else, whatever element I pick |
It's likely because xyz is the inferred click position in 3D space, but it's not always available on 'pick' events - especially when clicking on small elements.
Generally I'd recommend providing the model id as well as the product id is not guaranteed unique across models. |
@andyward The zoom is definitely triggered because some action is executed (the view changed). I have added a console.log: |
OK - reproduced this. It's not just this element. Other items are off as well: |
I'll have a look at this. |
Thank you @andyward . What is the "WCS" issue? (I'm asking out of curiosity) |
Hi, we were trying to identify the issue. |
However, I still have a feeling it should be in a center after zooming but it is not. |
I too had a similar issue. check the pull request below. |
Hi,
I have a simple wexbim model where zooming is not working properly, while e.g. highlighting works perfect. I cannot identify if:
In Xbim Xplorer app zooming works fine.
I downloaded XbimWebUI repo and uploaded my model using wexbim-files-viewer. Zooming is not working for my element too.
I'm attaching my model to this issue (zipped). The problematic id is : 4229 (small window)
IFC_edit_System.zip
The text was updated successfully, but these errors were encountered: