[OpenLayers-Users] Limit tiles retrieved from a WMS to viewport extent

Christopher Schmidt crschmidt at metacarta.com
Thu Jan 28 16:14:09 EST 2010


On Thu, Jan 28, 2010 at 09:47:17PM +0100, Armin Burger wrote:
> Hi everybody
> 
> I noticed that after zooming in/out OL requests much more tiles from eg. 
> a WMS server than are needed to show in the map container/viewport. That 
> means also tiles really far away from the geographical area currently 
> visible on the map are downloaded. I understand that in most cases this 
> is a desired behaviour to pre-load tiles for panning at the same zoom 
> level.

 'buffer': 0 on your layer options will fix this.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list