@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
|
@@ -115,13 +115,50 @@
|
|
|
115
115
|
<p class="code-caption"><h7>添加一个WMS服务:原生接口开发</h7></p>
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
119
118
|
const provider = await WebMapServiceImageryProvider.fromUrl(url)
|
|
120
119
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
120
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
121
|
+
const { WebMapServiceImageryProvider } = zondy
|
|
122
|
+
// ES6引入方式
|
|
123
|
+
import { WebMapServiceImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
124
|
+
|
|
125
|
+
// 定义WMS图层服务的基地址
|
|
126
|
+
const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Map/湖北省4326/WMSServer'
|
|
127
|
+
|
|
128
|
+
// 添加WMS图层
|
|
129
|
+
async function addWMSLayer() {
|
|
130
|
+
const provider = await WebMapServiceImageryProvider.fromUrl(url)
|
|
131
|
+
viewer.imageryLayers.addImageryProvider(provider)
|
|
132
|
+
}
|
|
133
|
+
// 添加WMS图层
|
|
134
|
+
addWMSLayer(url)</code></pre>
|
|
121
135
|
|
|
122
136
|
|
|
123
137
|
<p class="code-caption"><h7>添加一个WMS服务:混合接口开发</h7></p>
|
|
124
138
|
|
|
125
139
|
|
|
126
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
127
140
|
url: url
|
|
128
141
|
// 获取provider的初始化参数
|
|
129
142
|
const options = initializeOptions(layer, viewer)
|
|
130
143
|
// 构造provider对象
|
|
131
144
|
provider = new Cesium.WebMapServiceImageryProvider(options)
|
|
132
145
|
// 添加图层到Cesium视图中
|
|
133
146
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
147
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
148
|
+
const { WMSLayer } = zondy.Layer
|
|
149
|
+
const { initializeOptions } = zondy.cesium.util
|
|
150
|
+
// ES6引入方式
|
|
151
|
+
import { initializeOptions } from "@mapgis/webclient-cesium-plugin"
|
|
152
|
+
import { WMSLayer } from "@mapgis/webclient-common"
|
|
153
|
+
|
|
154
|
+
// 定义WMS图层服务的基地址
|
|
155
|
+
const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Map/湖北省4326/WMSServer'
|
|
156
|
+
|
|
157
|
+
// 创建WMS图层对象
|
|
158
|
+
const wmsLayer = new WMSLayer({
|
|
159
|
+
url: url
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
// 获取WMS图层服务的元信息
|
|
163
|
+
wmsLayer.load().then((layer) => {
|
|
164
|
+
// 获取provider的初始化参数
|
|
165
|
+
const options = initializeOptions(layer, viewer)
|
|
166
|
+
// 构造provider对象
|
|
167
|
+
provider = new Cesium.WebMapServiceImageryProvider(options)
|
|
168
|
+
// 添加图层到Cesium视图中
|
|
169
|
+
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
170
|
+
})</code></pre>
|
|
134
171
|
|
|
135
172
|
|
|
136
173
|
|
|
@@ -395,7 +432,12 @@
|
|
|
395
432
|
<p class="code-caption"><h7 id='fromUrl'>通过WMS服务的url获取WebMapServiceImageryProvider对象</h7></p>
|
|
396
433
|
|
|
397
434
|
|
|
398
|
-
<pre class="prettyprint"><code>const url = 'http://localhost:8089/igs/rest/services/Map/example/WMSServer'
|
|
399
435
|
const imageryProvider = await WebMapServiceImageryProvider.fromUrl(url)
|
|
400
436
|
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
437
|
+
<pre class="prettyprint"><code>const url = 'http://localhost:8089/igs/rest/services/Map/example/WMSServer'
|
|
438
|
+
const addImageryProvider = async (url) => {
|
|
439
|
+
const imageryProvider = await WebMapServiceImageryProvider.fromUrl(url)
|
|
440
|
+
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
441
|
+
}
|
|
442
|
+
addImageryProvider(url)</code></pre>
|
|
401
443
|
|
|
402
444
|
|
|
403
445
|
|
|
@@ -115,13 +115,50 @@
|
|
|
115
115
|
<p class="code-caption"><h7>添加一个WMTS服务:原生接口开发</h7></p>
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
119
118
|
const provider = await WebMapTileServiceImageryProvider.fromUrl(url)
|
|
120
119
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
120
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
121
|
+
const { WebMapTileServiceImageryProvider } = zondy
|
|
122
|
+
// ES6引入方式
|
|
123
|
+
import { WebMapTileServiceImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
124
|
+
|
|
125
|
+
// 定义WMTS图层服务的基地址
|
|
126
|
+
const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Tile/HuBei_4326/WMTSServer'
|
|
127
|
+
|
|
128
|
+
// 添加WMTS图层
|
|
129
|
+
async function addWMTSLayer() {
|
|
130
|
+
const provider = await WebMapTileServiceImageryProvider.fromUrl(url)
|
|
131
|
+
viewer.imageryLayers.addImageryProvider(provider)
|
|
132
|
+
}
|
|
133
|
+
// 添加WMTS图层
|
|
134
|
+
addWMTSLayer()</code></pre>
|
|
121
135
|
|
|
122
136
|
|
|
123
137
|
<p class="code-caption"><h7>添加一个WMTS服务:混合接口开发</h7></p>
|
|
124
138
|
|
|
125
139
|
|
|
126
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
127
140
|
url: url
|
|
128
141
|
// 获取provider的初始化参数
|
|
129
142
|
const options = initializeOptions(layer, viewer)
|
|
130
143
|
// 构造provider对象
|
|
131
144
|
provider = new Cesium.WebMapTileServiceImageryProvider(options)
|
|
132
145
|
// 添加图层到Cesium视图中
|
|
133
146
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
147
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
148
|
+
const { WMTSLayer } = zondy.Layer
|
|
149
|
+
const { initializeOptions } = zondy.cesium.util
|
|
150
|
+
// ES6引入方式
|
|
151
|
+
import { initializeOptions } from "@mapgis/webclient-cesium-plugin"
|
|
152
|
+
import { WMSLayer } from "@mapgis/webclient-common"
|
|
153
|
+
|
|
154
|
+
// 定义WMTS图层服务的基地址
|
|
155
|
+
const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Tile/HuBei_4326/WMTSServer'
|
|
156
|
+
|
|
157
|
+
// 创建WMTS图层对象
|
|
158
|
+
const wmtsLayer = new WMTSLayer({
|
|
159
|
+
url: url
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
// 获取WMTS图层服务的元信息
|
|
163
|
+
wmtsLayer.load().then((layer) => {
|
|
164
|
+
// 获取provider的初始化参数
|
|
165
|
+
const options = initializeOptions(layer, viewer)
|
|
166
|
+
// 构造provider对象
|
|
167
|
+
provider = new Cesium.WebMapTileServiceImageryProvider(options)
|
|
168
|
+
// 添加图层到Cesium视图中
|
|
169
|
+
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
170
|
+
})</code></pre>
|
|
134
171
|
|
|
135
172
|
|
|
136
173
|
|
|
@@ -448,7 +485,12 @@
|
|
|
448
485
|
<p class="code-caption"><h7 id='fromUrl'>通过WMTS服务的url获取WebMapTileServiceImageryProvider对象</h7></p>
|
|
449
486
|
|
|
450
487
|
|
|
451
|
-
<pre class="prettyprint"><code>const url = 'http://localhost:8089/igs/rest/services/Map/example/WMTSServer'
|
|
452
488
|
const imageryProvider = await WebMapTileServiceImageryProvider.fromUrl(url)
|
|
453
489
|
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
490
|
+
<pre class="prettyprint"><code>const url = 'http://localhost:8089/igs/rest/services/Map/example/WMTSServer'
|
|
491
|
+
const addImageryProvider = async (url) => {
|
|
492
|
+
const imageryProvider = await WebMapTileServiceImageryProvider.fromUrl(url)
|
|
493
|
+
viewer.imageryLayers.addImageryProvider(imageryProvider)
|
|
494
|
+
}
|
|
495
|
+
addImageryProvider(url)</code></pre>
|
|
454
496
|
|
|
455
497
|
|
|
456
498
|
|