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