<span style>Hi,</span><div style><br></div><div style>I have a map with several layers. But when the result is rendered in the browser with OpenLayers, the maps are flattened and all request are done with the SRS parameter which value EPSG:4326 instead EPSG:23030. Some help? Thanks!</div>
<div style><br></div><div style>My MAPFILE (using MapServer) is this:</div><div style><br></div><div style>MAP</div><div style>  ...</div><div style>  PROJECTION</div><div style>    &quot;init=epsg:23030&quot;</div><div style>
  END</div><div style><br></div><div style>  WEB</div><div style>    METADATA</div><div style>      &quot;wms_encoding&quot; &quot;UTF-8&quot;</div><div style>      &quot;wms_title&quot; &quot;Mapserver WMS&quot;</div><div style>
      &quot;wms_abstract&quot; &quot;&quot;</div><div style>      &quot;wms_srs&quot; &quot;EPSG:23030 EPSG:4326&quot;</div><div style>      &quot;wms_onlineresource&quot; &quot;<a href="http://localhost/cgi-bin/mapserv.exe?map=MYMAP" target="_blank" style="color:rgb(17,85,204)">http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP</a>&quot;</div>
<div style>      &quot;ows_enable_request&quot; &quot;*&quot;</div><div style>      &quot;wms_feature_info_mime_type&quot; &quot;text/html&quot;</div><div style>    END</div><div style>  END</div><div style><br></div><div style>
  LAYER</div><div style>    NAME &quot;file.shp&quot;</div><div style>    STATUS ON</div><div style>    TYPE POLYGON</div><div style>    DUMP true</div><div style>    TEMPLATE &quot;templates/tempalte.html&quot;</div><div style>
    DATA &quot;E:\file.shp&quot;</div><div style>    MAXSCALE -1.0</div><div style>    MINSCALE -1.0</div><div style>    TRANSPARENCY 100</div><div style>    SIZEUNITS meters</div><div style>    CLASS</div><div style>      STYLE </div>
<div style>        COLOR 153 153 255</div><div style>        OUTLINECOLOR 51 51 255</div><div style>        WIDTH 1</div><div style>      END</div><div style>      NAME &quot;default&quot;</div><div style>    END</div><div style>
    METADATA</div><div style>      &quot;wms_title&quot; &quot;file.shp&quot;</div><div style>      &quot;wms_extent&quot; &quot;<a href="tel:626679.4375" value="+16266794375" target="_blank" style="color:rgb(17,85,204)">626679.4375</a> 4191039.75 797868.9375 4519396.0&quot;</div>
<div style>      &quot;gml_include_items&quot; &quot;MONO&quot;</div><div style>      &quot;ows_enable_request&quot; &quot;*&quot;</div><div style>      WMS_SRS &quot;EPSG:23030&quot;</div><div style>    END</div><div style>
  END # Layer</div><div style><br></div><div style>...</div><div style><br></div><div style>All the layers are similar, and the JS wich showsd the result is like this:</div><div style><br></div><div style><div>var options = {</div>
<div><span style="white-space:pre-wrap">                        </span>controls : [new OpenLayers.Control()],</div><div><span style="white-space:pre-wrap">                        </span>minExtent : new OpenLayers.Bounds(-1, -1, 1, 1),</div><div><span style="white-space:pre-wrap">                        </span>maxResolution : 0.35,</div>
<div><span style="white-space:pre-wrap">                        </span>maxZoomLevel : 10,</div><div><span style="white-space:pre-wrap">                        </span>maxExtent : new OpenLayers.Bounds(-1.53544921875, 37.81, 0.0000, 40.84),</div><div><span style="white-space:pre-wrap">                        </span>zoom: 4,</div>
<div><span style="white-space:pre-wrap">                        </span>tileSize : new OpenLayers.Size(400, 550) </div><div><span style="white-space:pre-wrap">                </span>};</div><div><span style="white-space:pre-wrap">                </span></div><div>map = new OpenLayers.Map(&#39;olmap&#39;, options);</div>
<div><span style="white-space:pre-wrap">                </span></div><div>...<span style="white-space:pre-wrap">                </span></div><div><br></div><div>var ProvinciasWms = </div><div><span style="white-space:pre-wrap">        </span>new OpenLayers.Layer.WMS(</div>
<div><span style="white-space:pre-wrap">                </span>&quot;Layer_1&quot;,</div><div><span style="white-space:pre-wrap">                </span>&quot;/mapserver?&quot;,</div><div><span style="white-space:pre-wrap">                </span>{layers : &#39;file.shp&#39;,</div>
<div><span style="white-space:pre-wrap">                </span> format : &#39;image/png&#39;,</div><div><span style="white-space:pre-wrap">                </span> transparent : true,</div><div><span style="white-space:pre-wrap">                </span> map : &#39;MYMAP&#39;},</div>
<div><span style="white-space:pre-wrap">                </span>{isBaseLayer : false,</div><div><span style="white-space:pre-wrap">                </span> singleTile:true,</div><div><span style="white-space:pre-wrap">                </span> ratio: 1});</div></div>