@@ -93,101 +93,11 @@ export default class GEOResourceManifest {
9393 //Console.warn(`Basic baseURL: ${tile?.baseURL}`);
9494 break ;
9595 case "RASTER_SATELLITE" : // 7 卫星地图(2D)
96- //Console.warn(`Satellite style: ${tile?.style}`);
97- switch ( settings . TileSet . Satellite ) {
98- case "HYBRID" :
99- default :
100- break ;
101- case "CN" :
102- 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 ;
103- break ;
104- case "XX" :
105- switch ( typeof tile . dataSet ) {
106- case "undefined" :
107- tile =
108- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
109- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
110- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
111- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
112- tile ;
113- break ;
114- case "number" :
115- tile =
116- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
117- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
118- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
119- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
120- tile ;
121- break ;
122- }
123- break ;
124- }
125- //Console.warn(`Satellite baseURL: ${tile?.baseURL}`);
126- break ;
12796 case "RASTER_SATELLITE_NIGHT" : // 33 卫星地图(2D/夜间)
128- //Console.warn(`Satellite style: ${tile?.style}`);
129- switch ( settings . TileSet . Satellite ) {
130- case "CN" :
131- 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 ;
132- break ;
133- case "HYBRID" :
134- case "XX" :
135- default :
136- switch ( typeof tile . dataSet ) {
137- case "undefined" :
138- tile =
139- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
140- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
141- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
142- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
143- tile ;
144- break ;
145- case "number" :
146- tile =
147- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
148- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
149- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
150- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
151- tile ;
152- break ;
153- }
154- break ;
155- }
156- //Console.warn(`Satellite baseURL: ${tile?.baseURL}`);
157- break ;
15897 case "RASTER_SATELLITE_DIGITIZE" : // 35 卫星地图(2D/数字化)
159- //Console.warn(`Satellite style: ${tile?.style}`);
160- switch ( settings . TileSet . Satellite ) {
161- case "CN" :
162- 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 ;
163- break ;
164- case "HYBRID" :
165- case "XX" :
166- default :
167- switch ( typeof tile . dataSet ) {
168- case "undefined" :
169- tile =
170- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
171- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
172- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
173- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
174- tile ;
175- break ;
176- case "number" :
177- tile =
178- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
179- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
180- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
181- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
182- tile ;
183- break ;
184- }
185- break ;
186- }
187- //Console.warn(`Satellite baseURL: ${tile?.baseURL}`);
188- break ;
18998 case "RASTER_SATELLITE_ASTC" : // 45 卫星地图(2D/ASTC)
19099 case "RASTER_SATELLITE_POLAR" : // 91 卫星地图(2D/极地)
100+ case "RASTER_SATELLITE_POLAR_NIGHT" : // 95 卫星地图(2D/极地/夜间)
191101 //Console.warn(`Satellite style: ${tile?.style}`);
192102 switch ( settings . TileSet . Satellite ) {
193103 case "HYBRID" :
@@ -219,37 +129,6 @@ export default class GEOResourceManifest {
219129 }
220130 //Console.warn(`Satellite baseURL: ${tile?.baseURL}`);
221131 break ;
222- case "RASTER_SATELLITE_POLAR_NIGHT" : // 95 卫星地图(2D/极地/夜间)
223- //Console.warn(`Satellite style: ${tile?.style}`);
224- switch ( settings . TileSet . Satellite ) {
225- case "CN" :
226- 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 ;
227- break ;
228- case "HYBRID" :
229- case "XX" :
230- default :
231- switch ( typeof tile . dataSet ) {
232- case "undefined" :
233- tile =
234- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
235- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
236- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
237- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
238- tile ;
239- break ;
240- case "number" :
241- tile =
242- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
243- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
244- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
245- caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
246- tile ;
247- break ;
248- }
249- break ;
250- }
251- //Console.warn(`Satellite baseURL: ${tile?.baseURL}`);
252- break ;
253132 case "VECTOR_TRAFFIC_SEGMENTS_FOR_RASTER" : // 2 交通状况分段(卫星地图:显示交通状况)?
254133 case "VECTOR_TRAFFIC_INCIDENTS_FOR_RASTER" : // 3 交通状况事件(卫星地图:显示交通状况)?
255134 case "VECTOR_TRAFFIC_SEGMENTS_AND_INCIDENTS_FOR_RASTER" : // 4 交通状况分段和事件(卫星地图:显示交通状况)?
0 commit comments