If you really have to have many layers dynamically rendered, I think
your best bet will be using a single WMS layer with a list of layer
names. It sounds like your reason for not doing this the behavior of
the OpenLayers.Control.LayerSwitcher. If you can put a bit of time into
a custom control for your application, it shouldn't be hard to create
checkboxes for your layers. For each checkbox, add an onchange listener
that compiles the list of visible layers and updates the layer.
layer.mergeNewParams({layers: visibleLayersList})
If that won't work for you, other sensible options are:
1) change layer.buffer to 0
2) increase layer.tileSize or set layer.singleTile true
Andreas Hocevar gave a nice presentation at FOSS4G that covered these
and other options. See his examples here:
http://ol-performance.appspot.com/
On 9/13/10 11:55 AM, Planet)x wrote:
I am having problems using tilecache it just won't work with our environment.
We are using Intergraph Geomedia Webmap products and I have created a site
with many WMS Layers (each of my WMS has a single layer). I did this because
our site now allows users to display/turn off individual layers so we didn't
want to have a group of all layers we need each one to be individual so the
layerswitcher can turn them off. Well my approach is very slow half the time
no layers will load when I load the page, other times they all load but most
of the time only a few of them load properly and I have to reload my page
multiple times to see it. I have tried implementing tilecache but our
network admin has our server pretty locked down and I think it is not
working because of this. Is anyone else using Geomedia and has a different
approach to this? I know theres obviously something I should be doing
different than declaring a new WMS layer for each layer because it is very
slow. All other openlayers examples I have seen I can pan around/zoom in and
out and it is reasonably fast but it seems like any zoom operation I perform
on my own just redraws and does a request again for every single layer. Any
suggestions on how to improve this speed or what I am doing wrong greatly
appreciated.
--
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users