[OpenLayers-Users] multiple layers in a single request
Arnd Wippermann
arnd.wippermann at web.de
Sun Jun 10 19:42:25 EDT 2007
Hello Richard,
I think there is no need for this. If you use independent layers, then you
can switch them on and off without a request to the server. If you put these
independent layers in one request, the switching have to produce a request.
I have build an own layercontrol for my openlayers client, where you can see
this behavior. To turn off Openlayers Layers, you uncheck them. If you want
to turn off one or more layers of one Openlayers Layer, you have to refresh
the Openlayers layer and send a request to the server.
http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html
I'm using popup windows for the layercontrol and other options.
Mit freundlichen Grüssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Richard Greenwood
Gesendet: Sonntag, 10. Juni 2007 22:10
An: Users at openlayers.org
Betreff: [OpenLayers-Users] multiple layers in a single request
It appears that if I have a map with five layers, five requests go to the
server (mapserver in my case) even when all of the layers are coming from
the same server. I can see that you can ball multiple server layers into a
single OL layer definition with {layers: L1, L2...} but they cease to be
independent layers in the layer control.
How would you offer the user 10 layers, allow them to turn on as many as
they want, but still only make one request to the server?
Thanks,
Rich
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list