@mapgis/webclient-cesium-plugin 17.0.7 → 17.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -40
- package/dist/es5/webclient-cesium-plugin.min.js +6 -6
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/webclient-cesium-plugin-es6.min.js +6 -6
- package/documention/ArcGISMapServerImageryProvider.html +2 -2
- package/documention/ArcGISTileServerImageryProvider.html +2 -2
- package/documention/ArcGISVectorTileImageryProvider.html +866 -0
- package/documention/CustomTilingScheme.html +6 -6
- package/documention/GeoJSONLayerUtil.html +1 -1
- package/documention/IGSFeatureLayerUtil.html +1 -1
- package/documention/IGSSceneLayerUtil.html +626 -29
- package/documention/MapGISMapServerImageryProvider.html +12 -12
- package/documention/MapGISTerrainProvider.html +499 -558
- package/documention/MapGISTileServerImageryProvider.html +154 -2
- package/documention/MapGISVectorTileImageryProvider.html +254 -1
- package/documention/Popup.html +5 -3
- package/documention/SceneViewCesium.html +17 -143
- package/documention/Screenshot.html +6 -15
- package/documention/SketchEditorCesium.html +77 -11
- package/documention/UrlTemplateImageryProvider.html +45 -1
- package/documention/WFSLayerUtil.html +1 -1
- package/documention/WebMapServiceImageryProvider.html +2 -2
- package/documention/WebMapTileServiceImageryProvider.html +55 -2
- package/documention/index.html +8 -8
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +1 -1
- package/documention/scripts/sideBar.js +16 -2
- package/package.json +2 -2
|
@@ -329,6 +329,46 @@
|
|
|
329
329
|
|
|
330
330
|
|
|
331
331
|
|
|
332
|
+
<tr class="deep-level-1">
|
|
333
|
+
|
|
334
|
+
<td class="name"><code>isStretchImage</code></td>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<td class="type">
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
<span class="param-type">
|
|
341
|
+
|
|
342
|
+
Boolean
|
|
343
|
+
|
|
344
|
+
</span>
|
|
345
|
+
|
|
|
346
|
+
|
|
347
|
+
<span class="param-type">
|
|
348
|
+
|
|
349
|
+
undefined
|
|
350
|
+
|
|
351
|
+
</span>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
</td>
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
<td class="default">
|
|
360
|
+
|
|
361
|
+
false
|
|
362
|
+
|
|
363
|
+
</td>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
<td class="description last"><p>超过最大最小层级范围图像是否进行图像的拉伸。此值未定义或者设置为true时,如果图像level小于minimumLevel或者大于maximumLevel,图像会进行拉伸。反之,如果图像level小于minimumLevel或者大于maximumLevel,不会再请求图像以及拉伸图像</p></td>
|
|
367
|
+
</tr>
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
332
372
|
<tr class="deep-level-1">
|
|
333
373
|
|
|
334
374
|
<td class="name"><code>tilingScheme</code></td>
|
|
@@ -596,13 +636,13 @@
|
|
|
596
636
|
<p class="code-caption"><h7>添加一个MapGIS瓦片服务:原生接口</h7></p>
|
|
597
637
|
|
|
598
638
|
|
|
599
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
600
639
|
const provider = await MapGISTileServerImageryProvider.fromUrl(url)
|
|
601
640
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
641
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
602
642
|
const provider = await MapGISTileServerImageryProvider.fromUrl(url)
|
|
603
643
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
604
644
|
|
|
605
645
|
|
|
606
646
|
<p class="code-caption"><h7>添加一个MapGIS瓦片服务:混合接口</h7></p>
|
|
607
647
|
|
|
608
648
|
|
|
609
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
610
649
|
// 获取provider的初始化参数
|
|
611
650
|
const options = initializeOptions(layer, viewer)
|
|
612
651
|
// 构造provider对象
|
|
613
652
|
provider = new MapGISTileServerImageryProvider(options)
|
|
614
653
|
// 添加图层到Cesium视图中
|
|
615
654
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
655
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
616
656
|
// 获取provider的初始化参数
|
|
617
657
|
const options = initializeOptions(layer, viewer)
|
|
618
658
|
// 构造provider对象
|
|
619
659
|
provider = new MapGISTileServerImageryProvider(options)
|
|
620
660
|
// 添加图层到Cesium视图中
|
|
621
661
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
622
662
|
|
|
623
663
|
|
|
624
664
|
|
|
@@ -697,6 +737,31 @@
|
|
|
697
737
|
通道的图像将被视为它们的alpha在任何地方都是1.0。当此属性为false时,内存使用和纹理上传时间会减少</p></code></td>
|
|
698
738
|
</tr>
|
|
699
739
|
|
|
740
|
+
<tr class="deep-level-0">
|
|
741
|
+
<td class="name"><code><a href="#isStretchImage">isStretchImage</a></code></td>
|
|
742
|
+
<td class="name">
|
|
743
|
+
<code>
|
|
744
|
+
|
|
745
|
+
<span class="param-type">
|
|
746
|
+
|
|
747
|
+
Boolean
|
|
748
|
+
|
|
749
|
+
</span>
|
|
750
|
+
|
|
|
751
|
+
|
|
752
|
+
<span class="param-type">
|
|
753
|
+
|
|
754
|
+
undefined
|
|
755
|
+
|
|
756
|
+
</span>
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
</code>
|
|
761
|
+
</td>
|
|
762
|
+
<td class="name"><code><p>超过最大最小层级范围图像是否进行图像的拉伸</p></code></td>
|
|
763
|
+
</tr>
|
|
764
|
+
|
|
700
765
|
<tr class="deep-level-0">
|
|
701
766
|
<td class="name"><code><a href="#mapgisOffset">mapgisOffset</a></code></td>
|
|
702
767
|
<td class="name">
|
|
@@ -1124,6 +1189,93 @@
|
|
|
1124
1189
|
|
|
1125
1190
|
|
|
1126
1191
|
|
|
1192
|
+
</dl>
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
</div>
|
|
1199
|
+
|
|
1200
|
+
<div class="member">
|
|
1201
|
+
|
|
1202
|
+
<span class="method-parameter is-pulled-right">
|
|
1203
|
+
<label>类型:</label>
|
|
1204
|
+
|
|
1205
|
+
<span class="param-type">
|
|
1206
|
+
|
|
1207
|
+
Boolean
|
|
1208
|
+
|
|
1209
|
+
</span>
|
|
1210
|
+
|
|
|
1211
|
+
|
|
1212
|
+
<span class="param-type">
|
|
1213
|
+
|
|
1214
|
+
undefined
|
|
1215
|
+
|
|
1216
|
+
</span>
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
</span>
|
|
1221
|
+
|
|
1222
|
+
<h4 class="name" id="isStretchImage">
|
|
1223
|
+
<a class="href-link" href="#isStretchImage">#</a>
|
|
1224
|
+
|
|
1225
|
+
<span class="code-name">
|
|
1226
|
+
isStretchImage
|
|
1227
|
+
</span>
|
|
1228
|
+
|
|
1229
|
+
</h4>
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
<div class="description">
|
|
1235
|
+
<p>超过最大最小层级范围图像是否进行图像的拉伸</p>
|
|
1236
|
+
</div>
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
<dl class="details">
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
<dt class="tag-default">Default Value:</dt>
|
|
1268
|
+
<dd class="tag-default"><ul class="dummy">
|
|
1269
|
+
<li>false</li>
|
|
1270
|
+
</ul></dd>
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1127
1279
|
</dl>
|
|
1128
1280
|
|
|
1129
1281
|
|
|
@@ -433,6 +433,46 @@
|
|
|
433
433
|
|
|
434
434
|
|
|
435
435
|
|
|
436
|
+
<tr class="deep-level-1">
|
|
437
|
+
|
|
438
|
+
<td class="name"><code>isStretchImage</code></td>
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
<td class="type">
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
<span class="param-type">
|
|
445
|
+
|
|
446
|
+
Boolean
|
|
447
|
+
|
|
448
|
+
</span>
|
|
449
|
+
|
|
|
450
|
+
|
|
451
|
+
<span class="param-type">
|
|
452
|
+
|
|
453
|
+
undefined
|
|
454
|
+
|
|
455
|
+
</span>
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
</td>
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
<td class="default">
|
|
464
|
+
|
|
465
|
+
false
|
|
466
|
+
|
|
467
|
+
</td>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
<td class="description last"><p>超过最大最小层级范围图像是否进行图像的拉伸。此值未定义或者设置为true时,如果图像level小于minimumLevel或者大于maximumLevel,图像会进行拉伸。反之,如果图像level小于minimumLevel或者大于maximumLevel,不会再请求图像以及拉伸图像</p></td>
|
|
471
|
+
</tr>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
436
476
|
<tr class="deep-level-1">
|
|
437
477
|
|
|
438
478
|
<td class="name"><code>tokenKey</code></td>
|
|
@@ -732,7 +772,7 @@
|
|
|
732
772
|
|
|
733
773
|
|
|
734
774
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
735
|
-
const { MapGISVectorTileImageryProvider } =
|
|
775
|
+
const { MapGISVectorTileImageryProvider } = zondy
|
|
736
776
|
// ES6引入方式
|
|
737
777
|
import { MapGISVectorTileImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
738
778
|
|
|
@@ -817,6 +857,31 @@ addImageryProvider(url)</code></pre>
|
|
|
817
857
|
<td class="name"><code><p>瓦片是否能设置透明度</p></code></td>
|
|
818
858
|
</tr>
|
|
819
859
|
|
|
860
|
+
<tr class="deep-level-0">
|
|
861
|
+
<td class="name"><code><a href="#isStretchImage">isStretchImage</a></code></td>
|
|
862
|
+
<td class="name">
|
|
863
|
+
<code>
|
|
864
|
+
|
|
865
|
+
<span class="param-type">
|
|
866
|
+
|
|
867
|
+
Boolean
|
|
868
|
+
|
|
869
|
+
</span>
|
|
870
|
+
|
|
|
871
|
+
|
|
872
|
+
<span class="param-type">
|
|
873
|
+
|
|
874
|
+
undefined
|
|
875
|
+
|
|
876
|
+
</span>
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
</code>
|
|
881
|
+
</td>
|
|
882
|
+
<td class="name"><code><p>超过最大最小层级范围图像是否进行图像的拉伸</p></code></td>
|
|
883
|
+
</tr>
|
|
884
|
+
|
|
820
885
|
<tr class="deep-level-0">
|
|
821
886
|
<td class="name"><code><a href="#labelsRenderMode">labelsRenderMode</a></code></td>
|
|
822
887
|
<td class="name">
|
|
@@ -1288,6 +1353,93 @@ off-screen表示通过先将注记渲染到图片上,再通过三维接口渲
|
|
|
1288
1353
|
|
|
1289
1354
|
|
|
1290
1355
|
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
</dl>
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
</div>
|
|
1371
|
+
|
|
1372
|
+
<div class="member">
|
|
1373
|
+
|
|
1374
|
+
<span class="method-parameter is-pulled-right">
|
|
1375
|
+
<label>类型:</label>
|
|
1376
|
+
|
|
1377
|
+
<span class="param-type">
|
|
1378
|
+
|
|
1379
|
+
Boolean
|
|
1380
|
+
|
|
1381
|
+
</span>
|
|
1382
|
+
|
|
|
1383
|
+
|
|
1384
|
+
<span class="param-type">
|
|
1385
|
+
|
|
1386
|
+
undefined
|
|
1387
|
+
|
|
1388
|
+
</span>
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
</span>
|
|
1393
|
+
|
|
1394
|
+
<h4 class="name" id="isStretchImage">
|
|
1395
|
+
<a class="href-link" href="#isStretchImage">#</a>
|
|
1396
|
+
|
|
1397
|
+
<span class="code-name">
|
|
1398
|
+
isStretchImage
|
|
1399
|
+
</span>
|
|
1400
|
+
|
|
1401
|
+
</h4>
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
<div class="description">
|
|
1407
|
+
<p>超过最大最小层级范围图像是否进行图像的拉伸</p>
|
|
1408
|
+
</div>
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
<dl class="details">
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
<dt class="tag-default">Default Value:</dt>
|
|
1440
|
+
<dd class="tag-default"><ul class="dummy">
|
|
1441
|
+
<li>false</li>
|
|
1442
|
+
</ul></dd>
|
|
1291
1443
|
|
|
1292
1444
|
|
|
1293
1445
|
|
|
@@ -2770,6 +2922,16 @@ off-screen表示通过先将注记渲染到图片上,再通过三维接口渲
|
|
|
2770
2922
|
<td class="name"><code><p>获取注记的渲染模式</p></code></td>
|
|
2771
2923
|
</tr>
|
|
2772
2924
|
|
|
2925
|
+
<tr class="deep-level-0">
|
|
2926
|
+
<td class="name"><code><a href="#destroy">destroy</a></code></td>
|
|
2927
|
+
<td class="name">
|
|
2928
|
+
<code>
|
|
2929
|
+
|
|
2930
|
+
</code>
|
|
2931
|
+
</td>
|
|
2932
|
+
<td class="name"><code><p>销毁MapGISVectorTileImageryProvider的相关事件和私有变量</p></code></td>
|
|
2933
|
+
</tr>
|
|
2934
|
+
|
|
2773
2935
|
<tr class="deep-level-0">
|
|
2774
2936
|
<td class="name"><code><a href="#drawTile">drawTile</a></code></td>
|
|
2775
2937
|
<td class="name">
|
|
@@ -3197,6 +3359,97 @@ off-screen表示通过先将注记渲染到图片上,再通过三维接口渲
|
|
|
3197
3359
|
|
|
3198
3360
|
|
|
3199
3361
|
|
|
3362
|
+
|
|
3363
|
+
|
|
3364
|
+
|
|
3365
|
+
</div>
|
|
3366
|
+
|
|
3367
|
+
<div class="member">
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
<h4 class="name" id="destroy">
|
|
3372
|
+
<a class="href-link" href="#destroy">#</a>
|
|
3373
|
+
|
|
3374
|
+
<span class="code-name" id="destroy" style="font-size:30px">
|
|
3375
|
+
|
|
3376
|
+
destroy<span class="signature">()</span>
|
|
3377
|
+
|
|
3378
|
+
</span>
|
|
3379
|
+
</h4>
|
|
3380
|
+
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
<div class="description">
|
|
3384
|
+
<p>销毁MapGISVectorTileImageryProvider的相关事件和私有变量</p>
|
|
3385
|
+
</div>
|
|
3386
|
+
|
|
3387
|
+
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
|
|
3395
|
+
|
|
3396
|
+
|
|
3397
|
+
|
|
3398
|
+
|
|
3399
|
+
|
|
3400
|
+
<dl class="details">
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
|
|
3417
|
+
|
|
3418
|
+
|
|
3419
|
+
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
|
|
3427
|
+
|
|
3428
|
+
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
|
|
3432
|
+
</dl>
|
|
3433
|
+
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
|
|
3437
|
+
|
|
3438
|
+
|
|
3439
|
+
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
|
|
3444
|
+
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
|
|
3452
|
+
|
|
3200
3453
|
|
|
3201
3454
|
|
|
3202
3455
|
|
package/documention/Popup.html
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
参考示例:
|
|
40
40
|
<a href='#SceneView'>[初始化三维场景视图]</a>
|
|
41
41
|
<br>[ES5引入方式]:<br/>
|
|
42
|
-
|
|
42
|
+
zondy.cesium.SceneView() <br/>
|
|
43
43
|
[ES6引入方式]:<br/>
|
|
44
44
|
import { SceneView } from '@mapgis/webclient-cesium-plugin' <br/>
|
|
45
45
|
自定义样式说明:<br/>
|
|
@@ -378,9 +378,11 @@ zondy-popup__footer 弹窗底部样式<br/></p>
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
381
|
-
const { Map
|
|
381
|
+
const { Map } = zondy
|
|
382
|
+
const { SceneView } = zondy.cesium
|
|
382
383
|
// ES6引入方式
|
|
383
|
-
import {
|
|
384
|
+
import { SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
385
|
+
import { Map } from "@mapgis/webclient-common"
|
|
384
386
|
// 初始化图层管理容器
|
|
385
387
|
const map = new Map();
|
|
386
388
|
// 初始化地图视图对象
|