[mapserver-users] How to use 01 connection for all layers in map file

Mr. Bic Phuong bicphuongonline at yahoo.com
Thu Aug 6 05:32:04 EDT 2009


Your reply is really good news,

Will you please to tell me details on details how can I do like you with a map file which has more than 17 connection now?

I do not understand yet clearly how to use "single" MapServer layer for all?

Thanks so much and I hope you can help me more!



--- On Thu, 8/6/09, Pavel Iacovlev <iacovlev.pavel at gmail.com> wrote:

From: Pavel Iacovlev <iacovlev.pavel at gmail.com>
Subject: Re: [mapserver-users] How to use 01 connection for all layers in map  file
To: "Mr. Bic Phuong" <bicphuongonline at yahoo.com>
Date: Thursday, August 6, 2009, 3:16 PM

Hope I get your question right.

We have around 32 layers in one of the project, the approach is rather
simple, you just use a "single" Mapserver layer so there is always 1
request to Mapserver from OpenLayers. The request layer is the
combination of all your layers, the overlaying is made server side.

Details:
1. We have a custom "layer switcher" that user selects what layers he
wants to see and this data is saved, in a php session for example.
2. Then the user requests a map from a PHPMapscript(mapserver) server,
using php you fetch all the layers selected by the user previously
3. Dispatch the result




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090806/53c5605d/attachment.html


More information about the mapserver-users mailing list