[OpenLayers-Users] bug in OpenLayers?

Christopher Schmidt crschmidt at metacarta.com
Fri Oct 12 10:25:23 EDT 2007


On Fri, Oct 12, 2007 at 04:19:36PM +0200, Bart van den Eijnden (OSGIS) wrote:
> So it seems zooming outside of the maxExtent results in problems? Or are we
> missing something? TIA.

I'm not sure if I missed something, but:

   if (!this.center && !this.isValidLonLat(lonlat)) {
       lonlat = this.maxExtent.getCenterLonLat();
   } 

If the lonlat isn't valid, zooming in on the lonlat will scoot you back
to the middle of the map. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list