@mapgis/webclient-cesium-plugin 17.2.2 → 17.2.3
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 +9 -0
- package/dist/es5/webclient-cesium-plugin.min.js +5 -7
- package/dist/es5/webclient-common.min.js +3 -3
- package/dist/webclient-cesium-plugin-es6.min.js +5 -7
- package/documention/ArcGISMapServerImageryProvider.html +46 -3
- package/documention/ArcGISTileServerImageryProvider.html +43 -3
- package/documention/ArcGISVectorTileImageryProvider.html +6 -1
- package/documention/FloodAnalysisReflection.html +1282 -0
- package/documention/MapGISTerrainProvider.html +16 -2
- package/documention/MapGISTileServerImageryProvider.html +39 -2
- package/documention/PostProcessStageLibrary.html +1329 -0
- package/documention/S3MTileset.html +39 -6
- package/documention/WaterReflection.html +1476 -0
- package/documention/WebMapServiceImageryProvider.html +45 -3
- package/documention/WebMapTileServiceImageryProvider.html +45 -3
- package/package.json +1 -1
|
@@ -2501,7 +2501,14 @@ usually completes in time logarithmic to the number of rectangles added with Ces
|
|
|
2501
2501
|
<h5>示例</h5>
|
|
2502
2502
|
|
|
2503
2503
|
|
|
2504
|
-
<pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Scene/TwTerrain/SceneServer'
|
|
2505
2504
|
const imageryProvider = await MapGISTerrainProvider.fromUrl(url)
|
|
2506
2505
|
if (terrainProvider) {
|
|
2507
2506
|
viewer.terrainProvider = terrainProvider
|
|
2508
2507
|
}
|
|
2508
|
+
<pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Scene/TwTerrain/SceneServer'
|
|
2509
|
+
const addTerrainProvider = async (url) => {
|
|
2510
|
+
const imageryProvider = await MapGISTerrainProvider.fromUrl(url)
|
|
2511
|
+
if (terrainProvider) {
|
|
2512
|
+
viewer.terrainProvider = terrainProvider
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
addTerrainProvider(url)</code></pre>
|
|
2509
2516
|
|
|
2510
2517
|
|
|
2511
2518
|
|
|
@@ -7494,7 +7501,14 @@ usually completes in time logarithmic to the number of rectangles added with Ces
|
|
|
7494
7501
|
<h5>示例</h5>
|
|
7495
7502
|
|
|
7496
7503
|
|
|
7497
|
-
<pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Scene/TwTerrain/SceneServer'
|
|
7498
7504
|
const imageryProvider = await MapGISTerrainProvider.fromUrl(url)
|
|
7499
7505
|
if (terrainProvider) {
|
|
7500
7506
|
viewer.terrainProvider = terrainProvider
|
|
7501
7507
|
}
|
|
7508
|
+
<pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Scene/TwTerrain/SceneServer'
|
|
7509
|
+
const addTerrainProvider = async (url) => {
|
|
7510
|
+
const imageryProvider = await MapGISTerrainProvider.fromUrl(url)
|
|
7511
|
+
if (terrainProvider) {
|
|
7512
|
+
viewer.terrainProvider = terrainProvider
|
|
7513
|
+
}
|
|
7514
|
+
}
|
|
7515
|
+
addTerrainProvider(url)</code></pre>
|
|
7502
7516
|
|
|
7503
7517
|
|
|
7504
7518
|
|
|
@@ -636,13 +636,50 @@
|
|
|
636
636
|
<p class="code-caption"><h7>添加一个MapGIS瓦片服务:原生接口</h7></p>
|
|
637
637
|
|
|
638
638
|
|
|
639
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
640
639
|
const provider = await MapGISTileServerImageryProvider.fromUrl(url)
|
|
641
640
|
viewer.imageryLayers.addImageryProvider(provider)
|
|
641
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
642
|
+
const { MapGISTileServerImageryProvider } = zondy
|
|
643
|
+
// ES6引入方式
|
|
644
|
+
import { MapGISTileServerImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
645
|
+
|
|
646
|
+
// 定义瓦片地图服务的基地址
|
|
647
|
+
const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Tile/%E6%AD%A6%E6%B1%89%E5%B8%82_4547_custom_1-10/TileServer'
|
|
648
|
+
|
|
649
|
+
// 加载IGS二维瓦片地图服务
|
|
650
|
+
async function addTileLayer() {
|
|
651
|
+
const provider = await MapGISTileServerImageryProvider.fromUrl(url)
|
|
652
|
+
viewer.imageryLayers.addImageryProvider(provider)
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
//添加栅格图层
|
|
656
|
+
addTileLayer()</code></pre>
|
|
642
657
|
|
|
643
658
|
|
|
644
659
|
<p class="code-caption"><h7>添加一个MapGIS瓦片服务:混合接口</h7></p>
|
|
645
660
|
|
|
646
661
|
|
|
647
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
648
662
|
// 获取provider的初始化参数
|
|
649
663
|
const options = initializeOptions(layer, viewer)
|
|
650
664
|
// 构造provider对象
|
|
651
665
|
provider = new MapGISTileServerImageryProvider(options)
|
|
652
666
|
// 添加图层到Cesium视图中
|
|
653
667
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
668
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
669
|
+
const { MapGISTileServerImageryProvider } = zondy
|
|
670
|
+
const { IGSTileLayer } = zondy.Layer
|
|
671
|
+
const { initializeOptions } = zondy.cesium.util
|
|
672
|
+
// ES6引入方式
|
|
673
|
+
import { initializeOptions, MapGISTileServerImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
674
|
+
import { IGSTileLayer } from "@mapgis/webclient-common"
|
|
675
|
+
|
|
676
|
+
// 定义瓦片地图服务的基地址
|
|
677
|
+
const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Tile/%E6%AD%A6%E6%B1%89%E5%B8%82_4547_custom_1-10/TileServer'
|
|
678
|
+
|
|
679
|
+
// 创建瓦片地图图层对象
|
|
680
|
+
const igsTileLayer = new IGSTileLayer({ url })
|
|
681
|
+
|
|
682
|
+
// 获取瓦片图层服务的元信息
|
|
683
|
+
igsTileLayer.load().then((layer) => {
|
|
684
|
+
// 获取provider的初始化参数
|
|
685
|
+
const options = initializeOptions(layer, viewer)
|
|
686
|
+
// 构造provider对象
|
|
687
|
+
provider = new MapGISTileServerImageryProvider(options)
|
|
688
|
+
// 添加图层到Cesium视图中
|
|
689
|
+
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
690
|
+
})</code></pre>
|
|
654
691
|
|
|
655
692
|
|
|
656
693
|
|