File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ <h4 class="panel-title">
266
266
</ form >
267
267
< script type ="text/javascript " include ="bootstrap,jquery " src ="../js/include-web.js "> </ script >
268
268
< script type ="text/javascript ">
269
+ var host = window . isLocal ? window . server : "https://iserver.supermap.io" ;
269
270
var webMap = new mapboxgl . supermap . WebMap ( 1887887232 , {
270
271
target : 'map' ,
271
272
server : 'https://www.supermapol.com'
@@ -278,7 +279,7 @@ <h4 class="panel-title">
278
279
$ ( '#scale' ) . val ( scale * 2 ) ;
279
280
$ ( '#exportScale' ) . val ( scale ) ;
280
281
} ) ;
281
- var webPrintingJobService = new mapboxgl . supermap . WebPrintingJobService ( 'http://localhost:8090 /iserver/services/webprinting/rest/v1/webprinting', {
282
+ var webPrintingJobService = new mapboxgl . supermap . WebPrintingJobService ( host + ' /iserver/services/webprinting/rest/v1/webprinting', {
282
283
withCredentials : window . isLocal
283
284
} ) ;
284
285
webPrintingJobService . getLayoutTemplates ( function ( { result } ) {
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ <h4 class="panel-title">
266
266
</ form >
267
267
< script type ="text/javascript " include ="bootstrap,jquery " src ="../js/include-web.js "> </ script >
268
268
< script type ="text/javascript ">
269
+ var host = window . isLocal ? window . server : "https://iserver.supermap.io" ;
269
270
var webMap = new ol . supermap . WebMap ( 1887887232 , {
270
271
target : 'map' ,
271
272
successCallback : function ( map ) {
@@ -276,7 +277,7 @@ <h4 class="panel-title">
276
277
$ ( '#exportScale' ) . val ( scale ) ;
277
278
}
278
279
} ) ;
279
- var webPrintingJobService = new ol . supermap . WebPrintingJobService ( 'http://localhost:8090 /iserver/services/webprinting/rest/v1/webprinting', {
280
+ var webPrintingJobService = new ol . supermap . WebPrintingJobService ( host + ' /iserver/services/webprinting/rest/v1/webprinting', {
280
281
withCredentials : window . isLocal
281
282
} ) ;
282
283
webPrintingJobService . getLayoutTemplates ( function ( { result } ) {
Original file line number Diff line number Diff line change 32
32
ChinaProvincesURL : "http://localhost:8090/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces" ,
33
33
californiaURL : "http://localhost:8090/iserver/services/map-mvt-California/rest/maps/California" ,
34
34
distributedAnalysisURL :"http://localhost:8090/iserver/services/distributedanalyst/rest/v1/jobs" ,
35
- webPrintingURL : "http://localhost:8091 /iserver/services/webprinting/rest/v1/webprinting"
35
+ webPrintingURL : "http://localhost:8090 /iserver/services/webprinting/rest/v1/webprinting"
36
36
}
You can’t perform that action at this time.
0 commit comments