<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Your reply is really good news,<br><br>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?<br><br>I do not understand yet clearly how to use "single" MapServer layer for all?<br><br>Thanks so much and I hope you can help me more!<br><font size="3"><span style="font-weight: bold; font-family: times new roman;"><br></span></font><br><br>--- On <b>Thu, 8/6/09, Pavel Iacovlev <i><<span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1249551026_0">iacovlev.pavel@gmail.com</span>></i></b> wrote:<br><br>From: Pavel Iacovlev <iacovlev.pavel@gmail.com><br>Subject: Re: [mapserver-users] How to use 01 connection for all layers in map file<br>To: "Mr. Bic Phuong" <bicphuongonline@yahoo.com><br>Date: Thursday, August 6, 2009, 3:16
PM<br><br>Hope I get your question right.<br><br>We have around 32 layers in one of the project, the approach is rather<br>simple, you just use a "single" Mapserver layer so there is always 1<br>request to Mapserver from OpenLayers. The request layer is the<br>combination of all your layers, the overlaying is made server side.<br><br>Details:<br>1. We have a custom "layer switcher" that user selects what layers he<br>wants to see and this data is saved, in a php session for example.<br>2. Then the user requests a map from a PHPMapscript(mapserver) server,<br>using php you fetch all the layers selected by the user previously<br>3. Dispatch the result<br><br></td></tr></table><br>