@@ -78,27 +78,29 @@ export default class GEOResourceManifest {
7878 tileSet = tileSet
7979 . map ( ( tile , index ) => {
8080 switch ( tile . style ) {
81- //case "VECTOR_STANDARD": // 1 标准地图
82- //case "RASTER_TERRAIN": // 8 地貌与地势(绿地/城市/水体/山地不同颜色的区域)
83- //case "VECTOR_BUILDINGS": // 11 建筑模型(3D/白模)
84- //case "VECTOR_ROADS": // 20 道路(卫星地图:显示标签)
85- //case "VECTOR_VENUES": // 30 室内地图
86- //case "VECTOR_TRANSIT": // 37 公共交通
87- //case "VECTOR_ROAD_NETWORK": // 53 道路网络
88- //case "VECTOR_TRANSIT_SELECTION": // 47 公共交通选区?
89- //case "VECTOR_STREET_LANDMARKS": // 64 街道地标?
90- //case "VECTOR_BUILDINGS_V2": // 73 建筑模型V2(3D/上色)
91- //Console.info(`Basic style: ${tile?.style}`);
92- //tile = caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.dataSet === tile.dataSet)) || tile;
93- //Console.info(`Basic baseURL: ${tile?.baseURL}`);
94- //break;
81+ /*
82+ case "VECTOR_STANDARD": // 1 标准地图
83+ case "RASTER_TERRAIN": // 8 地貌与地势(绿地/城市/水体/山地不同颜色的区域)
84+ case "VECTOR_BUILDINGS": // 11 建筑模型(3D/白模)
85+ case "VECTOR_ROADS": // 20 道路(卫星地图:显示标签)
86+ case "VECTOR_VENUES": // 30 室内地图
87+ case "VECTOR_TRANSIT": // 37 公共交通
88+ case "VECTOR_ROAD_NETWORK": // 53 道路网络
89+ case "VECTOR_TRANSIT_SELECTION": // 47 公共交通选区?
90+ case "VECTOR_STREET_LANDMARKS": // 64 街道地标?
91+ case "VECTOR_BUILDINGS_V2": // 73 建筑模型V2(3D/上色)
92+ Console.info(`Basic style: ${tile?.style}`);
93+ tile = caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.dataSet === tile.dataSet)) || tile;
94+ Console.info(`Basic baseURL: ${tile?.baseURL}`);
95+ break;
96+ */
9597 case "RASTER_SATELLITE" : // 7 卫星地图(2D)
9698 case "RASTER_SATELLITE_NIGHT" : // 33 卫星地图(2D/夜间)
9799 case "RASTER_SATELLITE_DIGITIZE" : // 35 卫星地图(2D/数字化)
98100 case "RASTER_SATELLITE_ASTC" : // 45 卫星地图(2D/ASTC)
99101 case "RASTER_SATELLITE_POLAR" : // 91 卫星地图(2D/极地)
100102 case "RASTER_SATELLITE_POLAR_NIGHT" : // 95 卫星地图(2D/极地/夜间)
101- // Console.info(`Satellite style: ${tile?.style}`);
103+ Console . info ( `Satellite style: ${ tile ?. style } ` ) ;
102104 switch ( settings . TileSet . Satellite ) {
103105 case "HYBRID" :
104106 default :
@@ -127,19 +129,19 @@ export default class GEOResourceManifest {
127129 }
128130 break ;
129131 }
130- // Console.info(`Satellite baseURL: ${tile?.baseURL}`);
132+ Console . info ( `Satellite baseURL: ${ tile ?. baseURL } ` ) ;
131133 break ;
132- //case "VECTOR_TRAFFIC_SEGMENTS_FOR_RASTER": // 2 交通状况分段(卫星地图:显示交通状况)?
133- // case "VECTOR_TRAFFIC_INCIDENTS_FOR_RASTER ": // 3 交通状况事件 (卫星地图:显示交通状况)?
134- // case "VECTOR_TRAFFIC_SEGMENTS_AND_INCIDENTS_FOR_RASTER ": // 4 交通状况分段和事件 (卫星地图:显示交通状况)?
135- // case "VECTOR_TRAFFIC ": // 12 交通状况
136- // case "VECTOR_TRAFFIC_SKELETON ": // 22 交通状况骨架(卫星地图:显示交通状况)
137- // case "VECTOR_TRAFFIC_WITH_GREEN ": // 25 交通状况 (卫星地图:显示绿灯)?
138- // case "VECTOR_TRAFFIC_STATIC ": // 26 交通状况静态 ?
139- // case "VECTOR_TRAFFIC_SKELETON_WITH_HISTORICAL ": // 28 交通状况骨架(卫星地图:显示历史交通状况) ?
140- // case "VECTOR_TRAFFIC_V2 ": // 86 交通状况V2
141- //Console.info(`Traffic style: ${tile?.style}`);
142- /*
134+ /*
135+ case "VECTOR_TRAFFIC_SEGMENTS_FOR_RASTER ": // 2 交通状况分段 (卫星地图:显示交通状况)?
136+ case "VECTOR_TRAFFIC_INCIDENTS_FOR_RASTER ": // 3 交通状况事件 (卫星地图:显示交通状况)?
137+ case "VECTOR_TRAFFIC_SEGMENTS_AND_INCIDENTS_FOR_RASTER ": // 4 交通状况分段和事件(卫星地图:显示交通状况)?
138+ case "VECTOR_TRAFFIC ": // 12 交通状况
139+ case "VECTOR_TRAFFIC_SKELETON ": // 22 交通状况骨架 (卫星地图:显示交通状况)
140+ case "VECTOR_TRAFFIC_WITH_GREEN ": // 25 交通状况(卫星地图:显示绿灯) ?
141+ case "VECTOR_TRAFFIC_STATIC ": // 26 交通状况静态 ?
142+ case "VECTOR_TRAFFIC_SKELETON_WITH_HISTORICAL ": // 28 交通状况骨架(卫星地图:显示历史交通状况)?
143+ case "VECTOR_TRAFFIC_V2": // 86 交通状况V2
144+ Console.info(`Traffic style: ${tile?.style}`);
143145 switch (settings.TileSet.Traffic) {
144146 case "HYBRID":
145147 default:
@@ -168,18 +170,18 @@ export default class GEOResourceManifest {
168170 }
169171 break;
170172 }
171- */
172173 //Console.info(`Traffic baseURL: ${tile?.baseURL}`);
173174 //break;
174- //case "VECTOR_POI": // 13 兴趣点
175- //case "VECTOR_STREET_POI": // 56 街道兴趣点
176- //case "VECTOR_POI_V2": // 68 兴趣点V2
177- //case "VECTOR_POLYGON_SELECTION": // 69 多边形选区(兴趣点)
178- //case "POI_BUSYNESS": // 74 兴趣点繁忙程度?
179- //case "POI_DP_BUSYNESS": // 75 兴趣点DP繁忙程度?
180- //case "VECTOR_POI_V2_UPDATE": // 84 兴趣点V2更新
181- //Console.info(`POI style: ${tile?.style}`);
182- /*
175+ */
176+ /*
177+ case "VECTOR_POI": // 13 兴趣点
178+ case "VECTOR_STREET_POI": // 56 街道兴趣点
179+ case "VECTOR_POI_V2": // 68 兴趣点V2
180+ case "VECTOR_POLYGON_SELECTION": // 69 多边形选区(兴趣点)
181+ case "POI_BUSYNESS": // 74 兴趣点繁忙程度?
182+ case "POI_DP_BUSYNESS": // 75 兴趣点DP繁忙程度?
183+ case "VECTOR_POI_V2_UPDATE": // 84 兴趣点V2更新
184+ Console.info(`POI style: ${tile?.style}`);
183185 switch (settings.TileSet.POI) {
184186 case "HYBRID":
185187 default:
@@ -208,9 +210,9 @@ export default class GEOResourceManifest {
208210 }
209211 break;
210212 }
211- */
212- //Console.info(`POI baseURL: ${tile?.baseURL}`) ;
213- //break;
213+ Console.info(`POI baseURL: ${tile?.baseURL}`);
214+ break ;
215+ */
214216 /*
215217 case "SPUTNIK_METADATA": // 14 卫星地图(3D/俯瞰)元数据
216218 case "SPUTNIK_C3M": // 15 卫星地图(3D/俯瞰)C3模型
@@ -248,6 +250,8 @@ export default class GEOResourceManifest {
248250 Console.info(`Satellite baseURL: ${tile?.baseURL}`);
249251 Console.debug(`Satellite tile: ${JSON.stringify(tile, null, 2)}`);
250252 break;
253+ */
254+ /*
251255 case "SPUTNIK_VECTOR_BORDER": // 34 卫星地图(3D/俯瞰)边界(决定能否显示地球模型)
252256 Console.info(`Satellite style: ${tile?.style}`);
253257 switch ("HYBRID" ?? settings.TileSet.Satellite) {
@@ -384,15 +388,43 @@ export default class GEOResourceManifest {
384388 Console . debug ( `Flyover tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
385389 break ;
386390 case "MUNIN_METADATA" : // 57 四处看看 元数据
387- //case "VECTOR_SPR_MERCATOR": // 58
388- //case "VECTOR_SPR_MODELS": // 59
389- //case "VECTOR_SPR_MATERIALS": // 60
390- //case "VECTOR_SPR_METADATA": // 61
391+ Console . info ( `Munin style: ${ tile ?. style } ` ) ;
392+ switch ( "XX" ?? settings . TileSet . Munin ) {
393+ case "CN" :
394+ tile = caches ?. CN ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) || caches ?. CN ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) || caches ?. CN ?. tileSet ?. find ( i => i . style === tile . style ) || tile ;
395+ break ;
396+ case "HYBRID" :
397+ case "XX" :
398+ default :
399+ switch ( typeof tile . dataSet ) {
400+ case "undefined" :
401+ tile =
402+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
403+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
404+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
405+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
406+ tile ;
407+ break ;
408+ case "number" :
409+ tile =
410+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
411+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
412+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
413+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
414+ tile ;
415+ break ;
416+ }
417+ break ;
418+ }
419+ Console . info ( `Munin baseURL: ${ tile ?. baseURL } ` ) ;
420+ Console . debug ( `Munin tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
421+ break ;
422+ case "VECTOR_SPR_MERCATOR" : // 58
423+ case "VECTOR_SPR_MODELS" : // 59
424+ case "VECTOR_SPR_MATERIALS" : // 60
425+ case "VECTOR_SPR_METADATA" : // 61
426+ break ;
391427 case "VECTOR_SPR_ROADS" : // 66 (卫星图下的道路网格和四处看看可用性)
392- case "VECTOR_SPR_STANDARD" : // 67 (影响 1-6 级视图下的行政区域名称与资料显示版本)
393- //case "SPR_ASSET_METADATA": // 78? (排除)
394- //case "VECTOR_SPR_POLAR": // 79
395- //case "VECTOR_SPR_MODELS_OCCLUSION": // 82? (排除)
396428 Console . info ( `Munin style: ${ tile ?. style } ` ) ;
397429 switch ( settings . TileSet . Munin ) {
398430 case "CN" :
@@ -424,31 +456,71 @@ export default class GEOResourceManifest {
424456 Console . info ( `Munin baseURL: ${ tile ?. baseURL } ` ) ;
425457 Console . debug ( `Munin tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
426458 break ;
427- //case "VECTOR_REALISTIC": // 18 逼真地图?
428- //case "VECTOR_COVERAGE": // 48 覆盖范围?
429- //case "VECTOR_LAND_COVER": // 54 土地覆盖?
430- //case "SMART_DATA_MODE": // 80 智能数据模式?
431- //case "VECTOR_TOPOGRAPHIC": // 83 地形图?
432- //case "VECTOR_ROAD_SELECTION": // 87 道路选区?
433- //case "VECTOR_REGION_METADATA": // 88 区域元数据?
434- //Console.info(`TEST style: ${tile?.style}`);
435- //tile = caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.dataSet === tile.dataSet)) || tile;
436- //Console.info(`TEST baseURL: ${tile?.baseURL}`);
437- //break;
438- //case "VECTOR_TRACKS": // 62 轨道?
439- //case "COARSE_LOCATION_POLYGONS": // 65 粗略位置多边形?
440- //case "VL_METADATA": // 70 VL 元数据?
441- //case "VL_DATA": // 71 VL 数据?
442- //case "PROACTIVE_APP_CLIP": // 72 主动式App剪辑?
443- //case "SMART_INTERFACE_SELECTION": // 76 智能界面选区?
444- //case "VECTOR_LIVE_DATA_UPDATES": // 85 实时数据更新?
445- //case "RAY_TRACING": // 89 光线追踪?
446- //case "VECTOR_CONTOURS": // 90 等高线?
447- //case "VMAP4_ELEVATION": // 92 VMAP4 高程?
448- //case "VMAP4_ELEVATION_POLAR": // 93 VMAP4 高程(极地)?
449- //case "CELLULAR_COVERAGE_PLMN": // 94 蜂窝覆盖 PLMN?
450- //case "UNUSED_99": // 99 未使用
451- //break;
459+ case "VECTOR_SPR_STANDARD" : // 67 (影响 1-6 级视图下的行政区域名称与资料显示版本)
460+ Console . info ( `Earth style: ${ tile ?. style } ` ) ;
461+ switch ( settings . TileSet . Earth ) {
462+ case "HYBRID" :
463+ case "CN" :
464+ default :
465+ tile = caches ?. CN ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) || caches ?. CN ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) || caches ?. CN ?. tileSet ?. find ( i => i . style === tile . style ) || tile ;
466+ break ;
467+ case "XX" :
468+ switch ( typeof tile . dataSet ) {
469+ case "undefined" :
470+ tile =
471+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
472+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
473+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
474+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
475+ tile ;
476+ break ;
477+ case "number" :
478+ tile =
479+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
480+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
481+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
482+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
483+ tile ;
484+ break ;
485+ }
486+ break ;
487+ }
488+ Console . info ( `Earth baseURL: ${ tile ?. baseURL } ` ) ;
489+ Console . debug ( `Earth tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
490+ break ;
491+ case "SPR_ASSET_METADATA" : // 78? (排除)
492+ case "VECTOR_SPR_POLAR" : // 79
493+ case "VECTOR_SPR_MODELS_OCCLUSION" : // 82? (排除)
494+ break ;
495+ /*
496+ case "VECTOR_REALISTIC": // 18 逼真地图?
497+ case "VECTOR_COVERAGE": // 48 覆盖范围?
498+ case "VECTOR_LAND_COVER": // 54 土地覆盖?
499+ case "SMART_DATA_MODE": // 80 智能数据模式?
500+ case "VECTOR_TOPOGRAPHIC": // 83 地形图?
501+ case "VECTOR_ROAD_SELECTION": // 87 道路选区?
502+ case "VECTOR_REGION_METADATA": // 88 区域元数据?
503+ Console.info(`TEST style: ${tile?.style}`);
504+ tile = caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.size === tile.size && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.scale === tile.scale && i.dataSet === tile.dataSet)) || caches?.XX?.tileSet?.find(i => (i.style === tile.style && i.dataSet === tile.dataSet)) || tile;
505+ Console.info(`TEST baseURL: ${tile?.baseURL}`);
506+ break;
507+ */
508+ /*
509+ case "VECTOR_TRACKS": // 62 轨道?
510+ case "COARSE_LOCATION_POLYGONS": // 65 粗略位置多边形?
511+ case "VL_METADATA": // 70 VL 元数据?
512+ case "VL_DATA": // 71 VL 数据?
513+ case "PROACTIVE_APP_CLIP": // 72 主动式App剪辑?
514+ case "SMART_INTERFACE_SELECTION": // 76 智能界面选区?
515+ case "VECTOR_LIVE_DATA_UPDATES": // 85 实时数据更新?
516+ case "RAY_TRACING": // 89 光线追踪?
517+ case "VECTOR_CONTOURS": // 90 等高线?
518+ case "VMAP4_ELEVATION": // 92 VMAP4 高程?
519+ case "VMAP4_ELEVATION_POLAR": // 93 VMAP4 高程(极地)?
520+ case "CELLULAR_COVERAGE_PLMN": // 94 蜂窝覆盖 PLMN?
521+ case "UNUSED_99": // 99 未使用
522+ break;
523+ */
452524 default :
453525 Console . info ( `default style: ${ tile ?. style } ` ) ;
454526 /*
0 commit comments