[OpenLayers-Dev] tile problem

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 6 11:53:50 EST 2007


On Tue, Feb 06, 2007 at 05:21:15PM +0100, Lars Schrader wrote:
> Hello,
> 
> how can I change OpenLayers to get only one tile? 
> I have changed the following things:
> 
> buffer=0  under ../OpenLayers/lib/OpenLayers/Layer/Grid.js
> 
> OpenLayers.Map.TILE_WIDTH = 640; to the viewSize of the map
> OpenLayers.Map.TILE_HEIGHT =320; to the viewSize of the map
> under ../OpenLayers/lib/OpenLayers/Map.js
> 
> Now I get 4 tiles, because the function _initTiles under Grid.js
> don?t create less than 4 tiles.
> 
> Is there any easy way to solve the problem, or is it necessary to
> change the function?

This should be fixed/changed in the latest SVN. Are you using SVN, or an 
older release?  

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list