Skip to content

Commit de90eb2

Browse files
committed
【update】web打印 scale 默认值设置1; review by luox
1 parent e613e8b commit de90eb2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/mapboxgl/webPrintingJob.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!--********************************************************************
5-
* 该示例需要引入
5+
* 该示例需要引入
66
* mapbox-gl-enhance (https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0-1/mapbox-gl-enhance.js)
77
*********************************************************************-->
88
<!DOCTYPE html>
@@ -176,7 +176,7 @@ <h4 class="panel-title">
176176
<div class="panel-body">
177177
<div class="form-group">
178178
<label for="scale" data-i18n="resources.text_scale"></label>
179-
<input type="text" class="form-control" id="scale" value="0" />
179+
<input type="text" class="form-control" id="scale" value="1" />
180180
</div>
181181
<div class="form-group">
182182
<label for="center" data-i18n="resources.text_center"></label>
@@ -252,7 +252,7 @@ <h4 class="panel-title">
252252
</div>
253253
<div class="form-group">
254254
<label for="exportScale" data-i18n="resources.text_scale"></label>
255-
<input type="text" class="form-control" id="exportScale" value="0" />
255+
<input type="text" class="form-control" id="exportScale" value="1" />
256256
</div>
257257
</div>
258258
</div>
@@ -316,7 +316,7 @@ <h4 class="panel-title">
316316
unit: $('#unit').val(),
317317
}),
318318
littleMapOptions: new mapboxgl.supermap.WebPrintingJobLittleMapOptions({
319-
scale: +$('#scale').val() || 0,
319+
scale: +$('#scale').val(),
320320
center: { x: $('#center').val().split(',')[0], y: $('#center').val().split(',')[1] },
321321
layerNames: webMap.layers && webMap.layers.map(function(item) {return item.name})
322322
}),

examples/openlayers/webPrintingJob.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ <h4 class="panel-title">
173173
<div class="panel-body">
174174
<div class="form-group">
175175
<label for="scale" data-i18n="resources.text_scale"></label>
176-
<input type="text" class="form-control" id="scale" value="0" />
176+
<input type="text" class="form-control" id="scale" value="1" />
177177
</div>
178178
<div class="form-group">
179179
<label for="center" data-i18n="resources.text_center"></label>
@@ -248,7 +248,7 @@ <h4 class="panel-title">
248248
</div>
249249
<div class="form-group">
250250
<label for="exportScale" data-i18n="resources.text_scale"></label>
251-
<input type="text" class="form-control" id="exportScale" value="0" />
251+
<input type="text" class="form-control" id="exportScale" value="1" />
252252
</div>
253253
</div>
254254
</div>
@@ -311,7 +311,7 @@ <h4 class="panel-title">
311311
unit: $('#unit').val(),
312312
}),
313313
littleMapOptions: new ol.supermap.WebPrintingJobLittleMapOptions({
314-
scale: +$('#scale').val() || 0,
314+
scale: +$('#scale').val(),
315315
center: { x: $('#center').val().split(',')[0], y: $('#center').val().split(',')[1] },
316316
layerNames: webMap.layers && webMap.layers.map(function(item) {return item.name})
317317
}),

0 commit comments

Comments
 (0)