Tilecache + GoogleMaps

classic Classic list List threaded Threaded
2 messages Options
ros
Reply | Threaded
Open this post in threaded view
|

Tilecache + GoogleMaps

ros
Hi all,

I'm trying to use Tilecache to serve ImageLayer and then display it on GoogleMaps similar to this: http://search.missouristate.edu/map/mobile/examples/tileoverlay.htm

My tilecache.cfg:

[basic]
debug=yes
type=ImageLayer
file=/home/html/vhosts/tilecache/test.png
srs=EPSG:900913
projection= +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over
bbox=3183721.654300025,-16359226.383120917,3183860.851285995,-16358297.240003694
maxresolution=156543.0339

JavaScript call server for tiles using such URL structure:
http://tilecache.dev-ls.co.uk/tilecache.cgi/1.0.0/basic/" + z + "/" + x + "/" + y + ".png

Tilecache returns black tiles ...

Appreciate any help

Thanks!
ros
Reply | Threaded
Open this post in threaded view
|

Re: Tilecache + GoogleMaps

ros
It works now :) Just in case someone have similar problem:

[basic]
debug=yes
type=ImageLayer
file=/home/html/vhosts/tilecache/test.png
srs=EPSG:900913
tms_type=google

# -- file
filebounds=111325.14286638486,111319.49079327357,3503549.843504374,3339584.723798207

# -- world
bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892