the tile type is vec_w
CRS is default
// tile
L.TileLayer.TdtLayer = L.TileLayer.extend({
getTileUrl: function (coords) {
var layerType = "w"
return "http://t0.tianditu.cn/" +
"vec_" + layerType +
"/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&" +
"TILEMATRIXSET=" + layerType + "&FORMAT=tiles&TILECOL=" +
coords.x + "&TILEROW=" +
coords.y + "&TILEMATRIX=" + coords.z;
}
});
L.tileLayer.tdtLayer = function (options) {
return new L.TileLayer.TdtLayer(null, options)
}
var map = L.map("map", {
center: [
31.90059,
120.584663
],
zoom: 1
});
var tdtTile = L.tileLayer.tdtLayer({
layerType: "vec",
tms: true
});
map.addLayer(tdtTile);
map.on("click", function (e) {
console.log(e.latlng)
})
are all normal
2:
vec_c
CRS
3:
vec_c
CRSL.CRS.EPSG4326
the bosses passing by help to see how to solve this problem, and the map disorder problem in case 3 can be fixed.