Hi, 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!
My MAPFILE is this: MAP ... PROJECTION "init=epsg:23030" END WEB METADATA "wms_encoding" "UTF-8" "wms_title" "Mapserver WMS" "wms_abstract" "" "wms_srs" "EPSG:23030 EPSG:4326" "wms_onlineresource" " http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP" "ows_enable_request" "*" "wms_feature_info_mime_type" "text/html" END END LAYER NAME "file.shp" STATUS ON TYPE POLYGON DUMP true TEMPLATE "templates/tempalte.html" DATA "E:\file.shp" MAXSCALE -1.0 MINSCALE -1.0 TRANSPARENCY 100 SIZEUNITS meters CLASS STYLE COLOR 153 153 255 OUTLINECOLOR 51 51 255 WIDTH 1 END NAME "default" END METADATA "wms_title" "file.shp" "wms_extent" "626679.4375 4191039.75 797868.9375 4519396.0" "gml_include_items" "MONO" "ows_enable_request" "*" WMS_SRS "EPSG:23030" END END # Layer ... All the layers are similar, and the JS wich showsd the result is like this: var options = { controls : [new OpenLayers.Control()], minExtent : new OpenLayers.Bounds(-1, -1, 1, 1), maxResolution : 0.35, maxZoomLevel : 10, maxExtent : new OpenLayers.Bounds(-1.53544921875, 37.81, 0.0000, 40.84), zoom: 4, tileSize : new OpenLayers.Size(400, 550) }; map = new OpenLayers.Map('olmap', options); ... var ProvinciasWms = new OpenLayers.Layer.WMS( "Layer_1", "/mapserver?", {layers : 'file.shp', format : 'image/png', transparent : true, map : 'MYMAP'}, {isBaseLayer : false, singleTile:true, ratio: 1});
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users