@@ -2015,6 +2015,8 @@ describe('maplibregl_WebMapV2', () => {
2015
2015
return Promise . resolve ( new Response ( layerData_CSV ) ) ;
2016
2016
} else if ( url . indexOf ( 'web/datas/144371940/content.json' ) > - 1 ) {
2017
2017
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 ( { } ) ) ) ;
2018
2020
}
2019
2021
} ) ;
2020
2022
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
@@ -2076,6 +2078,8 @@ describe('maplibregl_WebMapV2', () => {
2076
2078
return Promise . resolve ( new Response ( layerData_CSV ) ) ;
2077
2079
} else if ( url . indexOf ( 'web/datas/144371940/content.json' ) > - 1 ) {
2078
2080
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 ( { } ) ) ) ;
2079
2083
}
2080
2084
} ) ;
2081
2085
const map = {
@@ -2169,6 +2173,9 @@ describe('maplibregl_WebMapV2', () => {
2169
2173
if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
2170
2174
return Promise . resolve ( new Response ( styleJson ) ) ;
2171
2175
}
2176
+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2177
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2178
+ }
2172
2179
} ) ;
2173
2180
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
2174
2181
const callback = function ( ) {
@@ -2199,6 +2206,9 @@ describe('maplibregl_WebMapV2', () => {
2199
2206
if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
2200
2207
return Promise . resolve ( new Response ( styleJson ) ) ;
2201
2208
}
2209
+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2210
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2211
+ }
2202
2212
} ) ;
2203
2213
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
2204
2214
const callback = function ( data ) {
@@ -2237,6 +2247,8 @@ describe('maplibregl_WebMapV2', () => {
2237
2247
return Promise . resolve ( new Response ( layerData_CSV ) ) ;
2238
2248
} else if ( url . indexOf ( 'web/datas/144371940/content.json' ) > - 1 ) {
2239
2249
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 ( { } ) ) ) ;
2240
2252
}
2241
2253
} ) ;
2242
2254
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
@@ -2706,6 +2718,12 @@ describe('maplibregl_WebMapV2', () => {
2706
2718
if ( url . indexOf ( '106007908/map.json' ) > - 1 ) {
2707
2719
return Promise . resolve ( new Response ( JSON . stringify ( qixiangLayer2 ) ) ) ;
2708
2720
}
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
+ }
2709
2727
} ) ;
2710
2728
datavizWebmap = new WebMap (
2711
2729
'' ,
@@ -2766,6 +2784,9 @@ describe('maplibregl_WebMapV2', () => {
2766
2784
if ( url . indexOf ( '/map4548%40fl-new.json' ) > - 1 ) {
2767
2785
return Promise . resolve (
2768
2786
new Response ( JSON . stringify ( {
2787
+ prjCoordSys : {
2788
+ epsgCode : '3857'
2789
+ } ,
2769
2790
bounds : {
2770
2791
top : 5178663.047080055 ,
2771
2792
left : 328182.9260637246 ,
@@ -2819,6 +2840,9 @@ describe('maplibregl_WebMapV2', () => {
2819
2840
if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
2820
2841
return Promise . resolve ( new Response ( styleJson ) ) ;
2821
2842
}
2843
+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2844
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2845
+ }
2822
2846
} ) ;
2823
2847
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
2824
2848
const callback = function ( ) {
@@ -2862,6 +2886,9 @@ describe('maplibregl_WebMapV2', () => {
2862
2886
} ) ;
2863
2887
return Promise . resolve ( new Response ( JSON . stringify ( nextStyleJSON ) ) ) ;
2864
2888
}
2889
+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2890
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2891
+ }
2865
2892
} ) ;
2866
2893
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
2867
2894
const callback = function ( ) {
@@ -2933,6 +2960,9 @@ describe('maplibregl_WebMapV2', () => {
2933
2960
if ( url . indexOf ( 'ChinaqxAlberts_4548%40fl-new/style.json' ) > - 1 ) {
2934
2961
return Promise . resolve ( new Response ( styleJson ) ) ;
2935
2962
}
2963
+ if ( url . indexOf ( 'China.json' ) > - 1 ) {
2964
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
2965
+ }
2936
2966
} ) ;
2937
2967
datavizWebmap = new WebMap ( id , { ...commonOption } ) ;
2938
2968
const callback = function ( ) {
@@ -2971,6 +3001,9 @@ describe('maplibregl_WebMapV2', () => {
2971
3001
if ( url . indexOf ( '106007908/map.json' ) > - 1 ) {
2972
3002
return Promise . resolve ( new Response ( JSON . stringify ( tileLayerMap ) ) ) ;
2973
3003
}
3004
+ if ( url . indexOf ( 'base/resources/img/baiduTileTest.png' ) > - 1 || url . indexOf ( 'China.json' ) > - 1 ) {
3005
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
3006
+ }
2974
3007
} ) ;
2975
3008
datavizWebmap = new WebMap (
2976
3009
'' ,
@@ -3019,6 +3052,9 @@ describe('maplibregl_WebMapV2', () => {
3019
3052
if ( url . indexOf ( 'web/datas/1184572358/content.json' ) > - 1 ) {
3020
3053
return Promise . resolve ( new Response ( layerData_CSV ) ) ;
3021
3054
}
3055
+ if ( url . indexOf ( 'China_Dark.json' ) > - 1 || url . indexOf ( 'China.json' ) > - 1 ) {
3056
+ return Promise . resolve ( new Response ( JSON . stringify ( { } ) ) ) ;
3057
+ }
3022
3058
} ) ;
3023
3059
datavizWebmap = new WebMap (
3024
3060
'' ,
0 commit comments