@@ -100,7 +100,7 @@ describe('maplibregl-webmap3.0', () => {
100100 } ) ;
101101 mapstudioWebmap = new WebMap ( id , {
102102 server : server ,
103- iportalServiceProxyUrl : 'initialize_raster'
103+ iportalServiceProxyUrlPrefix : 'initialize_raster'
104104 } ) ;
105105 expect ( mapstudioWebmap . credentialKey ) . toBeUndefined ( ) ;
106106 expect ( mapstudioWebmap . credentialValue ) . toBeUndefined ( ) ;
@@ -167,7 +167,7 @@ describe('maplibregl-webmap3.0', () => {
167167 mapstudioWebmap = new WebMapV3 ( mapInfo , {
168168 server : server ,
169169 target : 'map' ,
170- iportalServiceProxyUrl : 'mapId is JSON'
170+ iportalServiceProxyUrlPrefix : 'mapId is JSON'
171171 } ) ;
172172 mapstudioWebmap . initializeMap ( mapInfo ) ;
173173
@@ -238,7 +238,7 @@ describe('maplibregl-webmap3.0', () => {
238238 mapstudioWebmap = new WebMapV3 ( nextMapInfo , {
239239 server : server ,
240240 target : 'map' ,
241- iportalServiceProxyUrl : 'projection is 4490 and include maplibre-gl-enhance'
241+ iportalServiceProxyUrlPrefix : 'projection is 4490 and include maplibre-gl-enhance'
242242 } ) ;
243243 mapstudioWebmap . initializeMap ( nextMapInfo ) ;
244244
@@ -328,7 +328,7 @@ describe('maplibregl-webmap3.0', () => {
328328 mapstudioWebmap = new WebMapV3 ( mapInfo , {
329329 server : server ,
330330 target : 'map' ,
331- iportalServiceProxyUrl : 'overlayLayersManager'
331+ iportalServiceProxyUrlPrefix : 'overlayLayersManager'
332332 } ) ;
333333 mapstudioWebmap . initializeMap ( mapInfo ) ;
334334
@@ -486,7 +486,7 @@ describe('maplibregl-webmap3.0', () => {
486486 mapstudioWebmap = new WebMapV3 ( mapInfo , {
487487 server : server ,
488488 target : 'map' ,
489- iportalServiceProxyUrl : 'exclude source and layer'
489+ iportalServiceProxyUrlPrefix : 'exclude source and layer'
490490 } ) ;
491491 mapstudioWebmap . initializeMap ( mapInfo ) ;
492492
@@ -700,14 +700,14 @@ describe('maplibregl-webmap3.0', () => {
700700 } ) ;
701701 const spyTest = spyOn ( MapManagerUtil , 'default' ) . and . callFake ( mbglmap ) ;
702702 const mapInfo = JSON . parse ( mapstudioWebMap_raster ) ;
703- const iportalServiceProxyUrl = 'http://localhost:8195/portalproxy' ;
703+ const iportalServiceProxyUrlPrefix = 'http://localhost:8195/portalproxy' ;
704704 const tileCustomRequestHeaders = { 'Authorization' : 'test token' } ;
705705 mapstudioWebmap = new WebMap ( mapInfo , {
706706 server : server ,
707707 target : 'map' ,
708- iportalServiceProxyUrl ,
708+ iportalServiceProxyUrlPrefix ,
709709 tileTransformRequest : ( url ) => {
710- if ( url . includes ( iportalServiceProxyUrl ) ) {
710+ if ( url . includes ( iportalServiceProxyUrlPrefix ) ) {
711711 return { headers : tileCustomRequestHeaders } ;
712712 }
713713 }
0 commit comments