map provider supports TianDiTu

This commit is contained in:
MaysWind
2024-07-21 19:10:58 +08:00
parent daf73dc964
commit aae23c285e
11 changed files with 164 additions and 46 deletions
+23
View File
@@ -71,6 +71,29 @@ const leafletTileSources = {
defaultZoomLevel: 14,
website: 'https://tomtom.com',
attribution : '<a href="https://tomtom.com" class="external" target="_blank">&copy; 1992 - 2023 TomTom.</a>'
},
'tianditu': {
tileUrlFormat: 'https://t{s}.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}',
tileUrlSubDomains: '01234567',
tileUrlExtraParams: [
{
paramName: 'tk',
paramValueType: 'tianditu_key'
}
],
annotationUrlFormat: 'https://t{s}.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}',
annotationUrlSubDomains: '01234567',
annotationUrlExtraParams: [
{
paramName: 'tk',
paramValueType: 'tianditu_key'
}
],
minZoom: 1,
maxZoom: 18,
defaultZoomLevel: 14,
website: 'https://www.tianditu.gov.cn',
attribution : '<a href="https://www.tianditu.gov.cn" class="external" target="_blank">天地图</a>'
}
}