No, I haven&#39;t. Does anyone have a good rule of thumb for scaling these properties, or is it just sort of a feel it out kind of thing? Thanks, Marc.<br><br><div class="gmail_quote">On Sat, Aug 15, 2009 at 11:37 AM, Marc Jansen <span dir="ltr">&lt;<a href="mailto:jansen@terrestris.de">jansen@terrestris.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Nicholas,<br>
<br>
have you set the minExtent and maxExtent properties on the map-Object?<br>
<br>
Regards,<br>
<br>
Marc<br>
<br>
Nicholas Efremov-Kendall schrieb:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi All,<br>
<br>
I&#39;m happily using map.getCenter in a conditional statement <br>
if( ! map.getCenter() ){<br>
sites.events.register(&#39;loadend&#39;, sites, function(){map.zoomToExtent(sites.getDataExtent())});<br>
map.setCenter(null, null);<br>
};<br>
<br>
which when my layer is loaded centers on the geometry in the map. This works great (thanks again, Jan!). The issue I have is when a single POI is loaded, the map zooms in all the way and I get the &quot;Mose OSM coming soon&quot; tiles which is not aesthetically pleasing. <br>

I&#39;m going to switch over to a NASA Landsatt, or perhaps an image layer as the base, but I still think this will be an issue. Is there anyway to constrain this, or to specify a minimum bounding box or zoom level to prevent this from happening? The alternative would be to just set the function on one of my static GML files, but I like this feature. Any suggestions on how to approach this?<br>

<br>
<br>
<br>
-- <br>
Nicholas Efremov-Kendall<br>
Fulbright Student 2009-2010, Ukraine<br>
</div></div><a href="mailto:nefremov@artsci.wustl.edu" target="_blank">nefremov@artsci.wustl.edu</a> &lt;mailto:<a href="mailto:nefremov@artsci.wustl.edu" target="_blank">nefremov@artsci.wustl.edu</a>&gt;<div class="im">
<br>
c/o Halyna Yerko<br>
Balzaka 92a, Kv 27<br>
02232<br>
Kyiv, Ukraine<br>
(mob) +380963576524<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Nicholas Efremov-Kendall<br>Fulbright Student 2009-2010, Ukraine<br><a href="mailto:nefremov@artsci.wustl.edu">nefremov@artsci.wustl.edu</a><br>c/o Halyna Yerko<br>Balzaka 92a, Kv 27<br>
02232<br>Kyiv, Ukraine<br>(mob) +380963576524<br>