[Tilecache] Re: tilecache config

vmon valemunoz at gmail.com
Thu Mar 29 11:38:13 EDT 2012


sorry my code:
 	var x_left   = -112.888238;
	var y_bottom = -57.06133625;
	var x_right  = -7.419488000000001;
	var y_top    =  13.25116375;
	var v_maxResolution=0.07902398403828125;
	var v_numZoomLevels = 20;    
		
	 var options = {
      projection: new OpenLayers.Projection("EPSG:900913")
       ,displayProjection: new OpenLayers.Projection("EPSG:4326")
       ,units: "m"
       ,maxResolution: 156543.0339
       ,maxExtent:new
OpenLayers.Bounds(x_left,y_bottom,x_right,y_top).transform( new
OpenLayers.Projection("EPSG:4326"),  new
OpenLayers.Projection("EPSG:900913"))
  };
  	map = new OpenLayers.Map('map',options); 
  	
  	map.addControl(new OpenLayers.Control.LayerSwitcher());


WMS/google maps WORKS!

 layer = new OpenLayers.Layer.WMS( "maps",
        
"http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/tilecache/mapa.map",
{projection: new OpenLayers.Projection("EPSG:3857"),layers: 'mapa_layer',
Image:'image/png'} );
    
    var gsat = new OpenLayers.Layer.Google(
        "Google Satellite",
        {'sphericalMercator': true}
    );

WMS TIlecache/googlemaps Does not work

layer = new OpenLayers.Layer.WMS( "VMap0", 
                  "http://localhost/tilecache/tilecache.cgi?", {layers:
'mapa', format: 'image/png' } );

var gsat = new OpenLayers.Layer.Google(
        "Google Satellite",
        {'sphericalMercator': true}
    );

tilecache conf

[mapa]
type=WMS
url=http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/tilecache/mapa.map
layers=mapa_layer


RG
VM

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/tilecache-config-tp4668166p4668179.html
Sent from the TileCache mailing list archive at Nabble.com.


More information about the Tilecache mailing list