@@ -25,7 +25,7 @@ describe('openlayers_WebMap', () => {
2525 var server = "http://127.0.0.1:8090/iportal/" ;
2626 var defaultServer = "https://www.supermapol.com/" ;
2727 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=` ;
2929 var id = 1788054202 ;
3030 beforeEach ( ( ) => {
3131 testDiv = window . document . createElement ( "div" ) ;
@@ -296,7 +296,7 @@ describe('openlayers_WebMap', () => {
296296 successCallback : function ( ) { } ,
297297 errorCallback : function ( ) { }
298298 } ;
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` ) } ` ;
300300 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
301301 if ( url . indexOf ( 'map.json' ) > - 1 ) {
302302 var mapJson = datavizWebMap_Theme_base ;
@@ -333,7 +333,7 @@ describe('openlayers_WebMap', () => {
333333 successCallback : function ( ) { } ,
334334 errorCallback : function ( ) { }
335335 } ;
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` ) } ` ;
337337 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
338338 if ( url . indexOf ( 'map.json' ) > - 1 ) {
339339 var mapJson = datavizWebMap_Theme_base_Line ;
@@ -370,7 +370,7 @@ describe('openlayers_WebMap', () => {
370370 successCallback : function ( ) { } ,
371371 errorCallback : function ( ) { }
372372 } ;
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` ) } ` ;
374374 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
375375 if ( url . indexOf ( 'map.json' ) > - 1 ) {
376376 var mapJson = datavizWebMap_Image ;
@@ -403,7 +403,7 @@ describe('openlayers_WebMap', () => {
403403 successCallback : function ( ) { } ,
404404 errorCallback : function ( ) { }
405405 } ;
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` ) } ` ;
407407 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
408408 if ( url . indexOf ( 'map.json' ) > - 1 ) {
409409 var mapJson = datavizWebMap_SVG ;
@@ -438,7 +438,7 @@ describe('openlayers_WebMap', () => {
438438 successCallback : function ( ) { } ,
439439 errorCallback : function ( ) { }
440440 } ;
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` ) } ` ;
442442 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
443443 if ( url . indexOf ( 'map.json' ) > - 1 ) {
444444 var mapJson = datavizWebMap_Unique ;
@@ -476,7 +476,7 @@ describe('openlayers_WebMap', () => {
476476 successCallback : function ( ) { } ,
477477 errorCallback : function ( ) { }
478478 } ;
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` ) } ` ;
480480 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
481481 if ( url . indexOf ( 'map.json' ) > - 1 ) {
482482 var mapJson = datavizWebMap_Range ;
@@ -514,7 +514,7 @@ describe('openlayers_WebMap', () => {
514514 successCallback : function ( ) { } ,
515515 errorCallback : function ( ) { }
516516 } ;
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` ) } ` ;
518518 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
519519 if ( url . indexOf ( 'map.json' ) > - 1 ) {
520520 var mapJson = datavizWebMap_Heat ;
@@ -547,7 +547,7 @@ describe('openlayers_WebMap', () => {
547547 successCallback : function ( ) { } ,
548548 errorCallback : function ( ) { }
549549 } ;
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` ) } ` ;
551551 spyOn ( FetchRequest , 'get' ) . and . callFake ( ( url ) => {
552552 if ( url . indexOf ( 'map.json' ) > - 1 ) {
553553 var mapJson = datavizWebMap_Marker ;
@@ -875,7 +875,7 @@ describe('openlayers_WebMap', () => {
875875
876876 it ( 'getWmtsInfo' , ( done ) => {
877877 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` ) } ` ;
879879 if ( url === requestUrl ) {
880880 var mapJson = datavizWebMap_WMTS ;
881881 return Promise . resolve ( new Response ( mapJson ) ) ;
@@ -901,7 +901,7 @@ describe('openlayers_WebMap', () => {
901901
902902 it ( 'isValidResponse' , ( done ) => {
903903 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` ) } ` ) {
905905 var mapJson = datavizWebMap_WMTS ;
906906 return Promise . resolve ( new Response ( mapJson ) ) ;
907907 }
@@ -916,7 +916,7 @@ describe('openlayers_WebMap', () => {
916916
917917 it ( 'getReslutionsFromScales' , ( done ) => {
918918 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` ) } ` ) {
920920 var mapJson = datavizWebMap_WMTS ;
921921 return Promise . resolve ( new Response ( mapJson ) ) ;
922922 }
@@ -935,7 +935,7 @@ describe('openlayers_WebMap', () => {
935935
936936 it ( 'getRangeStyleGroup' , ( done ) => {
937937 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` ) } ` ) {
939939 var mapJson = datavizWebMap_WMTS ;
940940 return Promise . resolve ( new Response ( mapJson ) ) ;
941941 }
@@ -960,7 +960,7 @@ describe('openlayers_WebMap', () => {
960960
961961 it ( 'getRangeStyleGroup1' , ( done ) => {
962962 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` ) } ` ) {
964964 var mapJson = datavizWebMap_WMTS ;
965965 return Promise . resolve ( new Response ( mapJson ) ) ;
966966 }
0 commit comments