|
2 | 2 | * Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
|
3 | 3 | *********************************************************************-->
|
4 | 4 | <!--********************************************************************
|
5 |
| -* 该示例需要引入 |
| 5 | +* 该示例需要引入 |
6 | 6 | * mapbox-gl-enhance (https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0-1/mapbox-gl-enhance.js)
|
7 | 7 | *********************************************************************-->
|
8 | 8 | <!DOCTYPE html>
|
@@ -176,7 +176,7 @@ <h4 class="panel-title">
|
176 | 176 | <div class="panel-body">
|
177 | 177 | <div class="form-group">
|
178 | 178 | <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" /> |
180 | 180 | </div>
|
181 | 181 | <div class="form-group">
|
182 | 182 | <label for="center" data-i18n="resources.text_center"></label>
|
@@ -252,7 +252,7 @@ <h4 class="panel-title">
|
252 | 252 | </div>
|
253 | 253 | <div class="form-group">
|
254 | 254 | <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" /> |
256 | 256 | </div>
|
257 | 257 | </div>
|
258 | 258 | </div>
|
@@ -316,7 +316,7 @@ <h4 class="panel-title">
|
316 | 316 | unit: $('#unit').val(),
|
317 | 317 | }),
|
318 | 318 | littleMapOptions: new mapboxgl.supermap.WebPrintingJobLittleMapOptions({
|
319 |
| - scale: +$('#scale').val() || 0, |
| 319 | + scale: +$('#scale').val(), |
320 | 320 | center: { x: $('#center').val().split(',')[0], y: $('#center').val().split(',')[1] },
|
321 | 321 | layerNames: webMap.layers && webMap.layers.map(function(item) {return item.name})
|
322 | 322 | }),
|
|
0 commit comments