[OpenLayers-Users] In TMS layer,it display "lack of image".
crschmidt at metacarta.com
Sun Apr 13 09:08:23 EDT 2008
On Sun, Apr 13, 2008 at 11:11:07AM +0800, Yang Zhaohui wrote:
> Hello dear sir,
> I have a problem to consult you. I make a TMS demo, restrict the
> map to a specific bound, and use a maxResolution. My codes are as
> follows. But it display "lack of image"(some 256*256 red box with a
> cross) in the region where there are out of the bound. How to
> control it, and do not let it display "lack of image"? Using the
> parameter "maxResolution"? How to calculate the value of the
> "maxResolution" of a TMS layer? Thank you very much!
OpenLayers does not have the ability to load a subset of tiles
from a TMS layer: you get 'all or nothing'. If you control the
generation of your TMS tiles, you can change your maxExtent and
maxResolution on the server to match the ones used on the client, and
TMS will work.
More information about the Users