Couple of things. Firstly, Displayprojection is map setting, not a layer. It controls what will be displayed in things like the mousePosition control.

Secondly, doesnt matter what projection you specify for a WMS layer that is not the baselayer. Openlayers will generate a request to the WMS server in the projection of your current baselayer. You can use the NET tab on firebug or similar to see the request. Do a getcaps call to the mapserver to see whether it supports the EPSG of your base layer (which it sounds like is 3857).

It can be very irritating when you have two wmsservers that have mutually-incompatible SRS codes for the same projection. You can get around it with an override (did for ages on the arcgis servers before they got 3857). But first want a http://yourserver?request=GetCapabilities&service=WMS to get the supported projections.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

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

Reply via email to