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">
266266 </ form >
267267 < script type ="text/javascript " include ="bootstrap,jquery " src ="../js/include-web.js "> </ script >
268268 < script type ="text/javascript ">
269+ var host = window . isLocal ? window . server : "https://iserver.supermap.io" ;
269270 var webMap = new mapboxgl . supermap . WebMap ( 1887887232 , {
270271 target : 'map' ,
271272 server : 'https://www.supermapol.com'
@@ -278,7 +279,7 @@ <h4 class="panel-title">
278279 $ ( '#scale' ) . val ( scale * 2 ) ;
279280 $ ( '#exportScale' ) . val ( scale ) ;
280281 } ) ;
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', {
282283 withCredentials : window . isLocal
283284 } ) ;
284285 webPrintingJobService . getLayoutTemplates ( function ( { result } ) {
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ <h4 class="panel-title">
266266 </ form >
267267 < script type ="text/javascript " include ="bootstrap,jquery " src ="../js/include-web.js "> </ script >
268268 < script type ="text/javascript ">
269+ var host = window . isLocal ? window . server : "https://iserver.supermap.io" ;
269270 var webMap = new ol . supermap . WebMap ( 1887887232 , {
270271 target : 'map' ,
271272 successCallback : function ( map ) {
@@ -276,7 +277,7 @@ <h4 class="panel-title">
276277 $ ( '#exportScale' ) . val ( scale ) ;
277278 }
278279 } ) ;
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', {
280281 withCredentials : window . isLocal
281282 } ) ;
282283 webPrintingJobService . getLayoutTemplates ( function ( { result } ) {
Original file line number Diff line number Diff line change 3232 ChinaProvincesURL : "http://localhost:8090/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces" ,
3333 californiaURL : "http://localhost:8090/iserver/services/map-mvt-California/rest/maps/California" ,
3434 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"
3636 }
You can’t perform that action at this time.
0 commit comments