@@ -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,46 @@ 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+ Console . info ( `SPR style: ${ tile ?. style } ` ) ;
427+ Console . info ( `SPR baseURL: ${ tile ?. baseURL } ` ) ;
428+ Console . debug ( `SPR tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
429+ break ;
391430 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? (排除)
396431 Console . info ( `Munin style: ${ tile ?. style } ` ) ;
397432 switch ( settings . TileSet . Munin ) {
398433 case "CN" :
@@ -424,31 +459,74 @@ export default class GEOResourceManifest {
424459 Console . info ( `Munin baseURL: ${ tile ?. baseURL } ` ) ;
425460 Console . debug ( `Munin tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
426461 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;
462+ case "VECTOR_SPR_STANDARD" : // 67 (影响 1-6 级视图下的行政区域名称与资料显示版本)
463+ Console . info ( `Earth style: ${ tile ?. style } ` ) ;
464+ switch ( settings . TileSet . Earth ) {
465+ default :
466+ case "HYBRID" :
467+ case "AutoNavi" :
468+ 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 ;
469+ break ;
470+ case "Apple" :
471+ switch ( typeof tile . dataSet ) {
472+ case "undefined" :
473+ tile =
474+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
475+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
476+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
477+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
478+ tile ;
479+ break ;
480+ case "number" :
481+ tile =
482+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
483+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
484+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
485+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
486+ tile ;
487+ break ;
488+ }
489+ break ;
490+ }
491+ Console . info ( `Earth baseURL: ${ tile ?. baseURL } ` ) ;
492+ Console . debug ( `Earth tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
493+ break ;
494+ case "SPR_ASSET_METADATA" : // 78? (排除)
495+ case "VECTOR_SPR_POLAR" : // 79
496+ case "VECTOR_SPR_MODELS_OCCLUSION" : // 82? (排除)
497+ Console . info ( `SPR style: ${ tile ?. style } ` ) ;
498+ Console . info ( `SPR baseURL: ${ tile ?. baseURL } ` ) ;
499+ Console . debug ( `SPR tile: ${ JSON . stringify ( tile , null , 2 ) } ` ) ;
500+ break ;
501+ /*
502+ case "VECTOR_REALISTIC": // 18 逼真地图?
503+ case "VECTOR_COVERAGE": // 48 覆盖范围?
504+ case "VECTOR_LAND_COVER": // 54 土地覆盖?
505+ case "SMART_DATA_MODE": // 80 智能数据模式?
506+ case "VECTOR_TOPOGRAPHIC": // 83 地形图?
507+ case "VECTOR_ROAD_SELECTION": // 87 道路选区?
508+ case "VECTOR_REGION_METADATA": // 88 区域元数据?
509+ Console.info(`TEST style: ${tile?.style}`);
510+ 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;
511+ Console.info(`TEST baseURL: ${tile?.baseURL}`);
512+ break;
513+ */
514+ /*
515+ case "VECTOR_TRACKS": // 62 轨道?
516+ case "COARSE_LOCATION_POLYGONS": // 65 粗略位置多边形?
517+ case "VL_METADATA": // 70 VL 元数据?
518+ case "VL_DATA": // 71 VL 数据?
519+ case "PROACTIVE_APP_CLIP": // 72 主动式App剪辑?
520+ case "SMART_INTERFACE_SELECTION": // 76 智能界面选区?
521+ case "VECTOR_LIVE_DATA_UPDATES": // 85 实时数据更新?
522+ case "RAY_TRACING": // 89 光线追踪?
523+ case "VECTOR_CONTOURS": // 90 等高线?
524+ case "VMAP4_ELEVATION": // 92 VMAP4 高程?
525+ case "VMAP4_ELEVATION_POLAR": // 93 VMAP4 高程(极地)?
526+ case "CELLULAR_COVERAGE_PLMN": // 94 蜂窝覆盖 PLMN?
527+ case "UNUSED_99": // 99 未使用
528+ break;
529+ */
452530 default :
453531 Console . info ( `default style: ${ tile ?. style } ` ) ;
454532 /*
0 commit comments