<div class="gmail_quote"><br>Hello list,<div>I am trying to overlay wms on google satellite, I have read a few articles on the same and finally what i have is </div><div><b>ONE</b>: the WMS layers overlaying vertically but there seems to be a spatial shift horizontally (to the right).</div>

<div><b>TWO</b>: the WMS does NOT overlay AT ALL at certain zoom levels, while at other zoom levels works as described in <b>ONE. </b><i>attached a screenshot of the shift</i></div><div><b><br></b></div><div>i have downloaded proj4js folder and copied into openlayers folder then included the &lt;script type=&#39;text/javascript&#39; src=&quot;openlayers/proj4js/lib/proj4js-combined.js&quot;&gt;&lt;/script&gt; just before openlayers.js script. In geoserver i have set the SRS to EPSG:32737 and below is relevant piece of openlayers code and a screenshot of the wms &amp; google overlay</div>

<div><br></div><div><br></div><div><br></div><div>Proj4js.defs[&quot;EPSG:32737&quot;] =&quot;+proj=utm +zone=37 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs &quot;;</div><div><div>Proj4js.defs[&quot;EPSG:3857&quot;]=Proj4js.defs[&quot;GOOGLE&quot;];</div>

<div><span style="white-space:pre-wrap">                                        </span></div><div>var mapExtent= new OpenLayers.Bounds(170361.569, 9963401.274,183801.419, 9971245.621);</div><div>mapExtent.transform(new OpenLayers.Projection(&#39;EPSG:32737&#39;), new OpenLayers.Projection(&#39;EPSG:3857&#39;));</div>

<div><br></div><div><span style="font-size:x-small;white-space:pre-wrap">        </span>var options = {</div><div>              projection: new OpenLayers.Projection(&quot;EPSG:3857&quot;),</div><div>              displayProjection: new OpenLayers.Projection(&quot;EPSG:32737&quot;),</div>

<div>              units: &quot;m&quot;,</div><div><span style="white-space:pre-wrap">                        </span>  //maxResolution: &quot;auto&quot;,</div><div>              maxResolution: 156543.0339,</div><div>              maxExtent: mapExtent ,</div>

<div><span style="white-space:pre-wrap">        </span>     minExtent: &quot;auto&quot;,</div><div><span style="white-space:pre-wrap">        </span>    restrictedExtent: mapExtent</div><div>           };</div>
<div><br></div><div>           map = new OpenLayers.Map(&#39;map&#39;, options);</div></div><div><br></div><div><div>var LandParcel= new OpenLayers.Layer.WMS(</div><div><span style="white-space:pre-wrap">                                                                                </span>&quot;Land Parcels&quot;,</div>

<div><span style="white-space:pre-wrap">                                                                                </span>&quot;<a href="http://localhost:8082/geoserver/wms" target="_blank">http://localhost:8082/geoserver/wms</a>&quot;,</div><div><span style="white-space:pre-wrap">                                                                                </span>{layers:&quot;nakinfo:nk_land_parcels&quot;,</div>

<div><span style="white-space:pre-wrap">                                                                                </span>tiled: true,</div><div><span style="white-space:pre-wrap">                                                                                </span>format:&quot;image/gif&quot;,</div><div><span style="white-space:pre-wrap">                                                                                </span>transparent:true,</div>

<div><span style="white-space:pre-wrap">                                                                                </span>projection: new OpenLayers.Projection(&quot;EPSG:32737&quot;)},</div><div><span style="white-space:pre-wrap">                                                                                </span>{visibility: false, opacity:0.3}</div>

<div><span style="white-space:pre-wrap">                                                                                </span>);</div><div>map.addLayer(LandParcel); </div></div><div><div><br></div></div></div><div><br></div>-- <br><div>Kind Regards,</div>
<div>Viola</div><br>