SOURCE

console 命令行工具 X clear

                    
>
console
    var country= L.tileLayer("http://t{s}.tianditu.cn/DataServer?T=img_c&X={x}&Y={y}&L={z}",{
//    http://t{s}.tianditu.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles", {
        subdomains: ["0", "1", "2", "3", "4", "5", "6", "7"],
        minZoom:1,
        maxZoom:14
    }); 
    this.map = L.map('map', {
        // crs:L.CRS.EPSG4326,
        center: [90, 120],
        zoom: 4
    });

    country.addTo(this.map);

    L.marker([0, 120],{title:"0, 120"}).addTo(this.map);
    L.marker([90, 120],{title:"90, 120"}).addTo(this.map);
    L.marker([45, 120],{title:"45, 120"}).addTo(this.map);
    L.marker([28, 120],{title:"28, 120"}).addTo(this.map);
    L.marker([-45, 120],{title:"-90, 120"}).addTo(this.map);
<div id="map" style="width:400px;height:400px;"></div>

本项目引用的自定义外部资源