Hello list,
 
I've setup TileCache succesfully in my small test html (it only contains 2 WMS 
layers which are raster files). Until now this works fine, but now I want to do 
this in my production level application, and I can't make it work.It doesn't 
show any error, but the raster files are not shown, instead of them there 
appears pink tiles. I've got the same layers in both html files:
 
html test (is the one that comes with TileCache installation but customized to 
my data):
 
map = new OpenLayers.Map( $('map'), {'maxResolution': 360/512});
 
layer = new OpenLayers.Layer.WMS( "VMap0", 
"http://192.168.1.65/cgi-bin/tilecache-2.10/tilecache.py?";, {layers: 'orto0', 
format: 'image/png' },{isBaseLayer: true,projection: 'EPSG:23030',units: 'm'} );
layer.transitionEffect = 'resize';
map.addLayer(layer);
   
layer = new OpenLayers.Layer.WMS( "VMap1", 
"http://192.168.1.65/cgi-bin/tilecache-2.10/tilecache.py?";, {layers: 'orto1', 
format: 'image/png' },{isBaseLayer: true,projection: 'EPSG:23030',units: 'm'} );
layer.transitionEffect = 'resize';
map.addLayer(layer);
 
My production level html file:
 
var options = {projection: new OpenLayers.Projection("EPSG:23030"), units: 'm', 
maxExtent: new OpenLayers.Bounds(460000, 4710000, 610000, 
4820000),maxResolution: 'auto', controls: [
     new OpenLayers.Control.Navigation(),
     new OpenLayers.Control.PanZoomBar(),
     new OpenLayers.Control.LayerSwitcher(),
     new OpenLayers.Control.ScaleBar(),
     new OpenLayers.Control.KeyboardDefaults()
    ]};
   
   map = new OpenLayers.Map('map', options);
   
    
var wms = new OpenLayers.Layer.WMS("Ortofoto CAPV 
2006","http://192.168.1.65/cgi-bin/tilecache-2.10/tilecache.py?";, {layers: 
'orto0',format: 'image/png; mode=24bit',alpha : 'true',transparent: 
'true'},{isBaseLayer: true, projection: 'EPSG:23030',units: 'm'});
//Clone the layerfor the overview map
var jplOverview = wms.clone();

wms.transitionEffect = 'resize';  
   
map.addLayer(wms);
   
 wms = new OpenLayers.Layer.WMS("Ortofoto CAPV 2007",
"http://192.168.1.65/cgi-bin/tilecache-2.10/tilecache.py?";, {layers: 
'orto1',format: 'image/png; mode=24bit',alpha : 'true',transparent: 
'true'},{isBaseLayer: true, projection: 'EPSG:23030',units: 'm'});
wms.transitionEffect = 'resize';  
map.addLayer(wms);
 
Is there something that i have to configure with openlayers or maybe some 
controls are incompatible with TileCache.
 
Hope someone helps me. Thanks.

 

Un saludo,

 

··················································································


David Alda Fernández de Lezea

Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad

 

IKT

Granja Modelo s/n · 01192 · Arkaute (Araba)


··················································································
Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
··················································································
email: [email protected]                                web: www.ikt.es 
<http://www.ikt.es/> 
··················································································

<<logo.gif>>

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to