You should configure ArcGIS to serve 900913. I do not even know if that is possible. I guess it is.<br>OpenLayers can't reproject itself.<br><br><div class="gmail_quote">On Mon, Jun 22, 2009 at 2:26 PM, moony <span dir="ltr"><<a href="mailto:k_karo@web.de">k_karo@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi all,<br>
<br>
I want to use Google Maps as baselayer and overlay wms, which are delivered<br>
by ArcGIS Server.<br>
OpenLayers is always using "epsg:900913", but ArcGIS Servers uses "epsg:<br>
102113" for the google projection.<br>
How can I force OpenLayers to use "epsg: 102113" instead of "epsg: 900913"?<br>
Defining the projection in the options doesn't work.<br>
<br>
var options = {<br>
projection: new OpenLayers.Projection("EPSG:102113"),<br>
//projection: new OpenLayers.Projection("EPSG:900913"),<br>
//displayProjection: new OpenLayers.Projection("EPSG:4326"),<br>
units: "m",<br>
numZoomLevels: 18,<br>
maxResolution: 156543.0339,<br>
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,<br>
20037508, 20037508.34)<br>
};<br>
map = new OpenLayers.Map('map', options);<br>
<br>
var gphy = new OpenLayers.Layer.Google(<br>
"Google Physical",<br>
{type: G_HYBRID_MAP, 'sphericalMercator': true}<br>
);<br>
<br>
var wms = new OpenLayers.Layer.WMS( "Fläche natürlicher Vegetation pro<br>
Einwohner",<br>
<br>
"<a href="http://xen1ags:8399/arcgis/services/Monitor/Bevoelkerung_Web/MapServer/WMSServer" target="_blank">http://xen1ags:8399/arcgis/services/Monitor/Bevoelkerung_Web/MapServer/WMSServer</a>?",<br>
{layers: '0', srs: 'EPSG:102113',format: 'image/png', transparent:<br>
'true'},<br>
{singleTile: true, isBaseLayer: false}<br>
);<br>
<br>
map.addLayers([gphy,wms]);<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Overlay-on-Google-tp2973539p3135908.html" target="_blank">http://n2.nabble.com/Overlay-on-Google-tp2973539p3135908.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</font></blockquote></div><br>