[GIS] Add TileCache Schema Layer to Leaflet Map

leafletmapservertilecache

I am trying to get Leaflet to display a TileCache Schema tileset. One example:

http://example.com/tiles/Admin/06/000/000/357/000/000/158.png

As far as I can tell, Leaflet only supports TMS style tiling schemas such as:

http://a.tile.openstreetmap.org/15/16938/11166.png

I tried to find an extension of a L.tileLayer that supports the TileCache tiling schema, but no such luck.

Best Answer

Standard L.Tilelayer in leaflet supports TMS and tilecache outputs TMS. Don't forget to set the tms property to true.

example:

var grb =  L.tileLayer( "http://grb.agiv.be/geodiensten/raadpleegdiensten/geocache/tms/1.0.0/grb_bsk@GoogleMapsVL/{z}/{x}/{y}.png" , {
            tms: true
        });
Related Question