| | |
| | | import L from 'leaflet' |
| | | |
| | | import MapConfig from '@/conf/MapConfig' |
| | | |
| | | const tokenStr = 'tk=' + 'f1b72b5e7cb1175acddfa485f1bc9770' + '&' |
| | | |
| | | class CommonLayerLoad { |
| | | // 中国蓝色覆盖层 |
| | | loadBlueMap() { |
| | |
| | | |
| | | }) |
| | | } |
| | | |
| | | // 道路路 |
| | | loadNormalMap() { |
| | | return L.tileLayer('http://t0.tianditu.gov.cn/vec_c/wmts?' + tokenStr + |
| | |
| | | zoomOffset: 1 |
| | | }) |
| | | } |
| | | |
| | | // 道路标注 |
| | | loadNormalMapa() { |
| | | return L.tileLayer('http://t0.tianditu.gov.cn/cva_c/wmts?' + tokenStr + |
| | |
| | | |
| | | }) |
| | | } |
| | | |
| | | // 影像图 |
| | | loadImgMapm() { |
| | | return L.tileLayer('http://t0.tianditu.gov.cn/img_c/wmts?' + tokenStr + |
| | |
| | | zoomOffset: 1 |
| | | }) |
| | | } |
| | | |
| | | // 影像标注 |
| | | loadImgMapa() { |
| | | return L.tileLayer('http://t0.tianditu.gov.cn/cia_c/wmts?' + tokenStr + |
| | |
| | | zoomOffset: 1 |
| | | }) |
| | | } |
| | | |
| | | // 中石化内网影像图 |
| | | loadIntranetImgMap(token) { |
| | | return L.tileLayer('http://10.246.132.249:8080/OneMapServer/rest/services/base-tdt-image-globe/WMTS?token=' + token + '&' + |
| | |
| | | zoomOffset: 1 |
| | | }) |
| | | } |
| | | |
| | | // 中石化内网影像图标注 |
| | | loadIntranetImgMapCia(token) { |
| | | return L.tileLayer('http://10.246.132.249:8080/OneMapServer/rest/services/base-tdt-label-image/WMTS?token=' + token + '&' + |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | export default CommonLayerLoad |