[ka-Map-users] Re: Code to indicate tiles have finished loading?

Daniel Morissette dmorissette at dmsolutions.ca
Fri Oct 7 09:44:56 EDT 2005


Also note that if the user's browser cache is not large enough, then the 
tiles may not all fit in the cache and any potential benefit would be 
lost. I don't see this as being generally useful in real life apps either.

Daniel


Paul Spencer wrote:
> not currently.  Note that for a given map and extents, this could be  a 
> large amount of data ... many MB for sure, probably GB in useful  apps I 
> would think.  But if you wanted to do this, you would probably  write a 
> custom function in your app that would monitor the tile loads  and keep 
> moving to new extents until all the tiles are fetched.  I  don't really 
> see this as a general feature that I would want in cvs  unless everyone 
> thinks its a good idea.
> 
> Cheers
> 
> Paul
> 
> On 6-Oct-05, at 5:06 PM, Ken Sanderson wrote:
> 
>> Sorta related to this question, is there a way to allow the user to  
>> force download all the tiles of the max extent at every scale  level? 
>> Thinking of some of our users that are on super slow dialup,  they 
>> would be willing to download while they east supper with the  
>> assumption it would be faster after that.
>>
>> Ken
>>
>> Paul Spencer wrote:
>>
>>> Peter,
>>> there could be :)  The way things are working right now (iirc) is   
>>> that each image on each layer has its src changed when something   
>>> happens like a pan or a zoom.  This *could* be tracked in kaMap  by  
>>> incrementing a variable that indicates the number of tiles  left to  
>>> load.  Each image has an onload event that is triggered  to make the  
>>> image visible (it is set to not visible when the src  is changed)  
>>> which could also decrement the tile count.
>>> We could add a new event to indicate the that load status has  
>>> changed  but this may involve some thrashing if the images load  
>>> quickly before  the loop to set the src has finished (I don't even  
>>> know if this is a  possible scenario).
>>> Another way would be to have your app set a timer to check the  load  
>>> status every 100ms or so and see if the load count has hit  zero ...
>>> If you come up with a good way in your app, share it with me and  
>>> I'll  put it in cvs as I think this is a generally useful function.
>>> Cheers
>>> Paul
>>> On 6-Oct-05, at 4:22 PM, Peter Giencke wrote:
>>>
>>>> Paul et al,
>>>>
>>>> Is there a lightweight way to determine when ka-map has finished   
>>>> loading all
>>>> layers for a particular view? I'm utilizing some WMS layers for one
>>>> particular ka-map instance, and would like to indicate (with an   
>>>> icon or
>>>> something) that the mapplication is actually doing something  while  
>>>> it's
>>>> fetching/creating the tiles.
>>>>
>>>> -pete
>>>>
>>>>
>>>>
>>> +-----------------------------------------------------------------+
>>> |Paul Spencer                           pspencer at dmsolutions.ca   |
>>> +-----------------------------------------------------------------+
>>> |Applications & Software Development                              |
>>> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>> +-----------------------------------------------------------------+
>>> _______________________________________________
>>> ka-Map-users mailing list
>>> ka-Map-users at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>>
>>
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
> 
> +-----------------------------------------------------------------+
> |Paul Spencer                           pspencer at dmsolutions.ca   |
> +-----------------------------------------------------------------+
> |Applications & Software Development                              |
> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
> +-----------------------------------------------------------------+
> 
> 
> 
> 
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
> 



More information about the ka-Map-users mailing list