@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.10
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 +280 -482
- package/dist/esm/commonjsHelpers.js +1 -0
- package/dist/esm/s3m.js +1 -0
- package/dist/esm/webclient-cesium-plugin.js +1 -0
- package/dist/umd/webclient-cesium-plugin.min.js +1 -0
- package/{documention → documentation}/AlgorithmLib.html +169 -149
- package/{documention → documentation}/AngulationTool.html +85 -51
- package/{documention → documentation}/AnimationTool.html +30 -30
- package/{documention → documentation}/ArcGISMapServerImageryProvider.html +9 -13
- package/{documention → documentation}/ArcGISMapServerSingleImageryProvider.html +90 -30
- package/{documention → documentation}/ArcGISTileServerImageryProvider.html +17 -17
- package/{documention → documentation}/ArcGISVectorTileImageryProvider.html +21 -8
- package/{documention → documentation}/BaseImageryProvider.html +2 -2
- package/{documention → documentation}/Cesium.Material.html +2 -2
- package/{documention → documentation}/Cesium.Viewer.html +5 -5
- package/{documention → documentation}/Cesium3DTileset.html +43 -25
- package/{documention → documentation}/CesiumHeatmap.html +22 -19
- package/{documention/S3MTileset.html → documentation/CesiumNavigation.html} +52 -85
- package/{documention → documentation}/CesiumTerrainProvider.html +55 -15
- package/{documention/OpenWeatherImageryProvider.html → documentation/CircleWaveMaterialProperty.html} +75 -95
- package/{documention → documentation}/CollisionDetectionByRender.html +245 -88
- package/{documention → documentation}/CompatibleFunc.html +24 -33
- package/{documention → documentation}/CustomPrimitive.html +3 -5
- package/{documention → documentation}/CustomProjection.html +3 -3
- package/{documention → documentation}/CustomTilingScheme.html +35 -36
- package/{documention → documentation}/CutFillAnalysis.html +59 -27
- package/{documention → documentation}/CuttingTool.html +198 -103
- package/{documention → documentation}/Deferred.html +2 -2
- package/{documention → documentation}/DrawElement.html +418 -34
- package/{documention → documentation}/DrawTool.html +81 -29
- package/documentation/EditTool.html +2819 -0
- package/{documention → documentation}/FirstPersonPerspective.html +18 -10
- package/{documention → documentation}/FloodAnalysis.html +93 -23
- package/{documention → documentation}/FloodAnalysisReflection.html +18 -44
- package/documentation/FlowParticle.html +863 -0
- package/{documention → documentation}/Fluid.html +473 -74
- package/{documention → documentation}/FluidFoam.html +36 -16
- package/{documention → documentation}/FluidReflection.html +68 -15
- package/{documention → documentation}/FluidShadow.html +67 -14
- package/{documention → documentation}/FluidSourceCollection.html +14 -7
- package/{documention → documentation}/FluidSpecular.html +33 -14
- package/documentation/FluidSurfaceDistortion.html +682 -0
- package/documentation/FluidSurfaceFoam.html +1006 -0
- package/{documention → documentation}/FollowPerspective.html +15 -7
- package/{documention → documentation}/GeoJSONLayerUtil.html +38 -10
- package/documentation/GeoJSONLayerView.html +1353 -0
- package/{documention → documentation}/GlobeIndependentTranslucency.html +89 -6
- package/{documention → documentation}/GodPerspective.html +14 -6
- package/{documention → documentation}/Graphic.html +1053 -1042
- package/{documention → documentation}/GraphicTransformTool.html +65 -23
- package/{documention → documentation}/GraphicsLayer.html +359 -156
- package/{documention → documentation}/GraphicsLayerUtil.html +28 -10
- package/documentation/GraphicsLayerView.html +759 -0
- package/{documention/EditTool.html → documentation/HashMap.html} +253 -418
- package/{documention → documentation}/HeightLimited.html +54 -21
- package/documentation/IGSFeatureLayerUtil.html +840 -0
- package/documentation/IGSFeatureLayerView.html +1348 -0
- package/documentation/IGSMapImageLayerUtil.html +855 -0
- package/{documention/IGSFeatureLayerUtil.html → documentation/IGSMapImageLayerView.html} +68 -46
- package/documentation/IGSTileLayerView.html +658 -0
- package/{documention → documentation}/ISSceneLayerUtil.html +3 -3
- package/{documention → documentation}/KeyboardCameraController.html +54 -6
- package/documentation/LightningStorm.html +2073 -0
- package/documentation/MapGISClusterPrimitiveCollection.html +1050 -0
- package/{documention → documentation}/MapGISDynamicLabelCollection.html +370 -178
- package/{documention → documentation}/MapGISFeatureGridCollection.html +123 -89
- package/{documention → documentation}/MapGISImageServerImageryProvider.html +93 -71
- package/{documention → documentation}/MapGISImageServerSingleImageryProvider.html +140 -92
- package/{documention → documentation}/MapGISM3DSet.html +49 -33
- package/{documention → documentation}/MapGISMapServerImageryProvider.html +78 -87
- package/{documention → documentation}/MapGISMapServerSingleImageryProvider.html +111 -43
- package/{documention → documentation}/MapGISTerrainProvider.html +268 -208
- package/{documention → documentation}/MapGISTerrainService.html +124 -82
- package/{documention → documentation}/MapGISTileAvailability.html +104 -47
- package/{documention → documentation}/MapGISTileServerImageryProvider.html +76 -83
- package/{documention → documentation}/MapGISVectorTileImageryProvider.html +135 -115
- package/{documention → documentation}/MeasureAreaTool.html +53 -14
- package/{documention → documentation}/MeasureLengthTool.html +17 -14
- package/{documention → documentation}/MeasureSlopeTool.html +73 -34
- package/{documention/FlowParticle.html → documentation/ModelEditor.html} +132 -116
- package/{documention → documentation}/ModelFilterTool.html +27 -32
- package/{documention → documentation}/ModelTransformTool.html +195 -110
- package/{documention → documentation}/NavigationControl.html +25 -5
- package/{documention → documentation}/NavigationTool.html +36 -14
- package/{documention → documentation}/NormalPerspective.html +33 -7
- package/documentation/OpenWeatherImageryProvider.html +1133 -0
- package/{documention → documentation}/PointFluidSource.html +22 -13
- package/{documention → documentation}/PolylineTrailLinkMaterialProperty.html +104 -20
- package/{documention → documentation}/Popup.html +246 -63
- package/{documention/CesiumNavigation.html → documentation/PostProcessShaderBuilder.html} +10 -54
- package/{documention → documentation}/PostProcessStageLibrary.html +3127 -121
- package/{documention → documentation}/Promise.html +6 -6
- package/{documention → documentation}/ProviderBaseUrlRegExp.html +20 -4
- package/{documention → documentation}/Puddle.html +30 -9
- package/{documention → documentation}/RadarMaterialProperty.html +73 -18
- package/{documention → documentation}/ReImg.html +164 -15
- package/{documention → documentation}/RenderUtil.html +158 -6
- package/{documention → documentation}/ResetViewNavigationControl.html +28 -8
- package/{documention → documentation}/RiverGeometry.html +7 -7
- package/{documention → documentation}/RoamParticle.html +86 -79
- package/{documention → documentation}/RouteAnimationControl.html +37 -15
- package/{documention → documentation}/RouteAnimationLabel.html +39 -12
- package/{documention → documentation}/RouteAnimationModel.html +43 -16
- package/{documention → documentation}/RouteAnimationPath.html +156 -18
- package/{documention → documentation}/RouteAnimationPerspective.html +12 -3
- package/{documention → documentation}/RouteAnimationTool.html +244 -24
- package/documentation/S3MTileset.html +570 -0
- package/{documention → documentation}/SSR.html +20 -39
- package/{documention → documentation}/SceneView.html +615 -419
- package/documentation/SceneViewUtil.html +1253 -0
- package/documentation/Screenshot.html +964 -0
- package/{documention → documentation}/SelectTool.html +31 -77
- package/{documention → documentation}/ShadowRateAnalysis.html +236 -54
- package/{documention → documentation}/ShadowRateDrawCommand.html +18 -6
- package/{documention → documentation}/SingleImageryProvider.html +32 -10
- package/{documention → documentation}/SketchEditor.html +280 -127
- package/documentation/SkyLineAnalysis.html +576 -0
- package/{documention → documentation}/StableParticle.html +165 -46
- package/{documention → documentation}/Style.html +249 -249
- package/{documention → documentation}/TerrainAnalyse.html +391 -105
- package/{documention → documentation}/TerrainExcavateTool.html +99 -3
- package/{documention → documentation}/TerrainProfile.html +198 -56
- package/{documention → documentation}/ThemeManager.html +93 -42
- package/{documention → documentation}/Tooltip.html +35 -18
- package/documentation/TransformTool.html +1010 -0
- package/{documention → documentation}/TriangulationTool.html +122 -83
- package/documentation/UnderfluidCaustic.html +843 -0
- package/documentation/UnderfluidDistortion.html +600 -0
- package/documentation/UnderfluidFog.html +843 -0
- package/documentation/UnderfluidGodRay.html +843 -0
- package/documentation/UnderwaterCaustic.html +867 -0
- package/documentation/UnderwaterDistortion.html +578 -0
- package/documentation/UnderwaterFog.html +867 -0
- package/documentation/UnderwaterGodRay.html +821 -0
- package/{documention → documentation}/UrlTemplateImageryProvider.html +21 -9
- package/{documention → documentation}/UserInterfaceControl.html +28 -9
- package/documentation/VectorTileLayerUtil.html +1364 -0
- package/{documention → documentation}/VisiblityAnalysis.html +15 -12
- package/{documention → documentation}/VolumeCloud.html +113 -21
- package/{documention → documentation}/VolumeFluidSource.html +24 -8
- package/{documention → documentation}/WFSLayerUtil.html +39 -10
- package/documentation/WFSLayerView.html +1353 -0
- package/documentation/WMSLayerUtil.html +879 -0
- package/documentation/WMTSLayerUtil.html +877 -0
- package/documentation/WaterDepth.html +583 -0
- package/{documention → documentation}/WaterReflection.html +29 -26
- package/documentation/WaterSurface.html +2555 -0
- package/{documention/Underwater.html → documentation/WaterSurfaceDistortion.html} +79 -81
- package/documentation/WaterSurfaceFoam.html +1029 -0
- package/documentation/WaterSurfaceSSR.html +867 -0
- package/{documention → documentation}/WebMapServiceImageryProvider.html +8 -12
- package/{documention → documentation}/WebMapServiceSingleImageryProvider.html +94 -32
- package/{documention → documentation}/WebMapTileServiceImageryProvider.html +10 -15
- package/documentation/WebTileLayerUtil.html +877 -0
- package/{documention → documentation}/Wind3D.html +133 -54
- package/{documention → documentation}/ZoomNavigationControl.html +145 -9
- package/documentation/fonts/glyphicons-halflings-regular.svg +543 -0
- package/{documention → documentation}/global.html +14130 -2719
- package/{documention → documentation}/index.html +1 -1
- package/{documention → documentation}/initializeOptions.html +2 -2
- package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +96 -95
- package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +47 -46
- package/{documention → documentation}/module.exports_module.exports.html +2 -2
- package/{documention → documentation}/nav.html +3267 -1392
- package/documentation/nav.json +320 -0
- package/documentation/styles/adminlte/AdminLTE.min.css +4966 -0
- package/documentation/styles/adminlte/skin-blue.min.css +135 -0
- package/documentation/styles/bootstrap.min.css +7005 -0
- package/documentation/styles/common.css +173 -0
- package/documentation/styles/examples.css +119 -0
- package/{documention → documentation}/styles/font-awesome.css +692 -687
- package/documentation/styles/header.css +558 -0
- package/documentation/styles/jaguar.css +551 -0
- package/{documention → documentation}/styles/prettify-tomorrow.css +59 -28
- package/{documention → documentation}/styles/style.customize.css +83 -99
- package/package.json +42 -22
- package/dist/es5/webclient-cesium-plugin.min.js +0 -77
- package/dist/es5/webclient-common.min.js +0 -159
- package/dist/webclient-cesium-plugin-es6.min.js +0 -77
- package/documention/CircleWaveMaterialProperty.html +0 -382
- package/documention/DynamicEntityVisualizer.html +0 -348
- package/documention/DynamicLabelLayer.html +0 -1841
- package/documention/GroundPrimitiveLayer.html +0 -1675
- package/documention/HashMap.html +0 -4197
- package/documention/ModelEditor.html +0 -374
- package/documention/SceneViewCesium.html +0 -5544
- package/documention/Screenshot.html +0 -773
- package/documention/SketchEditorCesium.html +0 -1571
- package/documention/createColorTexture.html +0 -369
- package/documention/fonts/glyphicons-halflings-regular.svg +0 -288
- package/documention/isCounterClockwise.html +0 -760
- package/documention/scripts/app.min.js +0 -1
- package/documention/scripts/jquery.min.map +0 -1
- package/documention/scripts/search.js +0 -20
- package/documention/scripts/sideBar.js +0 -228
- package/documention/scripts/underscore-min.map +0 -1
- package/documention/styles/adminlte/AdminLTE.min.css +0 -7
- package/documention/styles/adminlte/skin-blue.min.css +0 -1
- package/documention/styles/anchor.png +0 -0
- package/documention/styles/app.min.css +0 -1
- package/documention/styles/bootstrap.min.css +0 -6
- package/documention/styles/c.png +0 -0
- package/documention/styles/common.css +0 -175
- package/documention/styles/examples.css +0 -116
- package/documention/styles/header.css +0 -556
- package/documention/styles/iframe.css +0 -29
- package/documention/styles/jaguar.css +0 -553
- package/documention/styles/m.png +0 -0
- package/documention/styles/reset.css +0 -44
- package/documention/styles/up-arrow.png +0 -0
- package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +0 -162
- /package/{documention → documentation}/fonts/fontawesome-webfont.woff2 +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/{documention → documentation}/scripts/adminlte/app.min.js +0 -0
- /package/{documention → documentation}/scripts/bootstrap.min.js +0 -0
- /package/{documention → documentation}/scripts/jquery.min.js +0 -0
- /package/{documention → documentation}/scripts/linenumber.js +0 -0
- /package/{documention → documentation}/scripts/main.js +0 -0
- /package/{documention → documentation}/scripts/prettify/Apache-License-2.0.txt +0 -0
- /package/{documention → documentation}/scripts/prettify/lang-css.js +0 -0
- /package/{documention → documentation}/scripts/prettify/prettify.js +0 -0
- /package/{documention → documentation}/scripts/underscore-min.js +0 -0
- /package/{documention → documentation}/styles/adminlte/font-awesome.min.css +0 -0
- /package/{documention → documentation}/styles/prettify-jsdoc.css +0 -0
|
@@ -94,28 +94,15 @@
|
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
<p class="summary"><h5>请参考以下示例:</h5>
|
|
98
|
-
<a href='#example1'>1、加载M3D</a><br>
|
|
99
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#sceneLayer' target='_blank'>2、场景图层</a><br>
|
|
100
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#modelCacheLayer' target='_blank'>3、模型缓存图层</a><br>
|
|
101
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#clientQuery' target='_blank'>4、客户端查询</a><br>
|
|
102
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/edit/modelEditor/m3d-model-editor' target='_blank'>5、模型编辑(M3D)</a><br>
|
|
103
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/analyse/compareAnalyse/roller-shutter' target='_blank'>6、卷帘</a><br>
|
|
104
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#commonAnalyse' target='_blank'>7、三维分析</a><br>
|
|
105
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#modelAnalyse' target='_blank'>8、模型分析</a><br>
|
|
106
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#geologyAnalyse' target='_blank'>9、地质体分析</a><br>
|
|
107
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#themeLayer' target='_blank'>10、专题图</a><br>
|
|
108
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#commonVisualization' target='_blank'>11、场景美化</a><br>
|
|
109
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#postEffect' target='_blank'>12、后处理特效</a><br>
|
|
110
|
-
<h5>支持如下方法:</h5>
|
|
111
|
-
<a href='#fromUrl'>[1、通过ArcGIS地图服务的url获取ArcGISMapServerImageryProvider对象]</a><br/></p>
|
|
112
|
-
|
|
113
97
|
</dt>
|
|
114
98
|
<dd>
|
|
115
99
|
|
|
116
100
|
|
|
117
101
|
<div class="description">
|
|
118
|
-
<p>
|
|
102
|
+
<p>MapGIS M3D 场景模型封装类。</p>
|
|
103
|
+
<p>该类用于接入 MapGIS M3D 场景模型数据,并统一不同 Cesium 版本下的加载路径。
|
|
104
|
+
在高版本中优先调用 <code>Cesium.MapGISM3DSet.fromUrl</code>,低版本自动回退到构造函数创建。
|
|
105
|
+
调用方可通过 <code>fromUrl</code> 传入 <code>viewer</code>、<code>scene</code> 等上下文参数,避免直接处理底层兼容细节。</p>
|
|
119
106
|
</div>
|
|
120
107
|
|
|
121
108
|
|
|
@@ -164,17 +151,15 @@
|
|
|
164
151
|
|
|
165
152
|
<h5>Example</h5>
|
|
166
153
|
|
|
167
|
-
<p class="code-caption"><h7 id='example1'>加载M3D
|
|
154
|
+
<p class="code-caption"><h7 id='example1'>加载 M3D 场景模型</h7></p>
|
|
168
155
|
|
|
169
156
|
|
|
170
157
|
|
|
171
|
-
<pre class="prettyprint"><code>//
|
|
172
|
-
http://10.10.130.72:8086/#/modules/cesium/layer/modelCacheLayer/geologic-body-native
|
|
173
|
-
|
|
174
|
-
// ES5引入方式
|
|
158
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
175
159
|
const { MapGISM3DSet } = zondy.cesium
|
|
160
|
+
|
|
176
161
|
// ES6引入方式
|
|
177
|
-
import { MapGISM3DSet } from
|
|
162
|
+
import { MapGISM3DSet } from '@mapgis/webclient-cesium-plugin'
|
|
178
163
|
|
|
179
164
|
// webclient-cesium 1.84版本必须传入_scene参数,而webclient-cesium 1.122版本无需传入_scene参数
|
|
180
165
|
const options = {
|
|
@@ -186,7 +171,7 @@ const options = {
|
|
|
186
171
|
MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
187
172
|
viewer.scene.primitives.add(m3dset)
|
|
188
173
|
viewer.zoomTo(m3dset)
|
|
189
|
-
})
|
|
174
|
+
})</code></pre>
|
|
190
175
|
|
|
191
176
|
|
|
192
177
|
|
|
@@ -218,12 +203,12 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
218
203
|
<div class="nameContainer">
|
|
219
204
|
<h4 class="name" id=".fromUrl">
|
|
220
205
|
|
|
221
|
-
MapGISM3DSet.fromUrl<span class="signature">(url, options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.MapGISM3DSet}</span>
|
|
206
|
+
MapGISM3DSet.fromUrl<span class="signature">(url, <span class="optional">options</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Promise.html">Promise</a>.<Cesium.MapGISM3DSet>|Cesium.MapGISM3DSet}</span>
|
|
222
207
|
</h4>
|
|
223
208
|
|
|
224
209
|
|
|
225
210
|
<div class="tag-source">
|
|
226
|
-
engineExtensions/scene/M3D/MapGISM3DSet.js, line
|
|
211
|
+
engineExtensions/scene/M3D/MapGISM3DSet.js, line 33
|
|
227
212
|
</div>
|
|
228
213
|
|
|
229
214
|
</div>
|
|
@@ -234,7 +219,10 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
234
219
|
|
|
235
220
|
|
|
236
221
|
<div class="description">
|
|
237
|
-
<p>通过MapGIS M3D
|
|
222
|
+
<p>通过 MapGIS M3D 服务地址创建场景模型对象。</p>
|
|
223
|
+
<p>当业务同时兼容多个 Cesium 版本时,推荐统一通过该工厂方法加载 M3D 模型。
|
|
224
|
+
旧版本在使用自定义着色器或剖切封边功能时,仍需通过 <code>options._scene</code> 或 <code>options.viewer</code>
|
|
225
|
+
提供底层场景对象。</p>
|
|
238
226
|
</div>
|
|
239
227
|
|
|
240
228
|
|
|
@@ -255,6 +243,8 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
255
243
|
<th>Type</th>
|
|
256
244
|
|
|
257
245
|
|
|
246
|
+
<th>Default</th>
|
|
247
|
+
|
|
258
248
|
|
|
259
249
|
<th class="last">Description</th>
|
|
260
250
|
</tr>
|
|
@@ -281,10 +271,19 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
281
271
|
</td>
|
|
282
272
|
|
|
283
273
|
|
|
274
|
+
<td class="default">
|
|
275
|
+
|
|
276
|
+
</td>
|
|
277
|
+
|
|
284
278
|
|
|
285
279
|
<td class="description last">
|
|
286
280
|
|
|
287
|
-
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
<p>M3D 服务地址或资源对象。</p></td>
|
|
288
287
|
</tr>
|
|
289
288
|
|
|
290
289
|
|
|
@@ -304,10 +303,23 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
304
303
|
</td>
|
|
305
304
|
|
|
306
305
|
|
|
306
|
+
<td class="default">
|
|
307
|
+
|
|
308
|
+
{}
|
|
309
|
+
|
|
310
|
+
</td>
|
|
311
|
+
|
|
307
312
|
|
|
308
313
|
<td class="description last">
|
|
309
314
|
|
|
310
|
-
|
|
315
|
+
|
|
316
|
+
<span class="optional"> 可选</span>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
<p>附加初始化参数。若其中包含与 URL 解析结果同名的字段,会以 <code>options</code> 为准。</p></td>
|
|
311
323
|
</tr>
|
|
312
324
|
|
|
313
325
|
|
|
@@ -368,11 +380,14 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
368
380
|
|
|
369
381
|
<td class="type">
|
|
370
382
|
|
|
383
|
+
<a href="Promise.html">Promise</a>.<Cesium.MapGISM3DSet>
|
|
384
|
+
|
|
|
385
|
+
|
|
371
386
|
Cesium.MapGISM3DSet
|
|
372
387
|
|
|
373
388
|
|
|
374
389
|
</td>
|
|
375
|
-
<td class="description last"
|
|
390
|
+
<td class="description last">已初始化的 M3D 模型对象。</td>
|
|
376
391
|
</tr>
|
|
377
392
|
|
|
378
393
|
</tbody>
|
|
@@ -387,8 +402,9 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
387
402
|
|
|
388
403
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
389
404
|
const { MapGISM3DSet } = zondy.cesium
|
|
405
|
+
|
|
390
406
|
// ES6引入方式
|
|
391
|
-
import { MapGISM3DSet } from
|
|
407
|
+
import { MapGISM3DSet } from '@mapgis/webclient-cesium-plugin'
|
|
392
408
|
|
|
393
409
|
// webclient-cesium 1.84版本必须传入_scene参数,而webclient-cesium 1.122版本无需传入_scene参数
|
|
394
410
|
const options = {
|
|
@@ -400,7 +416,7 @@ const options = {
|
|
|
400
416
|
MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
401
417
|
viewer.scene.primitives.add(m3dset)
|
|
402
418
|
viewer.zoomTo(m3dset)
|
|
403
|
-
})
|
|
419
|
+
})</code></pre>
|
|
404
420
|
|
|
405
421
|
|
|
406
422
|
|
|
@@ -420,7 +436,7 @@ MapGISM3DSet.fromUrl(options.url, options).then(m3dset => {
|
|
|
420
436
|
|
|
421
437
|
|
|
422
438
|
<footer>
|
|
423
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri
|
|
439
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:30 GMT+0800 (中国标准时间)
|
|
424
440
|
</footer>
|
|
425
441
|
</div>
|
|
426
442
|
</div>
|
|
@@ -88,33 +88,21 @@
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
<div class="tag-source">
|
|
91
|
-
engineExtensions/scene/imageryProvider/MapGISMapServerImageryProvider.js, line
|
|
91
|
+
engineExtensions/scene/imageryProvider/MapGISMapServerImageryProvider.js, line 7
|
|
92
92
|
</div>
|
|
93
93
|
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
<p class="summary"><h5>请参考以下示例:</h5>
|
|
98
|
-
<a href='#example1'>1、添加一个MapGIS地图图片图层:原生接口开发</a><br>
|
|
99
|
-
<a href='#example2'>2、添加一个MapGIS瓦片图层:混合接口</a><br>
|
|
100
|
-
<a href='#example3'>3、extensions参数的配置方法</a><br>
|
|
101
|
-
<a href='#example4'>4、headers参数的配置方法</a><br>
|
|
102
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/layer/layerControl/mapgis-map-image-layers' target='_blank'>5、子图层过滤</a><br>
|
|
103
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/layer/layerControl/image-layer-elevation-mode-setting' target='_blank'>6、影像图层高程模式设置</a><br>
|
|
104
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/analyse/compareAnalyse/roller-shutter' target='_blank'>7、卷帘</a><br>
|
|
105
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/sceneControl/scene/globe-independent-translucency' target='_blank'>8、地表透明度独立控制</a><br>
|
|
106
|
-
<a href='http://10.10.130.72:8086/#/example-gallery/cesium#mapPictureLayer' target='_blank'>9、更多图层加载示例</a>
|
|
107
|
-
<h5 style='margin-top: 10px;'>支持如下方法:</h5>
|
|
108
|
-
<a href='#fromUrl'>[1、通过MapGIS地图服务的url获取MapGISMapServerImageryProvider对象]</a><br/>
|
|
109
|
-
<a href='#pickFeatures'>[2、获取瓦片的要素]</a><br/>
|
|
110
|
-
<a href='#requestImage'>[3、请求给定贴图的图像]</a><br/></p>
|
|
111
|
-
|
|
112
97
|
</dt>
|
|
113
98
|
<dd>
|
|
114
99
|
|
|
115
100
|
|
|
116
101
|
<div class="description">
|
|
117
102
|
<p>IGS地图服务接入类</p>
|
|
103
|
+
<p>该类用于将 IGS 地图服务封装为 Cesium 影像数据源,支持地图图片、场景覆盖物和 gdbp 出图三类常见接入方式。
|
|
104
|
+
建议优先使用 <code>fromUrl</code> 读取服务元信息后再创建实例,以保持图层参数与服务端能力一致。
|
|
105
|
+
当业务需要控制子图层过滤、动态图层、动态投影或请求头时,可在 <code>options</code> 中集中配置。</p>
|
|
118
106
|
</div>
|
|
119
107
|
|
|
120
108
|
|
|
@@ -1081,6 +1069,7 @@
|
|
|
1081
1069
|
|
|
1082
1070
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1083
1071
|
const { MapGISMapServerImageryProvider } = zondy
|
|
1072
|
+
|
|
1084
1073
|
// ES6引入方式
|
|
1085
1074
|
import { MapGISMapServerImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
1086
1075
|
|
|
@@ -1104,6 +1093,7 @@ addIGSMapImageLayer(url)</code></pre>
|
|
|
1104
1093
|
const { MapGISMapServerImageryProvider } = zondy
|
|
1105
1094
|
const { IGSMapImageLayer } = zondy.layer
|
|
1106
1095
|
const { initializeOptions } = zondy.cesium.util
|
|
1096
|
+
|
|
1107
1097
|
// ES6引入方式
|
|
1108
1098
|
import { MapGISMapServerImageryProvider, initializeOptions } from "@mapgis/webclient-cesium-plugin"
|
|
1109
1099
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
@@ -1133,8 +1123,9 @@ igsMapImageLayer.load().then((layer) => {
|
|
|
1133
1123
|
|
|
1134
1124
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1135
1125
|
const { MapGISMapServerImageryProvider } = zondy
|
|
1126
|
+
|
|
1136
1127
|
// ES6引入方式
|
|
1137
|
-
import { MapGISMapServerImageryProvider } from "@mapgis/webclient-cesium-
|
|
1128
|
+
import { MapGISMapServerImageryProvider } from "@mapgis/webclient-cesium-plugin"
|
|
1138
1129
|
|
|
1139
1130
|
// extensions参数为自定义扩展参数,需要确保服务端支持此类参数
|
|
1140
1131
|
const imageryProvider = new MapGISMapServerImageryProvider({
|
|
@@ -1460,14 +1451,14 @@ const options = {
|
|
|
1460
1451
|
|
|
1461
1452
|
<dt>
|
|
1462
1453
|
<div class="nameContainer">
|
|
1463
|
-
<h4 class="name" id="
|
|
1454
|
+
<h4 class="name" id="requestImage">
|
|
1464
1455
|
|
|
1465
|
-
|
|
1456
|
+
requestImage<span class="signature">(x, y, level, request)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Object}</span>
|
|
1466
1457
|
</h4>
|
|
1467
1458
|
|
|
1468
1459
|
|
|
1469
1460
|
<div class="tag-source">
|
|
1470
|
-
engineExtensions/scene/imageryProvider/MapGISMapServerImageryProvider.js, line
|
|
1461
|
+
engineExtensions/scene/imageryProvider/MapGISMapServerImageryProvider.js, line 254
|
|
1471
1462
|
</div>
|
|
1472
1463
|
|
|
1473
1464
|
</div>
|
|
@@ -1478,7 +1469,7 @@ const options = {
|
|
|
1478
1469
|
|
|
1479
1470
|
|
|
1480
1471
|
<div class="description">
|
|
1481
|
-
<p
|
|
1472
|
+
<p>请求给定贴图的图像<a id='requestImage'/></p>
|
|
1482
1473
|
</div>
|
|
1483
1474
|
|
|
1484
1475
|
|
|
@@ -1509,16 +1500,36 @@ const options = {
|
|
|
1509
1500
|
|
|
1510
1501
|
<tr>
|
|
1511
1502
|
|
|
1512
|
-
<td class="name"><code>
|
|
1503
|
+
<td class="name"><code>x</code></td>
|
|
1513
1504
|
|
|
1514
1505
|
|
|
1515
1506
|
<td class="type">
|
|
1516
1507
|
|
|
1517
1508
|
|
|
1518
|
-
<span class="param-type">
|
|
1519
|
-
|
|
|
1509
|
+
<span class="param-type">Number</span>
|
|
1520
1510
|
|
|
1521
|
-
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
</td>
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
<td class="description last">
|
|
1518
|
+
|
|
1519
|
+
<p>瓦片的X坐标</p></td>
|
|
1520
|
+
</tr>
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
<tr>
|
|
1525
|
+
|
|
1526
|
+
<td class="name"><code>y</code></td>
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
<td class="type">
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
<span class="param-type">Number</span>
|
|
1522
1533
|
|
|
1523
1534
|
|
|
1524
1535
|
|
|
@@ -1528,14 +1539,37 @@ const options = {
|
|
|
1528
1539
|
|
|
1529
1540
|
<td class="description last">
|
|
1530
1541
|
|
|
1531
|
-
<p
|
|
1542
|
+
<p>瓦片的Y坐标</p></td>
|
|
1532
1543
|
</tr>
|
|
1533
1544
|
|
|
1534
1545
|
|
|
1535
1546
|
|
|
1536
1547
|
<tr>
|
|
1537
1548
|
|
|
1538
|
-
<td class="name"><code>
|
|
1549
|
+
<td class="name"><code>level</code></td>
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
<td class="type">
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
<span class="param-type">Number</span>
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
</td>
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
<td class="description last">
|
|
1564
|
+
|
|
1565
|
+
<p>瓦片的详细级别</p></td>
|
|
1566
|
+
</tr>
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
<tr>
|
|
1571
|
+
|
|
1572
|
+
<td class="name"><code>request</code></td>
|
|
1539
1573
|
|
|
1540
1574
|
|
|
1541
1575
|
<td class="type">
|
|
@@ -1551,7 +1585,7 @@ const options = {
|
|
|
1551
1585
|
|
|
1552
1586
|
<td class="description last">
|
|
1553
1587
|
|
|
1554
|
-
<p
|
|
1588
|
+
<p>请求对象</p></td>
|
|
1555
1589
|
</tr>
|
|
1556
1590
|
|
|
1557
1591
|
|
|
@@ -1612,11 +1646,11 @@ const options = {
|
|
|
1612
1646
|
|
|
1613
1647
|
<td class="type">
|
|
1614
1648
|
|
|
1615
|
-
|
|
1649
|
+
Object
|
|
1616
1650
|
|
|
1617
1651
|
|
|
1618
1652
|
</td>
|
|
1619
|
-
<td class="description last"
|
|
1653
|
+
<td class="description last">瓦片的Resource对象</td>
|
|
1620
1654
|
</tr>
|
|
1621
1655
|
|
|
1622
1656
|
</tbody>
|
|
@@ -1631,14 +1665,14 @@ const options = {
|
|
|
1631
1665
|
|
|
1632
1666
|
<dt>
|
|
1633
1667
|
<div class="nameContainer">
|
|
1634
|
-
<h4 class="name" id="
|
|
1668
|
+
<h4 class="name" id=".fromUrl">
|
|
1635
1669
|
|
|
1636
|
-
|
|
1670
|
+
MapGISMapServerImageryProvider.fromUrl<span class="signature">(url, options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{zondy.cesium.MapGISMapServerImageryProvider}</span>
|
|
1637
1671
|
</h4>
|
|
1638
1672
|
|
|
1639
1673
|
|
|
1640
1674
|
<div class="tag-source">
|
|
1641
|
-
engineExtensions/scene/imageryProvider/MapGISMapServerImageryProvider.js, line
|
|
1675
|
+
engineExtensions/scene/imageryProvider/MapGISMapServerImageryProvider.js, line 189
|
|
1642
1676
|
</div>
|
|
1643
1677
|
|
|
1644
1678
|
</div>
|
|
@@ -1649,7 +1683,7 @@ const options = {
|
|
|
1649
1683
|
|
|
1650
1684
|
|
|
1651
1685
|
<div class="description">
|
|
1652
|
-
<p
|
|
1686
|
+
<p>通过MapGIS地图服务的url获取MapGISMapServerImageryProvider对象<a id='fromUrl'/></p>
|
|
1653
1687
|
</div>
|
|
1654
1688
|
|
|
1655
1689
|
|
|
@@ -1680,59 +1714,16 @@ const options = {
|
|
|
1680
1714
|
|
|
1681
1715
|
<tr>
|
|
1682
1716
|
|
|
1683
|
-
<td class="name"><code>
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
<td class="type">
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
<span class="param-type">Number</span>
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
</td>
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
<td class="description last">
|
|
1698
|
-
|
|
1699
|
-
<p>瓦片的X坐标</p></td>
|
|
1700
|
-
</tr>
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
<tr>
|
|
1705
|
-
|
|
1706
|
-
<td class="name"><code>y</code></td>
|
|
1717
|
+
<td class="name"><code>url</code></td>
|
|
1707
1718
|
|
|
1708
1719
|
|
|
1709
1720
|
<td class="type">
|
|
1710
1721
|
|
|
1711
1722
|
|
|
1712
|
-
<span class="param-type">
|
|
1713
|
-
|
|
1723
|
+
<span class="param-type">Cesium.Resource</span>
|
|
1724
|
+
|
|
|
1714
1725
|
|
|
1715
|
-
|
|
1716
|
-
</td>
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
<td class="description last">
|
|
1721
|
-
|
|
1722
|
-
<p>瓦片的Y坐标</p></td>
|
|
1723
|
-
</tr>
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
<tr>
|
|
1728
|
-
|
|
1729
|
-
<td class="name"><code>level</code></td>
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
<td class="type">
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
<span class="param-type">Number</span>
|
|
1726
|
+
<span class="param-type">String</span>
|
|
1736
1727
|
|
|
1737
1728
|
|
|
1738
1729
|
|
|
@@ -1742,14 +1733,14 @@ const options = {
|
|
|
1742
1733
|
|
|
1743
1734
|
<td class="description last">
|
|
1744
1735
|
|
|
1745
|
-
<p
|
|
1736
|
+
<p>服务的基地址,支持url字符串和Cesium.Resource两种类型,当类型为Cesium.Resource时,支持传入额外请求参数、请求头参数等,具体请参考<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/Resource.html' target='_blank'>Cesium.Resource</a></p></td>
|
|
1746
1737
|
</tr>
|
|
1747
1738
|
|
|
1748
1739
|
|
|
1749
1740
|
|
|
1750
1741
|
<tr>
|
|
1751
1742
|
|
|
1752
|
-
<td class="name"><code>
|
|
1743
|
+
<td class="name"><code>options</code></td>
|
|
1753
1744
|
|
|
1754
1745
|
|
|
1755
1746
|
<td class="type">
|
|
@@ -1765,7 +1756,7 @@ const options = {
|
|
|
1765
1756
|
|
|
1766
1757
|
<td class="description last">
|
|
1767
1758
|
|
|
1768
|
-
<p
|
|
1759
|
+
<p>实例化对象时提供的额外配置参数,若该对象中包含构造参数则会覆盖对应的构造参数</p></td>
|
|
1769
1760
|
</tr>
|
|
1770
1761
|
|
|
1771
1762
|
|
|
@@ -1826,11 +1817,11 @@ const options = {
|
|
|
1826
1817
|
|
|
1827
1818
|
<td class="type">
|
|
1828
1819
|
|
|
1829
|
-
|
|
1820
|
+
zondy.cesium.MapGISMapServerImageryProvider
|
|
1830
1821
|
|
|
1831
1822
|
|
|
1832
1823
|
</td>
|
|
1833
|
-
<td class="description last"
|
|
1824
|
+
<td class="description last">初始化完毕的MapGISMapServerImageryProvider对象</td>
|
|
1834
1825
|
</tr>
|
|
1835
1826
|
|
|
1836
1827
|
</tbody>
|
|
@@ -1855,7 +1846,7 @@ const options = {
|
|
|
1855
1846
|
|
|
1856
1847
|
|
|
1857
1848
|
<footer>
|
|
1858
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri
|
|
1849
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:30 GMT+0800 (中国标准时间)
|
|
1859
1850
|
</footer>
|
|
1860
1851
|
</div>
|
|
1861
1852
|
</div>
|