[OpenLayers-Users] Overlay on Google

moony k_karo at web.de
Mon Jun 22 08:26:57 EDT 2009


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.




More information about the Users mailing list