preload tiles for fluent panning
hello, I am still trying to build a customized zoomify viewer. the problem that I have been running into is that you always see black artefacts when panning. apparently the tiles are not cached and it takes quite a while until they are loaded.
In the moment I just implemented a rudimentary panLeft / panRight when the mouse is moved to the side of the stage, and the panning is not as fluent as in the original zoomifyviewer......
I wonder if there is a way to cache and align the neighbouring tiles in advance, even if they are not visible yet.
here is my actual version:
http://mugdiman.com/zoomifytest/zoomi...
here is the original zoomify viewer version:
http://mugdiman.com/zoomifytest/zoomi...
maybe you wonder why I am not using the original zoomify viewer, the problem is it is not open source and I am planning to do a lot of customized stuff lateron, once I have a working codebase, it will be much easier.
So I think it is one of the key things to get the panning fluent. Anyone has a tip?
I used the most up to date as3 tweenmap code from the svn.
I will activate the sourceview later.
Cheers dennis
In the moment I just implemented a rudimentary panLeft / panRight when the mouse is moved to the side of the stage, and the panning is not as fluent as in the original zoomifyviewer......
I wonder if there is a way to cache and align the neighbouring tiles in advance, even if they are not visible yet.
here is my actual version:
http://mugdiman.com/zoomifytest/zoomi...
here is the original zoomify viewer version:
http://mugdiman.com/zoomifytest/zoomi...
maybe you wonder why I am not using the original zoomify viewer, the problem is it is not open source and I am planning to do a lot of customized stuff lateron, once I have a working codebase, it will be much easier.
So I think it is one of the key things to get the panning fluent. Anyone has a tip?
I used the most up to date as3 tweenmap code from the svn.
I will activate the sourceview later.
Cheers dennis
1
person has 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.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?apparently there is already some kind of management for preloading tiles implemented in processQueue in TileGrid.as. I dont understand why it always looks like it is loaded completly new, even in my local development sandbox.
-
Inappropriate?yipee, the fast solution was to set the variable tileBuffer from 0 to 2 so more tiles are buffered which works ok as long as the map / image is not super huge.
-
Inappropriate?Yep, tile buffer is the thing to check. There is also 'pyramid loading' which loads lower zoom level tiles first so that there's something to display sooner. You might want to tweak the max parent search depth (to specify how many zoom levels out to go).
You might want to try enabling smoothing on the images, if the server you're loading them from grants crossdomain.xml permissions to your swf, or if the swf is on the same server. This can be done by grabbing the bitmap that comes back onLoadEnd in TileGrid.as.
Loading Profile...



EMPLOYEE