[OpenLayers-Users] Overlay on Google

Guillaume Sueur no-reply at neogeo-online.net
Fri May 29 08:39:09 EDT 2009


Hi,

If you are talking about srs parameter, try to use :
epsg:900913

regards,

guillaume

moony a écrit :
> Hello List,
> 
> I am trying to add an overlay on top of google maps using epgs:102113. But I
> got an error message, that the "Paramenter 'src' contains unacceptable
> value".  I am sorry, but I cannot see, what I am doing wrong, why it doesn't
> work.
> 
> Thanks!
> 
>   var map;
>  
>   var webproj = "EPSG:102113";
>   var webextent = new OpenLayers.Bounds(-20037508, -20037508, 20037508,
> 20037508.34);
>   var webunits= "m";
> 
> 
>   function init(){
>           var options = {
>                  
>                           maxExtent : webextent,
>                           projection: webproj,
>                           units: webunits,
>                          
>                  maxResolution: 156543.0339,
>                           numZoomLevels: 9
>                   };
> 
>   map = new OpenLayers.Map( $('map') , options);
> 
>   var gphy = new OpenLayers.Layer.Google(
>                 "Google Physical",
>                 {type: G_HYBRID_MAP, 'sphericalMercator': true}
>             );
> 
>   map.addLayer(gphy);
> 
>   var wms = new OpenLayers.Layer.WMS( "WMS",
>                
> "http://xen1ags:8399/arcgis/services/Monitor/Bevoelkerung_Bundesland_Web_Mercator/MapServer/WMSServer",
>                 {layers: '1', srs: 'EPSG:102113', format: 'image/png',
> transparent: 'true'},  {'reproject': false, 'opacity': 0.4, isBaseLayer:
> false});
> 
>   map.addLayer(wms);
> 
> 
>  
> map.setCenter(OpenLayers.Layer.SphericalMercator.forwardMercator(10.205188,51.457593),
> 6);
> 
>   map.addControl(new OpenLayers.Control.LayerSwitcher());
>   map.addControl(new OpenLayers.Control.MousePosition());
> } 



More information about the Users mailing list