@@ -105,7 +105,7 @@ describe('maplibregl-webmap3.0', () => {
105
105
} ) ;
106
106
mapstudioWebmap = new WebMap ( id , {
107
107
server : server ,
108
- iportalServiceProxyUrl : 'initialize_raster'
108
+ iportalServiceProxyUrlPrefix : 'initialize_raster'
109
109
} ) ;
110
110
expect ( mapstudioWebmap . credentialKey ) . toBeUndefined ( ) ;
111
111
expect ( mapstudioWebmap . credentialValue ) . toBeUndefined ( ) ;
@@ -172,7 +172,7 @@ describe('maplibregl-webmap3.0', () => {
172
172
mapstudioWebmap = new WebMapV3 ( mapInfo , {
173
173
server : server ,
174
174
target : 'map' ,
175
- iportalServiceProxyUrl : 'mapId is JSON'
175
+ iportalServiceProxyUrlPrefix : 'mapId is JSON'
176
176
} ) ;
177
177
mapstudioWebmap . initializeMap ( mapInfo ) ;
178
178
@@ -256,7 +256,7 @@ describe('maplibregl-webmap3.0', () => {
256
256
mapstudioWebmap = new WebMap ( nextMapInfo , {
257
257
server : server ,
258
258
target : 'map' ,
259
- iportalServiceProxyUrl : 'projection is 4490 and include maplibre-gl-enhance'
259
+ iportalServiceProxyUrlPrefix : 'projection is 4490 and include maplibre-gl-enhance'
260
260
} ) ;
261
261
262
262
mapstudioWebmap . on ( 'mapcreatesucceeded' , ( { map } ) => {
@@ -342,7 +342,7 @@ describe('maplibregl-webmap3.0', () => {
342
342
mapstudioWebmap = new WebMapV3 ( mapInfo , {
343
343
server : server ,
344
344
target : 'map' ,
345
- iportalServiceProxyUrl : 'overlayLayersManager'
345
+ iportalServiceProxyUrlPrefix : 'overlayLayersManager'
346
346
} ) ;
347
347
mapstudioWebmap . initializeMap ( mapInfo ) ;
348
348
@@ -500,7 +500,7 @@ describe('maplibregl-webmap3.0', () => {
500
500
mapstudioWebmap = new WebMapV3 ( mapInfo , {
501
501
server : server ,
502
502
target : 'map' ,
503
- iportalServiceProxyUrl : 'exclude source and layer'
503
+ iportalServiceProxyUrlPrefix : 'exclude source and layer'
504
504
} ) ;
505
505
mapstudioWebmap . initializeMap ( mapInfo ) ;
506
506
@@ -732,14 +732,14 @@ describe('maplibregl-webmap3.0', () => {
732
732
} ) ;
733
733
const spyTest = spyOn ( MapManagerUtil , 'default' ) . and . callFake ( mbglmap ) ;
734
734
const mapInfo = JSON . parse ( mapstudioWebMap_raster ) ;
735
- const iportalServiceProxyUrl = 'http://localhost:8195/portalproxy' ;
735
+ const iportalServiceProxyUrlPrefix = 'http://localhost:8195/portalproxy' ;
736
736
const tileCustomRequestHeaders = { 'Authorization' : 'test token' } ;
737
737
mapstudioWebmap = new WebMap ( mapInfo , {
738
738
server : server ,
739
739
target : 'map' ,
740
- iportalServiceProxyUrl ,
740
+ iportalServiceProxyUrlPrefix ,
741
741
tileTransformRequest : ( url ) => {
742
- if ( url . includes ( iportalServiceProxyUrl ) ) {
742
+ if ( url . includes ( iportalServiceProxyUrlPrefix ) ) {
743
743
return { headers : tileCustomRequestHeaders } ;
744
744
}
745
745
}
0 commit comments