<div>Hi Bob,</div><div><br></div>I have used map.panTo(lonlat); and map.moveTo(lonlat); here in my project. panTo() is fancy and smooth if you are running on a faster computer, but is laggy and jumpy if you are running on a slower device (like maybe a smart phone.) moveTo() just does a direct jump. I've used map.getPixelFromLonLat(lonlat); to get the pixel location of the item of interest and then if it's too far from center I do the call to moveTo()<br>
<br>Hope that helps, but if not, sorry for the line noise. :-)<div><br>Curt.</div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Oct 24, 2012 at 2:47 PM, Basques, Bob (CI-StPaul) <span dir="ltr"><<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif"">All,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif"">Anyone know of a demo that Auto-recenters view from a URL call. Want to zoom to a point on a map, and recenter the view based on a URL.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif"">The idea is to stay tuned to a tracking GPS in a Fleet asset, and basically follow along as they move.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif"">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif"">Bobb<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Comic Sans MS","serif""><u></u> <u></u></span></p>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto: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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Curtis Olson:</div><div><a href="http://www.atiak.com/" target="_blank">http://www.atiak.com</a> - <a href="http://aem.umn.edu/~uav/" target="_blank">http://aem.umn.edu/~uav/</a></div>
<div><a href="http://www.flightgear.org/" target="_blank">http://www.flightgear.org</a> - <a href="http://gallinazo.flightgear.org/" target="_blank">http://gallinazo.flightgear.org</a></div><br>
</div>