Apologies if this is a dup from an earlier response to this thread, but that thread said 'This post has NOT been accepted by the mailing list yet.' so not sure it's visible to others...
I'm trying to add an AGS v10 layer to an OL map but it only seems to work if:
- map.projection = WGS84
- map.displayProjection = WGS84
- isBaseLayer = true
My end goal is to use Bing base maps in EPSG:900913, so my map.projection will be EPSG:900913 and my map.displayProjection will be EPSG:4326. But the only way I can get AGS v10 REST and WMS services to display in an OL map is to set the map.projection, map.displayProjection and layer.projection to EPSG:4326. I'm using OL v2.11, am hoping that supports WMS 1.3?
I have AGS v10 services published as both REST and WMS. The CRS of the REST service is '102100 (3857)'. EPSG doesn't recognize 102100 which I believe is ESRI's own designation, so I experimented using 3857. If I view the service in an ESRI client (ArcMap, ArcCatalog) then it displays with the correct projection. But the only way I can display the layer at all in an OL map, whether using a OpenLayers.Layer.ArcGIS93Rest or a OpenLayers.Layer.WMS layer, is to use 4326 for both map.projection and map.displayProjection, which of course will not overlay on top of the Bing base layers.
While I'd prefer to be able to use WMS, any workaround would be acceptable. I wasn't able to get WFS to display at all, but that may be because I don't have all the OL layer params that are required. I tried: