fix: 修复天地图服务类WGS84加载错误的问题;三维服务使用单独的key

pull/6/head
cbwu 11 months ago
parent bbe84ec866
commit a0851e54a7

@ -2,7 +2,7 @@
* @Author: cbwu 504-wuchengbo@htsdfp.com
* @Date: 2024-03-07 14:15:35
* @LastEditors: cbwu
* @LastEditTime: 2024-04-12 09:22:20
* @LastEditTime: 2024-04-15 16:00:27
* @Description:
-->
<template>

@ -2,7 +2,7 @@
* @Author: cbwu 504-wuchengbo@htsdfp.com
* @Date: 2024-03-07 16:04:55
* @LastEditors: cbwu
* @LastEditTime: 2024-04-02 14:01:22
* @LastEditTime: 2024-04-15 16:06:06
* @Description:
*/
// 天地图影像服务
@ -29,6 +29,7 @@ enum TDTProjectionType {
}
//天地图token
const TDT_tk = '1c5b7cbf9da7d33b221f68c32b6a1791'
const TDT_tk3D = '910a4befdfd04d5423268b0aced82248'
// 服务域名
const tdtUrl = 'https://t{s}.tianditu.gov.cn'
// 服务负载子域
@ -54,7 +55,7 @@ export function getTDTProvider(
: new WebMercatorTilingScheme()
const tileMatrixLabels =
projectionType == TDTProjectionType.WGS84
? new Array(19).fill(1).map((v, i) => `${i}`)
? new Array(19).fill(1).map((v, i) => `${i + 1}`)
: undefined
const imageryProvider = new WebMapTileServiceImageryProvider({
//影像底图
@ -84,7 +85,7 @@ export function getTDTTerrainProvider() {
const url =
tdtUrl.replace('{s}', subdomains[i]) +
'/mapservice/swdx?T=elv_c&tk=' +
TDT_tk
TDT_tk3D
terrainUrls.push(url)
}

Loading…
Cancel
Save