@@ -105,7 +105,7 @@ describe('maplibregl-webmap3.0', () => {
105105 } ) ;
106106 mapstudioWebmap = new WebMap ( id , {
107107 server : server ,
108- iportalServiceProxyUrl : 'initialize_raster'
108+ iportalServiceProxyUrlPrefix : 'initialize_raster'
109109 } ) ;
110110 expect ( mapstudioWebmap . credentialKey ) . toBeUndefined ( ) ;
111111 expect ( mapstudioWebmap . credentialValue ) . toBeUndefined ( ) ;
@@ -172,7 +172,7 @@ describe('maplibregl-webmap3.0', () => {
172172 mapstudioWebmap = new WebMapV3 ( mapInfo , {
173173 server : server ,
174174 target : 'map' ,
175- iportalServiceProxyUrl : 'mapId is JSON'
175+ iportalServiceProxyUrlPrefix : 'mapId is JSON'
176176 } ) ;
177177 mapstudioWebmap . initializeMap ( mapInfo ) ;
178178
@@ -256,7 +256,7 @@ describe('maplibregl-webmap3.0', () => {
256256 mapstudioWebmap = new WebMap ( nextMapInfo , {
257257 server : server ,
258258 target : 'map' ,
259- iportalServiceProxyUrl : 'projection is 4490 and include maplibre-gl-enhance'
259+ iportalServiceProxyUrlPrefix : 'projection is 4490 and include maplibre-gl-enhance'
260260 } ) ;
261261
262262 mapstudioWebmap . on ( 'mapcreatesucceeded' , ( { map } ) => {
@@ -342,7 +342,7 @@ describe('maplibregl-webmap3.0', () => {
342342 mapstudioWebmap = new WebMapV3 ( mapInfo , {
343343 server : server ,
344344 target : 'map' ,
345- iportalServiceProxyUrl : 'overlayLayersManager'
345+ iportalServiceProxyUrlPrefix : 'overlayLayersManager'
346346 } ) ;
347347 mapstudioWebmap . initializeMap ( mapInfo ) ;
348348
@@ -500,7 +500,7 @@ describe('maplibregl-webmap3.0', () => {
500500 mapstudioWebmap = new WebMapV3 ( mapInfo , {
501501 server : server ,
502502 target : 'map' ,
503- iportalServiceProxyUrl : 'exclude source and layer'
503+ iportalServiceProxyUrlPrefix : 'exclude source and layer'
504504 } ) ;
505505 mapstudioWebmap . initializeMap ( mapInfo ) ;
506506
@@ -732,14 +732,14 @@ describe('maplibregl-webmap3.0', () => {
732732 } ) ;
733733 const spyTest = spyOn ( MapManagerUtil , 'default' ) . and . callFake ( mbglmap ) ;
734734 const mapInfo = JSON . parse ( mapstudioWebMap_raster ) ;
735- const iportalServiceProxyUrl = 'http://localhost:8195/portalproxy' ;
735+ const iportalServiceProxyUrlPrefix = 'http://localhost:8195/portalproxy' ;
736736 const tileCustomRequestHeaders = { 'Authorization' : 'test token' } ;
737737 mapstudioWebmap = new WebMap ( mapInfo , {
738738 server : server ,
739739 target : 'map' ,
740- iportalServiceProxyUrl ,
740+ iportalServiceProxyUrlPrefix ,
741741 tileTransformRequest : ( url ) => {
742- if ( url . includes ( iportalServiceProxyUrl ) ) {
742+ if ( url . includes ( iportalServiceProxyUrlPrefix ) ) {
743743 return { headers : tileCustomRequestHeaders } ;
744744 }
745745 }
0 commit comments