sorry, above I posted the wrong solution (I do a lot of tests...), this is
the right one:

$.extend(PM.OL.Theme.olNativeThemes,
{
    create: function() {        
        this.themeList['vmapLayerWms2'] = this.createVmapWmsLayer2();
                this.themeList['vmapLayerWms'] = this.createVmapWmsLayer();
    },
    
    createVmapWmsLayer2: function() {
        var vmapLayerWms2 = new OpenLayers.Layer.WMS( "Openlayers WMS",
                                     
"http://localhost:8080/cgi-bin/tilecache211/tilecache.cgi?";,
                                      {
                                         LAYERS : "TEST3"},
                                                                                
{ sphericalMercator: true,
        projection: "EPSG:900913"}
                                                                                
                                                                                
                                     );
                                                                return 
vmapLayerWms2;    
                                                                          },
                                                                          
        createVmapWmsLayer: function() {                                        
  
                                                                         var 
vmapLayerWms = new OpenLayers.Layer.WMS( "Openlayers WMS2",
                                     
"http://localhost:8080/cgi-bin/tilecache211/tilecache.cgi?";,
                                      {
                                         LAYERS : "google-tiles"},
                                                                                
{ sphericalMercator: true,
        projection: "EPSG:900913"}
                                                                                
                                                                                
                                     );
                
                
                
     return vmapLayerWms;
        
    }

       
});



--
View this message in context: 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Tilcache-in-pmapper5-tp4025488p4025678.html
Sent from the pmapper-users -- p.mapper users mailing list mailing list archive 
at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to