@@ -475,12 +475,11 @@ export default class GEOResourceManifest {
475475 //Console.warn(`Munin style: ${tile?.style}`);
476476 switch ( settings . TileSet . Munin ) {
477477 case "HYBRID" :
478- break ;
479478 case "CN" :
479+ default :
480480 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 ;
481481 break ;
482482 case "XX" :
483- default :
484483 switch ( typeof tile . dataSet ) {
485484 case "undefined" :
486485 tile =
@@ -535,16 +534,105 @@ export default class GEOResourceManifest {
535534 //Console.warn(`Munin baseURL: ${tile?.baseURL}`);
536535 break ;
537536 case "VECTOR_SPR_STANDARD" : // 67
538- case "SPR_ASSET_METADATA" : // 78?
537+ //Console.warn(`Munin style: ${tile?.style}`);
538+ switch ( settings . TileSet . Munin ) {
539+ case "HYBRID" :
540+ case "CN" :
541+ default :
542+ 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 ;
543+ break ;
544+ case "XX" :
545+ switch ( typeof tile . dataSet ) {
546+ case "undefined" :
547+ tile =
548+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
549+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
550+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
551+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
552+ tile ;
553+ break ;
554+ case "number" :
555+ tile =
556+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
557+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
558+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
559+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
560+ tile ;
561+ break ;
562+ }
563+ break ;
564+ }
565+ //Console.warn(`Munin baseURL: ${tile?.baseURL}`);
566+ break ;
567+ case "SPR_ASSET_METADATA" : // 78? (排除)
568+ //Console.warn(`Munin style: ${tile?.style}`);
569+ switch ( settings . TileSet . Munin ) {
570+ case "CN" :
571+ 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 ;
572+ break ;
573+ case "HYBRID" :
574+ case "XX" :
575+ default :
576+ switch ( typeof tile . dataSet ) {
577+ case "undefined" :
578+ tile =
579+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
580+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
581+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
582+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
583+ tile ;
584+ break ;
585+ case "number" :
586+ tile =
587+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
588+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
589+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
590+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
591+ tile ;
592+ break ;
593+ }
594+ break ;
595+ }
596+ //Console.warn(`Munin baseURL: ${tile?.baseURL}`);
597+ break ;
539598 case "VECTOR_SPR_POLAR" : // 79
540- case "VECTOR_SPR_MODELS_OCCLUSION" : // 82?
541599 //Console.warn(`Munin style: ${tile?.style}`);
542600 switch ( settings . TileSet . Munin ) {
543601 case "HYBRID" :
602+ case "CN" :
603+ default :
604+ 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 ;
605+ break ;
606+ case "XX" :
607+ switch ( typeof tile . dataSet ) {
608+ case "undefined" :
609+ tile =
610+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
611+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size ) ||
612+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale ) ||
613+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style ) ||
614+ tile ;
615+ break ;
616+ case "number" :
617+ tile =
618+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
619+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . size === tile . size && i . dataSet === tile . dataSet ) ||
620+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . scale === tile . scale && i . dataSet === tile . dataSet ) ||
621+ caches ?. XX ?. tileSet ?. find ( i => i . style === tile . style && i . dataSet === tile . dataSet ) ||
622+ tile ;
623+ break ;
624+ }
544625 break ;
626+ }
627+ //Console.warn(`Munin baseURL: ${tile?.baseURL}`);
628+ break ;
629+ case "VECTOR_SPR_MODELS_OCCLUSION" : // 82? (排除)
630+ //Console.warn(`Munin style: ${tile?.style}`);
631+ switch ( settings . TileSet . Munin ) {
545632 case "CN" :
546633 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 ;
547634 break ;
635+ case "HYBRID" :
548636 case "XX" :
549637 default :
550638 switch ( typeof tile . dataSet ) {
0 commit comments