yes, but with 'sphericalMercator': true I do not see my WMS layer..<br><br><div class="gmail_quote">2010/4/6 Alexandre Dube <span dir="ltr"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Hi,<br>
<br>
Have you tried with 'sphericalMercator': true ?<br>
<br>
Alexandre<br>
<br>
<br>
Alessandro Gorreta wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
I'm trying to do a sample thing. Put a google layer with a WMS layer from mapguide server.<br>
All works fine when I show viewer the first time, but when a redraw all WMS layer is placed wrong.<br>
If I omit singlelayer also is WRONG.<br>
Some IDEAS ???<br>
<br>
function openlayerinit(xcent,ycent)<br>
{<br>
openlayermap = new OpenLayers.Map('openlayermap');<br>
var ghyb = new OpenLayers.Layer.Google("Google Hybrid",{type: G_HYBRID_MAP, numZoomLevels: 20 , 'sphericalMercator': false});<br>
var wms = new OpenLayers.Layer.WMS("MYWMSLAYER","<a href="http://XXXXXXXX/mapguide/mapagent/mapagent.fcgi" target="_blank">http://XXXXXXXX/mapguide/mapagent/mapagent.fcgi</a>", {transparent: 'TRUE', layers: 'Orbassano/Layers/Catasto Edifici' , version: '1.1.1' } , {singleTile: true} );<br>
openlayermap.addLayers([ghyb,wms]);<br>
var layswitchcontrol = new OpenLayers.Control.LayerSwitcher();<br>
openlayermap.addControl(layswitchcontrol);<br>
openlayermap.setCenter(new OpenLayers.LonLat(xcent,ycent), 16);<br>
}<br>
<br>
THANKS<br></div></div><div class="im">
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br>
</div></blockquote><font color="#888888">
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</font></blockquote></div><br>