<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi All,<br><br>I'm looking for advice on using an ArcGIS Server WMS against a base layer in Spherical Mercator. <br><br>I'm using a modification of the spherical mercator example as per below. Specifically I'm having difficulty in understanding how to have OpenLayers request map images from the WMS using a EPSG that ArcGIS Server understands. I'm using ArcGIS Server 9.3 beta which includes support for spherical mercator using EPSG:102113. However the sample below creates getmap requests with EPSG:900913 which result in an invalid SRS message from the WMS. Can anyone advise as to whether I can have OpenLayers request the WMS in EPSG:102113 so that they overlay on MultiMap, Google etc?<br><br>Many Thanks<br><br>Eamonn<br><br><html xmlns="http://www.w3.org/1999/xhtml"><br> <head><br> <style type="text/css"><br> #map {<br> width: 100%;<br> height: 512px;<br> border: 1px solid gray;<br> }<br> </style><br><br><br> <script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script><br><br> <script src="http://www.openlayers.org/api/OpenLayers.js"></script><br> <script type="text/javascript"><br> <br> var map, ve, merc, vector;<br><br> function init(){<br> var options = {<br> projection: "EPSG:900913",<br> units: "m",<br> maxResolution: 156543.0339,<br> maxExtent: new OpenLayers.Bounds(-1089992, 7141630,<br> -402058, 7454716)<br> };<br> map = new OpenLayers.Map('map', options);<br><br> ve = new OpenLayers.Layer.MultiMap(<br> "multimap",<br> {'sphericalMercator': true}<br> ); <br> merc = new OpenLayers.Layer.WMS("Rivers Agency",<br> "http://faramir/arcgis/services/RiversAgency/MapServer/WMSServer",<br> {'layers': '0,1',<br> srs: 'EPSG:102113',<br> 'format':'png'},<br> {'reproject': false,<br> 'opacity': 0.4,<br> 'isBaseLayer': false});<br> // create a vector layer for drawing<br> vector = new OpenLayers.Layer.Vector("Editable Vectors");<br> <br> map.addLayers([ve, merc, vector]);<br> map.addControl(new OpenLayers.Control.LayerSwitcher());<br> map.addControl(new OpenLayers.Control.EditingToolbar(vector));<br> map.zoomToMaxExtent()<br> }<br> <br> </script><br> </head><br> <body onload="init()"><br> <h3>OpenLayers MultiMap Mercator Example</h3><br> <div id="map"></div><br> </body><br></html><br><br><br><br><br></div><br /><hr />It’s time to join the family - Get the next generation of Free Windows Live Services now! <a href='http://get.live.com/' target='_new'>Click here!</a></body>
</html>