派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-01-05 77f7281ff7cee541aaa51339512e6443b7d89e42
src/components/mapmodules/CommonLayerLoad.js
@@ -4,7 +4,9 @@
import L from 'leaflet'
import MapConfig from '@/conf/MapConfig'
const tokenStr = 'tk=' + 'f1b72b5e7cb1175acddfa485f1bc9770' + '&'
class CommonLayerLoad {
    // 中国蓝色覆盖层
    loadBlueMap() {
@@ -15,6 +17,7 @@
        })
    }
    // 道路路
    loadNormalMap() {
        return L.tileLayer('http://t0.tianditu.gov.cn/vec_c/wmts?' + tokenStr +
@@ -24,6 +27,7 @@
            zoomOffset: 1
        })
    }
    // 道路标注
    loadNormalMapa() {
        return L.tileLayer('http://t0.tianditu.gov.cn/cva_c/wmts?' + tokenStr +
@@ -34,6 +38,7 @@
        })
    }
    // 影像图
    loadImgMapm() {
        return L.tileLayer('http://t0.tianditu.gov.cn/img_c/wmts?' + tokenStr +
@@ -43,6 +48,7 @@
            zoomOffset: 1
        })
    }
    // 影像标注
    loadImgMapa() {
        return L.tileLayer('http://t0.tianditu.gov.cn/cia_c/wmts?' + tokenStr +
@@ -52,6 +58,7 @@
            zoomOffset: 1
        })
    }
    // 中石化内网影像图
    loadIntranetImgMap(token) {
        return L.tileLayer('http://10.246.132.249:8080/OneMapServer/rest/services/base-tdt-image-globe/WMTS?token=' + token + '&' +
@@ -61,6 +68,7 @@
            zoomOffset: 1
        })
    }
    // 中石化内网影像图标注
    loadIntranetImgMapCia(token) {
        return L.tileLayer('http://10.246.132.249:8080/OneMapServer/rest/services/base-tdt-label-image/WMTS?token=' + token + '&' +
@@ -71,4 +79,5 @@
        })
    }
}
export default CommonLayerLoad