How Do I Know When All Tiles Have Loaded?
Hey Daniel,
Is there a way to tell, when the window has finished rendering after a transform? I have looked through the code, and wasn't successful in finding an event that indicates this. Is there another way to do this?
Great work with the OpenZoom framework!
Is there a way to tell, when the window has finished rendering after a transform? I have looked through the code, and wasn't successful in finding an event that indicates this. Is there another way to do this?
Great work with the OpenZoom framework!
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
The best answer from the company
-
Jonas,
Thanks for your explanation. Now I understand what you're trying to achieve but it's hard for me to visualize how your problem manifests. Would it be possible for you to publish a sample for me to view and the corresponding code that demonstrates the problem? I will walk through it and try to find a solution.
Thanks,
Daniel
The company says
this answers the question
-
Inappropriate?Jonas,
There is an event that indicates that the viewport animation has stopped and it's called ViewportEvent.TRANSFORM_END:
http://docs.openzoom.org/framework/or...
But you're right, there is no event that is dispatched after all the tiles have loaded and were rendered.
What exactly would you like to do? Maybe I can help.
Cheers,
Daniel
-
Inappropriate?Let me see if I can explain my plan:
I have to define some clickable areas on the zoomable image in the form of images. I am adding theese clickable areas to the scaleable image, so they scale accordingly. The clickable areas are only visible at certain zoom levels, meaning they will appear after the transform is done, but before the rendering is done. The problem here is, that my clickable areas must fit seamlessly into the scaleable context, but my clickable area seems out of context until the image has rendered.
FYI: I have disabled the mouseCatcher in MultiScaleContainer so that my clickable areas will receive mouse events.
Hope this makes sense. -
Inappropriate?Jonas,
Thanks for your explanation. Now I understand what you're trying to achieve but it's hard for me to visualize how your problem manifests. Would it be possible for you to publish a sample for me to view and the corresponding code that demonstrates the problem? I will walk through it and try to find a solution.
Thanks,
Daniel
The company says
this answers the question
-
Inappropriate?Considering my time schedule I think I will go for a less ambitious - but still usable solution.
I think what I forgot to explain in my previous post was, that my clickable areas was meant to seem like it being a part of the scaleable image and e.g. move/rotate on mouse click. Don't know if that made things any clearer :)
Anyway. I have been making a couple of modifications to the initial idea, that I will try to implement.
Thank you for your help so far Daniel. I will send you a link to the application when I am finished.
I’m happy
-
Inappropriate?Alright. I am looking forward to seeing your app!
Cheers,
Daniel
P.S. Once I finalize the loading infrastructure, I will try to expose events that mark the end of tile loading over the network.
I’m thankful
-
Inappropriate?Hello, I'm also interested in detecting when all the tiles of a MultiScaleImage have loaded.
What happens to me is that on the COMPLETE event for the image I'm trying to initialize it, setting an starting zoom level, quite small, and this is failing sometimes, and I suspect it is because the image tiles are not completely loaded yet.... could this be the case? is there any other event I could listen for?
I’m glad I found openZoom!
-
Inappropriate?You can try to listen to MultiScaleImage.loader for a NetworkRequestEvent.COMPLETE.
Other than that, could be please be more specific when you say «[it's] failing sometimes»?
–Daniel
I’m happy
-
Inappropriate?Hi, this is what happens to me:
in a listener for NetworkRequestEvent.COMPLETE I set the MultiScaleImage's zoom to a very small number (and with no animation), because I want to create the effect that the image is at first too far to be seen and then I animate it into view (setting the zoom to a bigger number with animation)
I do this with about 5 multiscale images loaded secuentially, and I add the images to the stage one at a time.
After all of them loaded and the zoom for all of them is set to this small number, the first time I run my app, some of the images appear in a zoom of around 1 for a brief moment, and then change to the small zoom that I set, creating a 'flicker' of sorts, and breaking the effect I'm after.
This only happens the first time I add the image to the stage, and only with one of the larger images... so I thougt that it might be related to the loading of the image not being finished yet even when the COMPLETE event fires...
I hope you can make out something of all this :)
I decided to leave my app as it is now, this is just a minor bug that I can live with for the moment :)
I’m thankful
-
Inappropriate?Thanks for describing your problem. If you provide me with a link to your project and possibly the source code, I could take a look at it.
Cheers,
Daniel
Loading Profile...




EMPLOYEE
