[Tilecache] Problems with TileCache and self defined OL map parameters

"tschobber tschöbbi" tschobber at gmx.at
Wed Apr 29 02:38:01 EDT 2009


Nobody can help me on the issue below? :( Would very appreciate it if someone could help me ;)!

----------------------------------------------------------------------------
Hi TileCache users ;),

I'm using TileCache and I've defined a layer with self defined parameters in an OLmap.htm file like this one (the new parameter is 'src'):

var layer = new OpenLayers.Layer.WMS("Dynamic raster layer",
                "http://localhost/klima/testows.php?",
                {layers: 'raster', 'src': 'map_1.png', 'format':'image/png'},{visibility: false},{isBaseLayer: true});

Using TileCache I'm able to see A map but the 'map_1.png' is not shown but the default map that is defined in the map file (map_2.png). That means I'm not able to switch the values for parameter 'src' with TileCache. 
How am I able to do this? I'm using .php Mapscript (Mapserver) to dynamicly switch layers.

Hope you can help me!+

Here's my tilecache.cfg entry for this 

[klima]
type=WMSLayer
url= http://localhost/klima_austria/ows.php?
layers=raster
#src= topo.png, map_2.tif, map_1.png, map_1.tif, map_2.png
maxResolution = 420
srs=EPSG:31297
bbox = 91087.511, 251704.726, 707087.511, 594704.726
extension = png
resolutions=420.0, 210.0, 105.0, 52.5, 26.25, 13.125, 6.5625, 3.28125, 1.640625, 0.8203125, 0.41015625, 0.205078125, 0.1025390625, 0.05126953125, 0.025634765625, 0.0128173828125, 470.639002, 2406.250000
extension = png

best regards!


-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01



More information about the Tilecache mailing list