<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><pre><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">projection: epsg4326, </span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> var gmap = new OpenLayers.Layer.Google(
    "Google Streets",
    // the default
    {numZoomLevels: 20}
); </span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> var gsat = new OpenLayers.Layer.Google(
    "Google Satellite",
    {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
    // used to be {type: G_SATELLITE_MAP, numZoomLevels: 22}
);

</span></font><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255); ">
</span></pre><br><span style="-webkit-text-size-adjust: auto;">Sent from my iPad</span></div><div style="-webkit-text-size-adjust: auto; "><br>On Mar 23, 2013, at 3:33 AM, "Andreas Hocevar-2 [via <a href="http://OSGeo.org" target="_top" rel="nofollow" link="external">OSGeo.org</a>]" <<a href="/user/SendEmail.jtp?type=node&node=5042550&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br><br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite" style="-webkit-text-size-adjust: auto; "><div>

        Code snippet did not make it into your post.
<br><br>Andreas.
<br><br>On Fri, Mar 22, 2013 at 7:06 PM, boesiii <<a href="/user/SendEmail.jtp?type=node&node=5042484&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<div class="shrinkable-quote"><div class='shrinkable-quote'><br>> On my OpenLayers based map I am using a Google layer as a background and I am
<br>> overlying vector features from a geojson file.  When I first start the map
<br>> the google layer is shifted slightly, but when I use the layer switcher to
<br>> change to the Google Satellite background, the background shifts slightly
<br>> and everything lines up correctly.  If I use MapQuest OSM data everything
<br>> lines up correctly and works fine.  How can I get the Google layers to line
<br>> up correctly at first?
<br>>
<br>> Some Code:
<br>>
<br>>
<br>>
<br>>
<br>> --
<br>> View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Google-Layer-shifted-small-dustance-tp5042428.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/Google-Layer-shifted-small-dustance-tp5042428.html</a><br>> Sent from the OpenLayers Users mailing list archive at <a href="http://Nabble.com" target="_top" rel="nofollow" link="external">Nabble.com</a>.
<br>> _______________________________________________
<br>> Users mailing list
<br>> <a href="/user/SendEmail.jtp?type=node&node=5042484&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></div></div><br><br>-- 
<br>Andreas Hocevar
<br>OpenGeo - <a href="http://opengeo.org/" target="_top" rel="nofollow" link="external">http://opengeo.org/</a><br>Expert service straight from the developers.
<br>_______________________________________________
<br>Users mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=5042484&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.n6.nabble.com/Google-Layer-shifted-small-dustance-tp5042428p5042484.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/Google-Layer-shifted-small-dustance-tp5042428p5042484.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Google Layer shifted small dustance, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></div></blockquote>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Google-Layer-shifted-small-dustance-tp5042428p5042550.html">Re: Google Layer shifted small dustance</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>