-
-
Notifications
You must be signed in to change notification settings - Fork 590
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 Mismatch in overlay #542
Comments
I'm not sure I understand your scenario. Do you have a link to share or some code to show? |
|
You need to convert your position and size from screen pixels to viewport points. Give this a try:
|
Thank you zoom is working but i got another issue Using jqueryUI and any other javascript plugin can we drag and resize the overlay for the same code which i send ,because when i try with jqueryui draggable to drag the overlay simultaneously the image is also panning. Whether there is any method to freeze the openseadragon image. like panImage |
@venkatav5a8 Something like this: $('#dragable-element').on('pointerdown mousedown touchstart', function(e) {
e.stopPropagation();
}); |
openseadragon add overlay working in normal mode without zooming
i can pan image right left top bottom and draw rectangle ,it is adding overlay correctly.
but issue is when you zoom image/ openseadragon that time overlay not positioning correctly.
i am trying var bounds = viewer.viewport.getBounds();
to get the zoomed image location and size but still not working can anyone help me please to find out how to use that one to calculate position and size.
The text was updated successfully, but these errors were encountered: