[OpenLayers-Users] PROBLEM GOOGLE + WMS

Alessandro Gorreta alessandro.gorreta at gmail.com
Tue Apr 6 16:57:30 EDT 2010


yes, but with 'sphericalMercator': true I do not see my WMS layer..

2010/4/6 Alexandre Dube <adube at mapgears.com>

> Hi,
>
>  Have you tried with 'sphericalMercator': true ?
>
> Alexandre
>
>
> Alessandro Gorreta wrote:
>
>> I'm trying to do a sample thing. Put a google layer with a WMS layer from
>> mapguide server.
>> All works fine when I show viewer the first time, but when a redraw all
>> WMS layer is placed wrong.
>> If I omit singlelayer also is WRONG.
>> Some IDEAS ???
>>
>> function openlayerinit(xcent,ycent)
>> {
>>    openlayermap = new OpenLayers.Map('openlayermap');
>>    var ghyb = new OpenLayers.Layer.Google("Google Hybrid",{type:
>> G_HYBRID_MAP, numZoomLevels: 20 , 'sphericalMercator': false});
>>    var wms = new OpenLayers.Layer.WMS("MYWMSLAYER","
>> http://XXXXXXXX/mapguide/mapagent/mapagent.fcgi", {transparent: 'TRUE',
>> layers: 'Orbassano/Layers/Catasto Edifici' , version: '1.1.1' } ,
>> {singleTile: true} );
>>    openlayermap.addLayers([ghyb,wms]);
>>    var layswitchcontrol = new OpenLayers.Control.LayerSwitcher();
>>    openlayermap.addControl(layswitchcontrol);
>>    openlayermap.setCenter(new OpenLayers.LonLat(xcent,ycent), 16);
>>   }
>>
>> THANKS
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100406/86dfbba8/attachment.html


More information about the Users mailing list