<HTML><BODY>Hi zach<br><br>Projection of google layers is 3857(or 900913) by default.<br><br>May be need a <span id="result_box" class="short_text" lang="en"><span class="hps">positioning</span></span>  like this: <br>map.zoomTo(youZoomLevel);         <br>map.setCenter(youLonLat);<br><a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomTo" data-mce-href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomTo">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomTo</a><br><a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter" data-mce-href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter</a><br><br>Best regards<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        <div id="">
<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
         
        <div id="viewmessagebody" class="mr_read__body">
                <base target="_self" href="https://e.mail.ru/">
                
                        <div id="style_13947289130000000620_BODY">trying to add a google layer:<br>
<br>
// 1. include script<br>
<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script><br>
<br>
// 2. create layer<br>
map = new OpenLayers.Map(<br>
    ...<br>
);<br>
var layer_google = new OpenLayers.Layer.Google(<br>
    "Google Streets",<br>
    {<br>
        numZoomLevels: 20<br>
    }<br>
);<br>
<br>
// 3. add layer<br>
map.addlayers([layer_google]);<br>
<br>
but then when i select the google layer, my map zooms to the equator<br>
and freezes (can't pan or zoom).<br>
<br>
could it be a projection issue? tried setting projection to<br>
'epsg:4326', 'epsg:3857' and 'epsg:900913', and disabling zoom but<br>
without success.<br>
<br>
<a href="http://openlayers.org/dev/examples/google.js" target="_blank">http://openlayers.org/dev/examples/google.js</a><br>
<a href="http://openlayers.org/blog/2010/07/10/google-maps-v3-for-openlayers/" target="_blank">http://openlayers.org/blog/2010/07/10/google-maps-v3-for-openlayers/</a><br>
<a href="http://openlayers.org/dev/examples/google.html" target="_blank">http://openlayers.org/dev/examples/google.html</a><br>
<a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/google-v3-alloverlays.html" target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/google-v3-alloverlays.html</a><br>
<a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/osm-google.html" target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/osm-google.html</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="/compose?To=Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div>
                        
                
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br></BODY></HTML>