@mapgis/webclient-cesium-plugin 17.2.2 → 17.2.4
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 +17 -0
- package/dist/es5/webclient-cesium-plugin.min.js +3 -3
- package/dist/es5/webclient-common.min.js +3 -3
- package/dist/webclient-cesium-plugin-es6.min.js +3 -3
- package/documention/AlgorithmLib.html +7009 -0
- package/documention/AngulationTool.html +1068 -0
- package/documention/ArcGISMapServerImageryProvider.html +46 -3
- package/documention/ArcGISTileServerImageryProvider.html +43 -3
- package/documention/ArcGISVectorTileImageryProvider.html +6 -1
- package/documention/CesiumTerrainProvider.html +139 -0
- package/documention/CuttingTool.html +2910 -0
- package/documention/Deferred.html +139 -0
- package/documention/DrawElement.html +1643 -0
- package/documention/DrawTool.html +1275 -0
- package/documention/EditTool.html +1839 -0
- package/documention/FloodAnalysisReflection.html +1282 -0
- package/documention/Graphic.html +4789 -0
- package/documention/GraphicsLayer.html +5071 -0
- package/documention/MapGISTerrainProvider.html +16 -2
- package/documention/MapGISTileServerImageryProvider.html +39 -2
- package/documention/MeasureAreaTool.html +1182 -0
- package/documention/MeasureLengthTool.html +2306 -0
- package/documention/MeasureSlopeTool.html +1141 -0
- package/documention/ModelEditor.html +356 -0
- package/documention/PostProcessStageLibrary.html +1329 -0
- package/documention/Promise.html +980 -0
- package/documention/RiverGeometry.html +2659 -0
- package/documention/S3MTileset.html +34 -1
- package/documention/SelectTool.html +784 -0
- package/documention/ShadowRateAnalysis.html +1827 -0
- package/documention/ShadowRateDrawCommand.html +917 -0
- package/documention/Style.html +14203 -0
- package/documention/Tooltip.html +877 -0
- package/documention/TriangulationTool.html +1721 -0
- package/documention/VisiblityAnalysis.html +1998 -0
- package/documention/WaterReflection.html +1476 -0
- package/documention/WebMapServiceImageryProvider.html +45 -3
- package/documention/WebMapTileServiceImageryProvider.html +45 -3
- package/package.json +1 -1
|
@@ -626,13 +626,51 @@
|
|
|
626
626
|
<p class="code-caption"><h7>添加一个ArcGIS地图服务:原生接口开发</h7></p>
|
|
627
627
|
|
|
628
628
|
|
|
629
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
630
629
|
const provider = await ArcGISMapServerImageryProvider.fromUrl(url)
|
|
631
630
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
631
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
632
|
+
const { ArcGISMapServerImageryProvider } = zondy
|
|
633
|
+
// ES6引入方式
|
|
634
|
+
import { ArcGISMapServerImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
635
|
+
|
|
636
|
+
// 定义ArcGIS地图图片图层服务的基地址
|
|
637
|
+
const url = 'https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer'
|
|
638
|
+
|
|
639
|
+
// 添加ArcGIS地图图片图层
|
|
640
|
+
async function addArcGISMapImageLayer(url) {
|
|
641
|
+
const provider = await ArcGISMapServerImageryProvider.fromUrl(url)
|
|
642
|
+
viewer.imageryLayers.addImageryProvider(provider)
|
|
643
|
+
}
|
|
644
|
+
// 添加ArcGIS地图图片图层
|
|
645
|
+
addArcGISMapImageLayer(url)</code></pre>
|
|
632
646
|
|
|
633
647
|
|
|
634
648
|
<p class="code-caption"><h7>添加一个ArcGIS地图服务:混合接口开发</h7></p>
|
|
635
649
|
|
|
636
650
|
|
|
637
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
638
651
|
// 服务基地址
|
|
639
652
|
url: url
|
|
640
653
|
// 获取provider的初始化参数
|
|
641
654
|
const options = initializeOptions(layer, viewer)
|
|
642
655
|
// 构造provider对象
|
|
643
656
|
provider = new Cesium.ArcGisMapServerImageryProvider(options)
|
|
644
657
|
// 添加图层到Cesium视图中
|
|
645
658
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
659
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
660
|
+
const { ArcGISMapImageLayer } = zondy.Layer
|
|
661
|
+
const { initializeOptions } = zondy.cesium.util
|
|
662
|
+
// ES6引入方式
|
|
663
|
+
import { ArcGISMapImageLayer } from "@mapgis/webclient-common"
|
|
664
|
+
import { initializeOptions } from "@mapgis/webclient-cesium-plugin"
|
|
665
|
+
|
|
666
|
+
// 定义IGS地图图片图层服务的基地址
|
|
667
|
+
const url = 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer'
|
|
668
|
+
|
|
669
|
+
// 创建地图图片图层对象
|
|
670
|
+
const arcgisMapImageLayer = new ArcGISMapImageLayer({
|
|
671
|
+
// 服务基地址
|
|
672
|
+
url: url
|
|
673
|
+
})
|
|
674
|
+
|
|
675
|
+
// 获取地图图片图层服务的元信息
|
|
676
|
+
arcgisMapImageLayer.load().then((layer) => {
|
|
677
|
+
// 获取provider的初始化参数
|
|
678
|
+
const options = initializeOptions(layer, viewer)
|
|
679
|
+
// 构造provider对象
|
|
680
|
+
provider = new Cesium.ArcGisMapServerImageryProvider(options)
|
|
681
|
+
// 添加图层到Cesium视图中
|
|
682
|
+
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
683
|
+
})</code></pre>
|
|
646
684
|
|
|
647
685
|
|
|
648
686
|
|
|
@@ -906,7 +944,12 @@
|
|
|
906
944
|
<p class="code-caption"><h7 id='fromUrl'>通过ArcGIS地图服务的url获取ArcGISMapServerImageryProvider对象</h7></p>
|
|
907
945
|
|
|
908
946
|
|
|
909
|
-
<pre class="prettyprint"><code>const url = 'https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer'
|
|
910
947
|
const imageryProvider = await ArcGISMapServerImageryProvider.fromUrl(url)
|
|
911
948
|
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
949
|
+
<pre class="prettyprint"><code>const url = 'https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer'
|
|
950
|
+
const addImageryProvider = async (url) => {
|
|
951
|
+
const imageryProvider = await ArcGISMapServerImageryProvider.fromUrl(url)
|
|
952
|
+
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
953
|
+
}
|
|
954
|
+
addImageryProvider(url)</code></pre>
|
|
912
955
|
|
|
913
956
|
|
|
914
957
|
|
|
@@ -436,13 +436,48 @@
|
|
|
436
436
|
<p class="code-caption"><h7>添加一个ArcGIS瓦片服务:原生接口开发</h7></p>
|
|
437
437
|
|
|
438
438
|
|
|
439
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
440
439
|
const provider = await ArcGISTileServerImageryProvider.fromUrl(url)
|
|
441
440
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
441
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
442
|
+
const { ArcGISTileServerImageryProvider } = zondy
|
|
443
|
+
// ES6引入方式
|
|
444
|
+
import { ArcGISTileServerImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
445
|
+
|
|
446
|
+
// 定义ArcGIS瓦片图层服务的基地址
|
|
447
|
+
const url = 'https://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer'
|
|
448
|
+
|
|
449
|
+
// 添加ArcGIS瓦片图层
|
|
450
|
+
async function addArcGISMapImageLayer(url) {
|
|
451
|
+
const provider = await ArcGISTileServerImageryProvider.fromUrl(url)
|
|
452
|
+
viewer.imageryLayers.addImageryProvider(provider)
|
|
453
|
+
}
|
|
454
|
+
// 添加ArcGIS瓦片图层
|
|
455
|
+
addArcGISMapImageLayer(url)</code></pre>
|
|
442
456
|
|
|
443
457
|
|
|
444
458
|
<p class="code-caption"><h7>添加一个ArcGIS瓦片服务:混合接口开发</h7></p>
|
|
445
459
|
|
|
446
460
|
|
|
447
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
448
461
|
// 获取provider的初始化参数
|
|
449
462
|
const options = initializeOptions(layer, viewer)
|
|
450
463
|
// 构造provider对象
|
|
451
464
|
provider = new Cesium.UrlTemplateImageryProvider(options)
|
|
452
465
|
// 添加图层到Cesium视图中
|
|
453
466
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
467
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
468
|
+
const { ArcGISTileLayer } = zondy.Layer
|
|
469
|
+
const { initializeOptions } = zondy.cesium.util
|
|
470
|
+
// ES6引入方式
|
|
471
|
+
import { ArcGISTileLayer } from "@mapgis/webclient-common"
|
|
472
|
+
import { initializeOptions } from "@mapgis/webclient-cesium-plugin"
|
|
473
|
+
|
|
474
|
+
// 定义瓦片地图服务的基地址
|
|
475
|
+
const url = 'https://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer'
|
|
476
|
+
|
|
477
|
+
// 创建瓦片地图图层对象
|
|
478
|
+
const arcgisTileLayer = new ArcGISTileLayer({ url })
|
|
479
|
+
|
|
480
|
+
// 获取瓦片图层服务的元信息
|
|
481
|
+
arcgisMapImageLayer.load().then((layer) => {
|
|
482
|
+
// 获取provider的初始化参数
|
|
483
|
+
const options = initializeOptions(layer, viewer)
|
|
484
|
+
// 构造provider对象
|
|
485
|
+
provider = new Cesium.UrlTemplateImageryProvider(options)
|
|
486
|
+
// 添加图层到Cesium视图中
|
|
487
|
+
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
488
|
+
})</code></pre>
|
|
454
489
|
|
|
455
490
|
|
|
456
491
|
|
|
@@ -716,7 +751,12 @@
|
|
|
716
751
|
<p class="code-caption"><h7 id='fromUrl'>通过ArcGIS地图服务的url获取ArcGISTileServerImageryProvider对象</h7></p>
|
|
717
752
|
|
|
718
753
|
|
|
719
|
-
<pre class="prettyprint"><code>const url = 'https://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer'
|
|
720
754
|
const imageryProvider = await ArcGISTileServerImageryProvider.fromUrl(url)
|
|
721
755
|
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
756
|
+
<pre class="prettyprint"><code>const url = 'https://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer'
|
|
757
|
+
const addImageryProvider = async (url) => {
|
|
758
|
+
const imageryProvider = await ArcGISTileServerImageryProvider.fromUrl(url)
|
|
759
|
+
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
760
|
+
}
|
|
761
|
+
addImageryProvider(url)</code></pre>
|
|
722
762
|
|
|
723
763
|
|
|
724
764
|
|
|
@@ -830,7 +830,12 @@
|
|
|
830
830
|
<h5>示例</h5>
|
|
831
831
|
|
|
832
832
|
|
|
833
|
-
<pre class="prettyprint"><code>const url = 'https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer'
|
|
834
833
|
const imageryProvider = await ArcGISVectorTileImageryProvider.fromUrl(url)
|
|
835
834
|
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
835
|
+
<pre class="prettyprint"><code>const url = 'https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer'
|
|
836
|
+
const addImageryProvider = async (url) => {
|
|
837
|
+
const imageryProvider = await ArcGISVectorTileImageryProvider.fromUrl(url)
|
|
838
|
+
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
839
|
+
}
|
|
840
|
+
addImageryProvider(url)</code></pre>
|
|
836
841
|
|
|
837
842
|
|
|
838
843
|
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<header id="page-title" class="page-title">
|
|
2
|
+
|
|
3
|
+
<span class="page-title-main">类名</span>
|
|
4
|
+
<span class="page-title-sub">CesiumTerrainProvider</span>
|
|
5
|
+
|
|
6
|
+
</header>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<section>
|
|
13
|
+
|
|
14
|
+
<article>
|
|
15
|
+
<div class="container-overview">
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<div class='vertical-section'>
|
|
19
|
+
<div class="members">
|
|
20
|
+
<div class="member">
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<h4 class="name" id="CesiumTerrainProvider">
|
|
26
|
+
<a class="href-link" href="#CesiumTerrainProvider">#</a>
|
|
27
|
+
|
|
28
|
+
<span class="code-name" id="CesiumTerrainProvider" style="font-size:30px">
|
|
29
|
+
|
|
30
|
+
new CesiumTerrainProvider<span class="signature">()</span>
|
|
31
|
+
|
|
32
|
+
</span>
|
|
33
|
+
</h4>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<div class="description">
|
|
38
|
+
<p>CesiumTerrainProvider封装</p>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
<dl class="details">
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</dl>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</article>
|
|
138
|
+
|
|
139
|
+
</section>
|