[OpenLayers-Dev] OpenLayers with TileCache issue

Eric Lemoine eric.c2c at gmail.com
Fri Sep 28 12:03:11 EDT 2007


Hello

I've started discussing this problem with Christopher on #openlayers.
Here is the issue:

My setup: OL 2.5 + TC 1.8 + MapServer.

On TC side my layer bbox is set to:
bbox=801784.866,83029.024,808074.859,87479.104

On OL side:
801784.866,83029.024,808074.859,87479.104

So it's exactly the same, right? ;-)

However, some of my map tiles do not render, I get pink tiles. Those
pink tiles are at the bottom of my map.

The bbox sent for one of those pink tiles is:
BBOX=801784.866,83029.02399999999,803591.0872468628,84835.24524686275

and TC complains with the following: An error occurred: couldn't
calculate tile index for layer <blabla> from
([801784.86600000004, 83029.02399999999, 803591.08724686282,
84835.245246862745])

If I manually change my BBOX 2nd value to 83029.024, the tile renders ok.

OL creates tiles that are outside the map bounds, which makes TC fail.

FWIW, if I use TC 1.9 and the extent_type=loose property, the pink
tiles go away. But I guess I abuse extent_type=loose to workaround a
problem in OL here.

What do you think? Am I doing someting wrong or is there an issue
somewhere in OL?

--
Eric



More information about the Dev mailing list