@@ -2015,6 +2015,8 @@ describe('maplibregl_WebMapV2', () => {
20152015 return Promise . resolve ( new Response ( layerData_CSV ) ) ;
20162016 } else if ( url . indexOf ( 'web/datas/144371940/content.json' ) > - 1 ) {
20172017 return Promise . resolve ( new Response ( JSON . stringify ( layerData_geojson [ 'LINE_GEOJSON' ] ) ) ) ;
2018+ } else if ( url . indexOf ( 'China.json' ) > - 1 ) {
2019+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
20182020 }
20192021 } ) ;
20202022 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
@@ -2076,6 +2078,8 @@ describe('maplibregl_WebMapV2', () => {
20762078 return Promise . resolve ( new Response ( layerData_CSV ) ) ;
20772079 } else if ( url . indexOf ( 'web/datas/144371940/content.json' ) > - 1 ) {
20782080 return Promise . resolve ( new Response ( JSON . stringify ( layerData_geojson [ 'LINE_GEOJSON' ] ) ) ) ;
2081+ } else if ( url . indexOf ( 'China.json' ) > - 1 ) {
2082+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
20792083 }
20802084 } ) ;
20812085 const map = {
@@ -2169,6 +2173,9 @@ describe('maplibregl_WebMapV2', () => {
21692173 if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
21702174 return Promise . resolve ( new Response ( styleJson ) ) ;
21712175 }
2176+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2177+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2178+ }
21722179 } ) ;
21732180 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
21742181 const callback = function ( ) {
@@ -2199,6 +2206,9 @@ describe('maplibregl_WebMapV2', () => {
21992206 if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
22002207 return Promise . resolve ( new Response ( styleJson ) ) ;
22012208 }
2209+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2210+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2211+ }
22022212 } ) ;
22032213 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
22042214 const callback = function ( data ) {
@@ -2237,6 +2247,8 @@ describe('maplibregl_WebMapV2', () => {
22372247 return Promise . resolve ( new Response ( layerData_CSV ) ) ;
22382248 } else if ( url . indexOf ( 'web/datas/144371940/content.json' ) > - 1 ) {
22392249 return Promise . resolve ( new Response ( JSON . stringify ( layerData_geojson [ 'LINE_GEOJSON' ] ) ) ) ;
2250+ } else if ( url . indexOf ( 'China.json' ) > - 1 ) {
2251+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
22402252 }
22412253 } ) ;
22422254 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
@@ -2706,6 +2718,12 @@ describe('maplibregl_WebMapV2', () => {
27062718 if ( url . indexOf ( '106007908/map.json' ) > - 1 ) {
27072719 return Promise . resolve ( new Response ( JSON . stringify ( qixiangLayer2 ) ) ) ;
27082720 }
2721+ if ( url . indexOf ( '106007908/map.json' ) > - 1 ) {
2722+ return Promise . resolve ( new Response ( JSON . stringify ( qixiangLayer2 ) ) ) ;
2723+ }
2724+ if ( url . indexOf ( 'T202007210600.json' ) > - 1 || url . indexOf ( 'T202007210700.json' ) > - 1 ) {
2725+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2726+ }
27092727 } ) ;
27102728 datavizWebmap = new WebMap (
27112729 '' ,
@@ -2766,6 +2784,9 @@ describe('maplibregl_WebMapV2', () => {
27662784 if ( url . indexOf ( '/map4548%40fl-new.json' ) > - 1 ) {
27672785 return Promise . resolve (
27682786 new Response ( JSON . stringify ( {
2787+ prjCoordSys : {
2788+ epsgCode : '3857'
2789+ } ,
27692790 bounds : {
27702791 top : 5178663.047080055 ,
27712792 left : 328182.9260637246 ,
@@ -2819,6 +2840,9 @@ describe('maplibregl_WebMapV2', () => {
28192840 if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
28202841 return Promise . resolve ( new Response ( styleJson ) ) ;
28212842 }
2843+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2844+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2845+ }
28222846 } ) ;
28232847 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
28242848 const callback = function ( ) {
@@ -2862,6 +2886,9 @@ describe('maplibregl_WebMapV2', () => {
28622886 } ) ;
28632887 return Promise . resolve ( new Response ( JSON . stringify ( nextStyleJSON ) ) ) ;
28642888 }
2889+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2890+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2891+ }
28652892 } ) ;
28662893 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
28672894 const callback = function ( ) {
@@ -2933,6 +2960,9 @@ describe('maplibregl_WebMapV2', () => {
29332960 if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
29342961 return Promise . resolve ( new Response ( styleJson ) ) ;
29352962 }
2963+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2964+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2965+ }
29362966 } ) ;
29372967 datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
29382968 const callback = function ( ) {
@@ -2971,6 +3001,9 @@ describe('maplibregl_WebMapV2', () => {
29713001 if ( url . indexOf ( '106007908/map.json' ) > - 1 ) {
29723002 return Promise . resolve ( new Response ( JSON . stringify ( tileLayerMap ) ) ) ;
29733003 }
3004+ if ( url . indexOf ( 'base/resources/img/baiduTileTest.png' ) > - 1 || url . indexOf ( 'China.json' ) > - 1 ) {
3005+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
3006+ }
29743007 } ) ;
29753008 datavizWebmap = new WebMap (
29763009 '' ,
@@ -3019,6 +3052,9 @@ describe('maplibregl_WebMapV2', () => {
30193052 if ( url . indexOf ( 'web/datas/1184572358/content.json' ) > - 1 ) {
30203053 return Promise . resolve ( new Response ( layerData_CSV ) ) ;
30213054 }
3055+ if ( url . indexOf ( 'China_Dark.json' ) > - 1 || url . indexOf ( 'China.json' ) > - 1 ) {
3056+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
3057+ }
30223058 } ) ;
30233059 datavizWebmap = new WebMap (
30243060 '' ,
0 commit comments