Hello,

I am trying to display multiple layers with different EPSGs.I keep getting
the following error:

msWMSLoadGetMapParams(): Invalid SRS given SRS must be valid for all
requested layers.

I googled the error, but couldn't seem to find anything that helped me.

My code is below. Any help in understanding what I'm doing wrong is
appreciated.

Best regards,

Amy

function displayMap(){
        var bounds = new OpenLayers.Bounds(
                27785.961098086438, -18898.951845404597,
                2536854.645181053, 1764270.285927545
        );
        var options = {
                controls: [],
                maxExtent: bounds,
                maxResolution: 9801.049547199087,
                projection: "EPSG:2992",
                units: 'ft'
        };
        map = new OpenLayers.Map('map', options);

    var wms = new OpenLayers.Layer.WMS(
                "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0";,
                {
                        layers: 'basic',
                        srs: 'EPSG:4326'
                } );
//    map.addLayer(wms);

        layer = new OpenLayers.Layer.WMS(
                "Oregon Watershed", "http://localhost:8080/geoserver/wms";,
                {
                        srs: 'EPSG:2992',
                        styles: '',
                        layers: 'topp:oweb_wshed_council_bnd',
                        format: 'image/png'
                },
        );

        map.addLayers([wms,layer]);

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to