[Tilecache] Adding layers to Openlayers

CaSC casc84ab at gmail.com
Wed Nov 12 06:18:50 EST 2008


I have now tilecache installed, and it works fine with a layer, but...how can
i insert more layers???

I have put this:

layer = new OpenLayers.Layer.WMS("Mundo_FondoOrto",
"../tilecache/tilecache.cgi?",
                          {layers: 'Mundo_FondoOrto', format: 'image/png'},
                          {'displayOutsideMaxExtent':true}
                    );
            map.addLayer(layer);
            layer = new OpenLayers.Layer.WMS("Mundo",
"../tilecache/tilecache.cgi?",
                          {layers: 'Mundo', format: 'image/png'},
                          {'displayOutsideMaxExtent':true}
                    );
            map.addLayer(layer);


And firebug show me that the layer "Mundo" dont works, only make request to
"Mundo_FondoOrto"
-- 
View this message in context: http://n2.nabble.com/Adding-layers-to-Openlayers-tp1489254p1489254.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list