[OpenLayers-Users] preload layers

Rahn Hanno (rahn) rahn at zhaw.ch
Tue Aug 25 09:39:11 EDT 2009


Hello list,

 

I have a little tricky question. Perhaps somebody can help me.

I show a layer in my map. This layer shows polygons at a specific time. Now you can click a button and the next time will be shown in the map. You can change the time back of course, too.

In my solution there are timestamps from the year 1980 up to 2009.

 

This works fine, but I have a little performance problem. It is not very fast to load the different layers. If the layer is loaded, he is in the cache and load the next time faster. That's ok.

I think now, perhaps it is possible to load the next timestamp-Layer in the browser cache while the user looks at the active layer. If the user then clicked at the button, the layer must only load out of the browser cache.

I don't know if something like that is possible or not. Perhaps somebody can help me or somebody has already realise something like this.

 

A lot of thanks to you for your help.

 

Greetings

Hanno

 

------------------------------------------

Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik

ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen 

Fachstelle Geoinformatik 

Grüental, Postfach CH-8820 Wädenswil 

Tel +41 (0)58 934 5592

Fax +41 (0)58 934 5580 

hanno.rahn at zhaw.ch 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090825/f1246f75/attachment.html


More information about the Users mailing list