@@ -25,7 +25,7 @@ describe('openlayers_WebMap', () => {
25
25
var server = "http://127.0.0.1:8090/iportal/" ;
26
26
var defaultServer = "https://www.supermapol.com/" ;
27
27
var defaultServeRequest = 'https://www.supermapol.com/web/maps/1788054202/map' ;
28
- var proxy = `${ server } apps/viewer/getUrlResource?url=` ;
28
+ var proxy = `${ server } apps/viewer/getUrlResource.json ?url=` ;
29
29
var id = 1788054202 ;
30
30
beforeEach ( ( ) => {
31
31
testDiv = window . document . createElement ( "div" ) ;
@@ -296,7 +296,7 @@ describe('openlayers_WebMap', () => {
296
296
successCallback : function ( ) { } ,
297
297
errorCallback : function ( ) { }
298
298
} ;
299
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/675746998/content?pageSize=9999999¤tPage=1` ) } ` ;
299
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/675746998/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
300
300
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
301
301
if ( url . indexOf ( 'map.json' ) > - 1 ) {
302
302
var mapJson = datavizWebMap_Theme_base ;
@@ -333,7 +333,7 @@ describe('openlayers_WebMap', () => {
333
333
successCallback : function ( ) { } ,
334
334
errorCallback : function ( ) { }
335
335
} ;
336
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/374284777/content?pageSize=9999999¤tPage=1` ) } ` ;
336
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/374284777/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
337
337
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
338
338
if ( url . indexOf ( 'map.json' ) > - 1 ) {
339
339
var mapJson = datavizWebMap_Theme_base_Line ;
@@ -370,7 +370,7 @@ describe('openlayers_WebMap', () => {
370
370
successCallback : function ( ) { } ,
371
371
errorCallback : function ( ) { }
372
372
} ;
373
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/675746998/content?pageSize=9999999¤tPage=1` ) } ` ;
373
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/675746998/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
374
374
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
375
375
if ( url . indexOf ( 'map.json' ) > - 1 ) {
376
376
var mapJson = datavizWebMap_Image ;
@@ -403,7 +403,7 @@ describe('openlayers_WebMap', () => {
403
403
successCallback : function ( ) { } ,
404
404
errorCallback : function ( ) { }
405
405
} ;
406
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/1782454383/content?pageSize=9999999¤tPage=1` ) } ` ;
406
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/1782454383/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
407
407
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
408
408
if ( url . indexOf ( 'map.json' ) > - 1 ) {
409
409
var mapJson = datavizWebMap_SVG ;
@@ -438,7 +438,7 @@ describe('openlayers_WebMap', () => {
438
438
successCallback : function ( ) { } ,
439
439
errorCallback : function ( ) { }
440
440
} ;
441
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/658963918/content?pageSize=9999999¤tPage=1` ) } ` ;
441
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/658963918/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
442
442
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
443
443
if ( url . indexOf ( 'map.json' ) > - 1 ) {
444
444
var mapJson = datavizWebMap_Unique ;
@@ -476,7 +476,7 @@ describe('openlayers_WebMap', () => {
476
476
successCallback : function ( ) { } ,
477
477
errorCallback : function ( ) { }
478
478
} ;
479
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/1236941499/content?pageSize=9999999¤tPage=1` ) } ` ;
479
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/1236941499/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
480
480
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
481
481
if ( url . indexOf ( 'map.json' ) > - 1 ) {
482
482
var mapJson = datavizWebMap_Range ;
@@ -514,7 +514,7 @@ describe('openlayers_WebMap', () => {
514
514
successCallback : function ( ) { } ,
515
515
errorCallback : function ( ) { }
516
516
} ;
517
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/675746998/content?pageSize=9999999¤tPage=1` ) } ` ;
517
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/675746998/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
518
518
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
519
519
if ( url . indexOf ( 'map.json' ) > - 1 ) {
520
520
var mapJson = datavizWebMap_Heat ;
@@ -547,7 +547,7 @@ describe('openlayers_WebMap', () => {
547
547
successCallback : function ( ) { } ,
548
548
errorCallback : function ( ) { }
549
549
} ;
550
- let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/579431262/content?pageSize=9999999¤tPage=1` ) } ` ;
550
+ let requestUrl = `${ proxy } ${ encodeURIComponent ( `${ server } web/datas/579431262/content.json ?pageSize=9999999¤tPage=1` ) } ` ;
551
551
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
552
552
if ( url . indexOf ( 'map.json' ) > - 1 ) {
553
553
var mapJson = datavizWebMap_Marker ;
@@ -875,7 +875,7 @@ describe('openlayers_WebMap', () => {
875
875
876
876
it ( 'getWmtsInfo' , ( done ) => {
877
877
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
878
- let requestUrl = `https://www.supermapol.com/apps/viewer/getUrlResource?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ;
878
+ let requestUrl = `https://www.supermapol.com/apps/viewer/getUrlResource.json ?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ;
879
879
if ( url === requestUrl ) {
880
880
var mapJson = datavizWebMap_WMTS ;
881
881
return Promise . resolve ( new Response ( mapJson ) ) ;
@@ -901,7 +901,7 @@ describe('openlayers_WebMap', () => {
901
901
902
902
it ( 'isValidResponse' , ( done ) => {
903
903
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
904
- if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
904
+ if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource.json ?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
905
905
var mapJson = datavizWebMap_WMTS ;
906
906
return Promise . resolve ( new Response ( mapJson ) ) ;
907
907
}
@@ -916,7 +916,7 @@ describe('openlayers_WebMap', () => {
916
916
917
917
it ( 'getReslutionsFromScales' , ( done ) => {
918
918
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
919
- if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
919
+ if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource.json ?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
920
920
var mapJson = datavizWebMap_WMTS ;
921
921
return Promise . resolve ( new Response ( mapJson ) ) ;
922
922
}
@@ -935,7 +935,7 @@ describe('openlayers_WebMap', () => {
935
935
936
936
it ( 'getRangeStyleGroup' , ( done ) => {
937
937
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
938
- if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
938
+ if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource.json ?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
939
939
var mapJson = datavizWebMap_WMTS ;
940
940
return Promise . resolve ( new Response ( mapJson ) ) ;
941
941
}
@@ -960,7 +960,7 @@ describe('openlayers_WebMap', () => {
960
960
961
961
it ( 'getRangeStyleGroup1' , ( done ) => {
962
962
spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
963
- if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
963
+ if ( url === `https://www.supermapol.com/apps/viewer/getUrlResource.json ?url=${ encodeURIComponent ( `${ defaultServeRequest } .json` ) } ` ) {
964
964
var mapJson = datavizWebMap_WMTS ;
965
965
return Promise . resolve ( new Response ( mapJson ) ) ;
966
966
}
0 commit comments