I have installed leaflet to create a web site for consulting data created by firefighters in France.
I want to test the plugin leaflet.multitilelayer for defining a TileLayer in terms of several TileServer urls. I have tested this plugin with data of others: it works (the example is here : http://makina-corpus.com/blog/metier/2013/infrastructure-webmapping-minimaliste-partie-3-leaflet). But when I have tested with our data (with server of spatial data GeoServer and MapServer to create TMS), it doesn't work. It seems that the coordinates are note the good, because I have compared with the simple L.tilayer.
Here is our code :
var PLAN =
L.TileLayer.multi({
17: { // this layer is shown at zoomlevels between maxZoom of
// previous layer and 17 (ie 17)
url: 'http://xxx.XXX.XXX.XXX/geowebcache/service/tms/1.0.0/[our_data]/{z}/{x}/{y}.png',
},
19: { // this layer is shown at zoomlevels between minZoom and 19 (ie 18,19)
url: 'httpxxx.XXX.XXX.XXX/geowebcache/service/tms/1.0.0/[our_data]/{z}/{x}/{y}.png',
}
}, {
minZoom: 17,
maxZoom: 19,
});
When I use the command L.tileLayer
for these TMS, it works well.
Would anyone ever had this problem?