tilecache + google:

http://dev.openlayers.org/sandbox/crschmidt/google/examples/google-factbook-tc.html

proj4 text on the server:

+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 [EMAIL PROTECTED] +no_defs

(from last question on http://proj.maptools.org/faq.html)

TileCache config on the server: 

[factbook-overlay]
type=WMSLayer
url=http://localhost/cgi-bin/mapserv?transparent=true&map=/www/freemap.in/world/map/factbooktrans.map
layers=factbook
bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892
maxResolution=156543.0339
srs=EPSG:54004
extent_type=loose # this is needed for the wrapDateLine stuff.

As you can see on the example, both TMS and WMS work fine. 

This code is not in trunk yet. It's using the GoogleMercator branch,
which means that when you 'setCenter', you do it in projected
coordinates, not in lonlat. However, it does demonstrate that it's
possible to do tilecache over google with no changes to TileCache, for
those of you who might be interested in such a thing.

This should be in 2.5.

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to