Services tuilés Aigle avec les données de RennesMetropole : TMS & PVCI
Code source:
var geoRennesMetropolePlanOptions = { minZoom: 0, maxZoom: res.length - 1, //detectRetina: true, continuousWorld: true, // if not set to true, will only load positive tiles //tms: true, attribution: 'Orthophotographie 2011 : Référentiel voies et adresses : Rennes Métropole' }; var geoRennesMetropolePlan = new L.TileLayer('http://geo.rennesmetropole.fr/tms/4564/PVCI/{z}/{x}/{y}.png', geoRennesMetropolePlanOptions); // alter getTileUrl because Y axis is inverted (TMS profile is locale) geoRennesMetropolePlan.getTileUrl = function (tilePoint, zoom) { console.log(tilePoint); var toRet; toRet = L.Util.template(this._url, L.Util.extend({ "z":this._getZoomForUrl(), x:tilePoint.x, y:-tilePoint.y - 1 }, this._urlParams)); return toRet; } map.addLayer(geoRennesMetropolePlan); //var geoRennesMetropoleOrthoAttribution = 'Orthophotographie 2011 : E-mégalis et Collectivités Territoriales bretonnes, Référentiel voies et adresses : Rennes Métropole'; var geoRennesMetropoleOrthoOptions = { minZoom: 0, maxZoom: res.length - 1, //detectRetina: true, continuousWorld: true, // if not set to true, will only load positive tiles //tms: true, attribution: 'Orthophotographie 2011 :Référentiel voies et adresses : Rennes Métropole' }; var geoRennesMetropoleOrtho = new L.TileLayer('http://www.geo.rennesmetropole.fr/tms/4563/ORTHO2011/{z}/{x}/{y}.png', geoRennesMetropoleOrthoOptions); // alter getTileUrl because Y axis is inverted (TMS profile is locale) geoRennesMetropoleOrtho.getTileUrl = function (tilePoint, zoom) { console.log(tilePoint); var toRet; toRet = L.Util.template(this._url, L.Util.extend({ "z":this._getZoomForUrl(), x:tilePoint.x, y:-tilePoint.y - 1 }, this._urlParams)); return toRet; }