Hi,<div><br></div><div>In the code you passed me, if I put the spherical Mercator to true, it doesn&#39;t center correctly.. </div><div>If I zoom at maximum the center of overview is very near from the &quot;right&quot; center, but if i zoom out.. every time the overviewmap changes the scale, it centers far from the center of base layer.. (if i center newyork in base layer, the overview map, is centered over south africa..)</div>
<div><br></div><div>And if I don&#39;t put the sphericalmercator to true, then it centers ok, but again it put the center of the baselayer to the top-left of overviewmap.</div><div><br></div><div>What i&#39;m doing wrong?</div>
<div><br></div><div>Thanks!</div><div><br><div class="gmail_quote">2010/2/5 Max Weidemann <span dir="ltr">&lt;<a href="mailto:max.weidemann@freenet.de">max.weidemann@freenet.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hello JuKiM,<br>
<br>
Try this layer as you overview layer.<br>
<div class="im"><br>
var ovMAP = new OpenLayers.Layer.Google(&quot;GMap Streets&quot;, {<br>
</div>                        type:G_NORMAL_MAP,<br>
                        &#39;sphericalMercator&#39;: true,<br>
                        maxExtent: new OpenLayers.Bounds(-20037508,<br>
-20037508,<br>
                            20037508, 20037508.34)<br>
        });<br>
<br>
cheers<br>
Max<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Google-Overviewmap-tp4519147p4519507.html" target="_blank">http://n2.nabble.com/Google-Overviewmap-tp4519147p4519507.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</font></blockquote></div><br></div>