[OpenLayers-Dev] tile problem

Lars Schrader lars.schrader at web.de
Tue Feb 6 11:21:15 EST 2007


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?

Greetings, Lars



More information about the Dev mailing list