[OpenLayers-Users] preload layers

Arnd Wippermann arnd.wippermann at web.de
Tue Aug 25 11:15:48 EDT 2009


Hi Hanno,
 
as a workaround you could load two layers with different timestamps. One
layer you set opacity to 0 and shows it not in the layerswitcher. When you
choose the next time, the tiles should be there and the tiles for the next
time are loaded invisible.
 
Arnd

  _____  

Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Rahn Hanno (rahn)
Gesendet: Dienstag, 25. August 2009 15:39
An: users at openlayers.org
Betreff: [OpenLayers-Users] preload layers



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/e4da657f/attachment.html


More information about the Users mailing list