@mapgis/webclient-cesium-plugin 17.4.0 → 17.6.0
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 +674 -592
- package/dist/es5/webclient-cesium-plugin.min.js +10 -10
- package/dist/es5/webclient-common.min.js +63 -5
- package/dist/webclient-cesium-plugin-es6.min.js +10 -10
- package/documention/AlgorithmLib.html +10 -6
- package/documention/AngulationTool.html +147 -86
- package/documention/AnimationTool.html +10 -6
- package/documention/ArcGISMapServerImageryProvider.html +24 -40
- package/documention/ArcGISMapServerSingleImageryProvider.html +1070 -0
- package/documention/ArcGISTileServerImageryProvider.html +22 -10
- package/documention/ArcGISVectorTileImageryProvider.html +18 -9
- package/documention/BaseImageryProvider.html +1777 -0
- package/documention/Cesium.Material.html +10 -6
- package/documention/Cesium.Viewer.html +187 -6
- package/documention/Cesium3DTileset.html +10 -6
- package/documention/CesiumHeatmap.html +10 -6
- package/documention/CesiumNavigation.html +511 -0
- package/documention/CesiumTerrainProvider.html +10 -6
- package/documention/CircleWaveMaterialProperty.html +10 -6
- package/documention/CollisionDetectionByRender.html +10 -6
- package/documention/CompatibleFunc.html +262 -9
- package/documention/CustomPrimitive.html +463 -0
- package/documention/CustomProjection.html +10 -6
- package/documention/CustomTilingScheme.html +10 -6
- package/documention/CutFillAnalysis.html +10 -6
- package/documention/CuttingTool.html +158 -21
- package/documention/Deferred.html +10 -6
- package/documention/DrawElement.html +20 -16
- package/documention/DrawTool.html +12 -8
- package/documention/DynamicEntityVisualizer.html +12 -6
- package/documention/DynamicLabelLayer.html +333 -447
- package/documention/EditTool.html +10 -6
- package/documention/FloodAnalysis.html +10 -6
- package/documention/FloodAnalysisReflection.html +10 -6
- package/documention/FlowParticle.html +1052 -0
- package/documention/Fluid.html +2712 -0
- package/documention/FluidFoam.html +1052 -0
- package/documention/FluidReflection.html +954 -0
- package/documention/FluidShadow.html +954 -0
- package/documention/FluidSourceCollection.html +1399 -0
- package/documention/FluidSpecular.html +954 -0
- package/documention/GeoJSONLayerUtil.html +10 -6
- package/documention/GlobeIndependentTranslucency.html +10 -6
- package/documention/Graphic.html +10 -6
- package/documention/GraphicTransformTool.html +1207 -0
- package/documention/GraphicsLayer.html +11 -7
- package/documention/GraphicsLayerUtil.html +10 -6
- package/documention/GroundPrimitiveLayer.html +1675 -0
- package/documention/HashMap.html +10 -6
- package/documention/HeightLimited.html +10 -6
- package/documention/IGSFeatureLayerUtil.html +173 -6
- package/documention/ISSceneLayerUtil.html +41 -687
- package/documention/KeyboardCameraController.html +10 -6
- package/documention/MapGISDynamicLabelCollection.html +1696 -0
- package/documention/MapGISFeatureGridCollection.html +1579 -0
- package/documention/MapGISImageServerImageryProvider.html +1878 -0
- package/documention/MapGISM3DSet.html +13 -6
- package/documention/MapGISMapServerImageryProvider.html +175 -814
- package/documention/MapGISMapServerSingleImageryProvider.html +1222 -0
- package/documention/MapGISTerrainProvider.html +1102 -13
- package/documention/MapGISTerrainService.html +1740 -0
- package/documention/MapGISTileAvailability.html +12 -8
- package/documention/MapGISTileServerImageryProvider.html +102 -1343
- package/documention/MapGISVectorTileImageryProvider.html +130 -694
- package/documention/MeasureAreaTool.html +375 -6
- package/documention/MeasureLengthTool.html +103 -88
- package/documention/MeasureSlopeTool.html +220 -12
- package/documention/ModelEditor.html +10 -6
- package/documention/ModelFilterTool.html +10 -6
- package/documention/ModelTransformTool.html +443 -19
- package/documention/NavigationControl.html +512 -0
- package/documention/NavigationTool.html +694 -0
- package/documention/OpenWeatherImageryProvider.html +714 -0
- package/documention/PointFluidSource.html +866 -0
- package/documention/PolylineTrailLinkMaterialProperty.html +10 -6
- package/documention/Popup.html +11 -7
- package/documention/PostProcessStageLibrary.html +10 -6
- package/documention/Promise.html +10 -6
- package/documention/ProviderBaseUrlRegExp.html +735 -0
- package/documention/RadarMaterialProperty.html +10 -6
- package/documention/ReImg.html +10 -6
- package/documention/RenderUtil.html +685 -0
- package/documention/ResetViewNavigationControl.html +975 -0
- package/documention/RiverGeometry.html +10 -6
- package/documention/RoamParticle.html +10 -6
- package/documention/S3MTileset.html +13 -6
- package/documention/SceneView.html +3391 -18
- package/documention/SceneViewCesium.html +1028 -447
- package/documention/Screenshot.html +10 -6
- package/documention/SelectTool.html +10 -6
- package/documention/ShadowRateAnalysis.html +10 -6
- package/documention/ShadowRateDrawCommand.html +10 -6
- package/documention/SingleImageryProvider.html +1544 -0
- package/documention/SketchEditor.html +1774 -0
- package/documention/SketchEditorCesium.html +249 -365
- package/documention/StableParticle.html +10 -6
- package/documention/Style.html +10 -6
- package/documention/TerrainAnalyse.html +13 -9
- package/documention/TerrainProfile.html +90 -11
- package/documention/ThemeManager.html +11 -7
- package/documention/Tooltip.html +10 -6
- package/documention/TriangulationTool.html +119 -362
- package/documention/UrlTemplateImageryProvider.html +15 -10
- package/documention/UserInterfaceControl.html +1187 -0
- package/documention/VisiblityAnalysis.html +11 -7
- package/documention/VolumeFluidSource.html +664 -0
- package/documention/WFSLayerUtil.html +10 -6
- package/documention/WaterReflection.html +10 -6
- package/documention/WebMapServiceImageryProvider.html +17 -8
- package/documention/WebMapServiceSingleImageryProvider.html +1043 -0
- package/documention/WebMapTileServiceImageryProvider.html +18 -8
- package/documention/Wind3D.html +10 -6
- package/documention/ZoomNavigationControl.html +861 -0
- package/documention/createColorTexture.html +10 -6
- package/documention/global.html +961 -888
- package/documention/index.html +10 -6
- package/documention/initializeOptions.html +10 -6
- package/documention/isCounterClockwise.html +10 -6
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +10 -6
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +10 -6
- package/documention/module.exports_module.exports.html +10 -6
- package/package.json +2 -2
- package/documention/IGSSceneLayerUtil.html +0 -2313
- package/documention/SkyLineAnalysis.html +0 -660
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
<nav>
|
|
106
106
|
|
|
107
|
-
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AlgorithmLib"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AlgorithmLib.html">AlgorithmLib</a><span style="display: none;"><p>通用算法工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AngulationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AngulationTool.html">AngulationTool</a><span style="display: none;"><p>角度测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AnimationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AnimationTool.html">AnimationTool</a><span style="display: none;"><p>场景漫游工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISMapServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapServerImageryProvider.html">ArcGISMapServerImageryProvider</a><span style="display: none;"><p>ArcGIS
|
|
107
|
+
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AlgorithmLib"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AlgorithmLib.html">AlgorithmLib</a><span style="display: none;"><p>通用算法工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AngulationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AngulationTool.html">AngulationTool</a><span style="display: none;"><p>角度测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AnimationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AnimationTool.html">AnimationTool</a><span style="display: none;"><p>场景漫游工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISMapServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapServerImageryProvider.html">ArcGISMapServerImageryProvider</a><span style="display: none;"><p>ArcGIS地图服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISMapServerSingleImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapServerSingleImageryProvider.html">ArcGISMapServerSingleImageryProvider</a><span style="display: none;"><p>ArcGIS地图服务一张图出图接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISTileServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISTileServerImageryProvider.html">ArcGISTileServerImageryProvider</a><span style="display: none;"><p>ArcGIS瓦片服务接入类,现已不支持通过构造函数(new ArcGISTileServerImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISVectorTileImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISVectorTileImageryProvider.html">ArcGISVectorTileImageryProvider</a><span style="display: none;"><p>ArcGIS矢量瓦片服务接入类,现已不支持通过构造函数(new ArcGISVectorTileImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="BaseImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="BaseImageryProvider.html">BaseImageryProvider</a><span style="display: none;"><p>基础影像服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Cesium3DTileset"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium3DTileset.html">Cesium3DTileset</a><span style="display: none;"><p>Cesium3DTileset对象,现已不支持通过构造函数(new Cesium3DTileset())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Cesium.Material"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium.Material.html">Material</a><span style="display: none;"><p>新增了部分Cesium材质<br>
|
|
108
108
|
《PolylineTrailLink材质》<br>
|
|
109
109
|
参考示例:
|
|
110
110
|
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-polyline'>《线示例》</a>
|
|
@@ -201,7 +201,7 @@ repeat: 重复次数,2.0<br><br></p></span></li><li style="white-space: nowrap
|
|
|
201
201
|
</ol></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CutFillAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CutFillAnalysis.html">CutFillAnalysis</a><span style="display: none;"><p>填挖方分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CuttingTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CuttingTool.html">CuttingTool</a><span style="display: none;"><p>三维场景裁剪工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="DrawElement"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DrawElement.html">DrawElement</a><span style="display: none;"><p>几何绘制类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="DrawTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DrawTool.html">DrawTool</a><span style="display: none;"><p>绘制工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="DynamicEntityVisualizer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DynamicEntityVisualizer.html">DynamicEntityVisualizer</a><span style="display: none;"><p>动态实体视图类封装
|
|
202
202
|
1、支持BillBoard、Label、GroundPrimitive等动态显示,处理覆盖问题
|
|
203
203
|
2、动态显隐效果
|
|
204
|
-
3、视窗内性能优化</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="EditTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EditTool.html">EditTool</a><span style="display: none;"><p>标绘编辑工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FloodAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FloodAnalysis.html">FloodAnalysis</a><span style="display: none;"><p>洪水淹没分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FloodAnalysisReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FloodAnalysisReflection.html">FloodAnalysisReflection</a><span style="display: none;"><p>创建反射水面淹没分析的实例化对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GlobeIndependentTranslucency"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GlobeIndependentTranslucency.html">GlobeIndependentTranslucency</a><span style="display: none;"><p>单独控制地表透明度和影像图层的透明度,能够在开启地表透明后使部分影像图层不受地表透明的影响。</p>
|
|
204
|
+
3、视窗内性能优化</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="EditTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EditTool.html">EditTool</a><span style="display: none;"><p>标绘编辑工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FloodAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FloodAnalysis.html">FloodAnalysis</a><span style="display: none;"><p>洪水淹没分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FloodAnalysisReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FloodAnalysisReflection.html">FloodAnalysisReflection</a><span style="display: none;"><p>创建反射水面淹没分析的实例化对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FlowParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FlowParticle.html">FlowParticle</a><span style="display: none;"><p>流体粒子对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Fluid"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Fluid.html">Fluid</a><span style="display: none;"><p>流体模拟对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FluidFoam"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FluidFoam.html">FluidFoam</a><span style="display: none;"><p>流体白浪对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FluidReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FluidReflection.html">FluidReflection</a><span style="display: none;"><p>流体反射对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FluidShadow"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FluidShadow.html">FluidShadow</a><span style="display: none;"><p>流体阴影对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FluidSourceCollection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FluidSourceCollection.html">FluidSourceCollection</a><span style="display: none;"><p>流体源集合对象(该对象会在Fluid内部进行实例化,不需要额外手动实例化)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FluidSpecular"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FluidSpecular.html">FluidSpecular</a><span style="display: none;"><p>流体高光对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GlobeIndependentTranslucency"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GlobeIndependentTranslucency.html">GlobeIndependentTranslucency</a><span style="display: none;"><p>单独控制地表透明度和影像图层的透明度,能够在开启地表透明后使部分影像图层不受地表透明的影响。</p>
|
|
205
205
|
<p>实例化该类的对象同时也能够使用原生的地表透明参数,能够直接在实例化对象上修改 <code>GlobeTranslucency</code> 的参数(原生的
|
|
206
206
|
viewer.scene.globe.translucency依然能够使用,但两者同时使用时会造成相互干扰,推荐仅使用GlobeIndependentTranslucency来实现地表透明),
|
|
207
207
|
使用原生的地表透明方式还是该类的地表透明方式由 <a href="GlobeIndependentTranslucency.html#imageryLayers"><code>GlobeIndependentTranslucency#imageryLayers</code></a> 数组是否为空来区分。</p>
|
|
@@ -226,7 +226,7 @@ viewer.scene.globe.translucency依然能够使用,但两者同时使用时会
|
|
|
226
226
|
请参考以下示例:<br>
|
|
227
227
|
<a href='#example1'>1、初始化标绘图层</a><br>
|
|
228
228
|
<a href='#example2'>2、重写提示框对象</a><br>
|
|
229
|
-
<a href='http://webclient.smaryun.com/#/example-gallery/cesium#tdGraphBase' target='_blank'>3、更多示例</a></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="HeightLimited"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="HeightLimited.html">HeightLimited</a><span style="display: none;"><p>限高分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="initializeOptions"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="initializeOptions.html">initializeOptions</a><span style="display: none;"><p>构建实例化对象的配置参数</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="isCounterClockwise"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="isCounterClockwise.html">isCounterClockwise</a><span style="display: none;"><p>地形剖切工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="KeyboardCameraController"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="KeyboardCameraController.html">KeyboardCameraController</a><span style="display: none;"><p>场景相机漫游工具,可以实现沉浸式的鼠标键盘漫游功能,具体操作方法如下:</p>
|
|
229
|
+
<a href='http://webclient.smaryun.com/#/example-gallery/cesium#tdGraphBase' target='_blank'>3、更多示例</a></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GraphicTransformTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicTransformTool.html">GraphicTransformTool</a><span style="display: none;"><p>基础标绘变换工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="HeightLimited"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="HeightLimited.html">HeightLimited</a><span style="display: none;"><p>限高分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="initializeOptions"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="initializeOptions.html">initializeOptions</a><span style="display: none;"><p>构建实例化对象的配置参数</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="isCounterClockwise"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="isCounterClockwise.html">isCounterClockwise</a><span style="display: none;"><p>地形剖切工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="KeyboardCameraController"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="KeyboardCameraController.html">KeyboardCameraController</a><span style="display: none;"><p>场景相机漫游工具,可以实现沉浸式的鼠标键盘漫游功能,具体操作方法如下:</p>
|
|
230
230
|
<p>1. 相机平移操作,这类操作不会改变相机的朝向,只会改变相机的位置:</p>
|
|
231
231
|
<ul>
|
|
232
232
|
<li><code>W</code>:相机位置向前移动</li>
|
|
@@ -260,7 +260,9 @@ viewer.scene.globe.translucency依然能够使用,但两者同时使用时会
|
|
|
260
260
|
<ul>
|
|
261
261
|
<li><code>Shift</code>:加速相机平移操作,调整移动步长为原来的两倍</li>
|
|
262
262
|
<li><code>R</code>:重置视角到初始视角,仅在参数<code>initView</code>定义时有效</li>
|
|
263
|
-
</ul></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISM3DSet"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISM3DSet.html">MapGISM3DSet</a><span style="display: none;"><p>MapGISM3DSet对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISMapServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISMapServerImageryProvider.html">MapGISMapServerImageryProvider</a><span style="display: none;"><p>MapGIS地图图片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTerrainProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a><span style="display: none;"><p>MapGIS地形图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTileAvailability"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileAvailability.html">MapGISTileAvailability</a><span style="display: none;"><p>MapGIS的TileAvailability类,重写了Cesium.TileAvailability的所有方法,支持在内部自动筛选要使用的地形图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTileServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileServerImageryProvider.html">MapGISTileServerImageryProvider</a><span style="display: none;"><p>MapGIS瓦片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISVectorTileImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISVectorTileImageryProvider.html">MapGISVectorTileImageryProvider</a><span style="display: none;"><p>MapGIS矢量瓦片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureAreaTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureAreaTool.html">MeasureAreaTool</a><span style="display: none;"><p>面积测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureLengthTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureLengthTool.html">MeasureLengthTool</a><span style="display: none;"><p>距离测量</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureSlopeTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureSlopeTool.html">MeasureSlopeTool</a><span style="display: none;"><p>坡度测量</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelEditor.html">ModelEditor</a><span style="display: none;"><p>模型矩阵编辑工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelFilterTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelFilterTool.html">ModelFilterTool</a><span style="display: none;"><p>模型空间过滤工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelTransformTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelTransformTool.html">ModelTransformTool</a><span style="display: none;"><p>模型变换工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PolylineTrailLinkMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PolylineTrailLinkMaterialProperty.html">PolylineTrailLinkMaterialProperty</a><span style="display: none;"><p>流动纹理线材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PostProcessStageLibrary"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PostProcessStageLibrary.html">PostProcessStageLibrary</a><span style="display: none;"><p>用于创建后处理特效的扩展库</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="RadarMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RadarMaterialProperty.html">RadarMaterialProperty</a><span style="display: none;"><p>雷达扫描材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ReImg"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ReImg.html">ReImg</a><span style="display: none;"><p>截图(保存图片)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="RoamParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RoamParticle.html">RoamParticle</a><span style="display: none;"><p>跟随模型移动粒子特效</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="S3MTileset"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="S3MTileset.html">S3MTileset</a><span style="display: none;"><p>S3MTileset类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SelectTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SelectTool.html">SelectTool</a><span style="display: none;"><p>绘制工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ShadowRateAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ShadowRateAnalysis.html">ShadowRateAnalysis</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="StableParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="StableParticle.html">StableParticle</a><span style="display: none;"><p>固定位置粒子特效,可通过更改image与附加参数来实现火焰、喷泉、烟雾等粒子特效</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Style"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Style.html">Style</a><span style="display: none;"><p>标绘图元样式</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TerrainAnalyse"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainAnalyse.html">TerrainAnalyse</a><span style="display: none;"><p>地形分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TerrainProfile"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainProfile.html">TerrainProfile</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ThemeManager"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ThemeManager.html">ThemeManager</a><span style="display: none;"><p>统计图</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TriangulationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TriangulationTool.html">TriangulationTool</a><span style="display: none;"><p>三角测量</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="UrlTemplateImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UrlTemplateImageryProvider.html">UrlTemplateImageryProvider</a><span style="display: none;"><p>网络瓦片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VisiblityAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VisiblityAnalysis.html">VisiblityAnalysis</a><span style="display: none;"><p>通视分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WaterReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WaterReflection.html">WaterReflection</a><span style="display: none;"><p>创建反射水面的实例化对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceImageryProvider.html">WebMapServiceImageryProvider</a><span style="display: none;"><p>WMS图层,现已不支持通过构造函数(new WebMapServiceImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapTileServiceImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapTileServiceImageryProvider.html">WebMapTileServiceImageryProvider</a><span style="display: none;"><p>WMTS图层,现已不支持通过构造函数(new WebMapTileServiceImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Wind3D"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Wind3D.html">Wind3D</a><span style="display: none;"><p>风场系统</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">工具类模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GeoJSONLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GeoJSONLayerUtil.html">GeoJSONLayerUtil</a><span style="display: none;"><p>GeoJSON图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GraphicsLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicsLayerUtil.html">GraphicsLayerUtil</a><span style="display: none;"><p>几何图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSFeatureLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSFeatureLayerUtil.html">IGSFeatureLayerUtil</a><span style="display: none;"><p>IGSFeature图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WFSLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WFSLayerUtil.html">WFSLayerUtil</a><span style="display: none;"><p>WFS图层的工具类</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ISSceneLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ISSceneLayerUtil.html">ISSceneLayerUtil</a><span style="display: none;"><p>IS场景图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Popup"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>场景信息弹窗(cesium引擎)
|
|
263
|
+
</ul></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISDynamicLabelCollection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISDynamicLabelCollection.html">MapGISDynamicLabelCollection</a><span style="display: none;"><p>动态注记容器</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISFeatureGridCollection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISFeatureGridCollection.html">MapGISFeatureGridCollection</a><span style="display: none;"><p>网格要素容器</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISImageServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISImageServerImageryProvider.html">MapGISImageServerImageryProvider</a><span style="display: none;"><p>IGS影像服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISM3DSet"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISM3DSet.html">MapGISM3DSet</a><span style="display: none;"><p>MapGISM3DSet对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISMapServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISMapServerImageryProvider.html">MapGISMapServerImageryProvider</a><span style="display: none;"><p>IGS地图服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISMapServerSingleImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISMapServerSingleImageryProvider.html">MapGISMapServerSingleImageryProvider</a><span style="display: none;"><p>IGS地图服务一张图出图接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTerrainProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a><span style="display: none;"><p>MapGIS地形服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTerrainService"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTerrainService.html">MapGISTerrainService</a><span style="display: none;"><p>MapGIS地形服务对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTileAvailability"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileAvailability.html">MapGISTileAvailability</a><span style="display: none;"><p>MapGIS的TileAvailability类,重写了Cesium.TileAvailability的所有方法,支持在内部自动筛选要使用的地形图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTileServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileServerImageryProvider.html">MapGISTileServerImageryProvider</a><span style="display: none;"><p>IGS瓦片服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISVectorTileImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISVectorTileImageryProvider.html">MapGISVectorTileImageryProvider</a><span style="display: none;"><p>MapGIS矢量瓦片服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureAreaTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureAreaTool.html">MeasureAreaTool</a><span style="display: none;"><p>面积测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureLengthTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureLengthTool.html">MeasureLengthTool</a><span style="display: none;"><p>距离测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureSlopeTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureSlopeTool.html">MeasureSlopeTool</a><span style="display: none;"><p>坡度测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelEditor.html">ModelEditor</a><span style="display: none;"><p>模型矩阵编辑工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelFilterTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelFilterTool.html">ModelFilterTool</a><span style="display: none;"><p>模型空间过滤工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelTransformTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelTransformTool.html">ModelTransformTool</a><span style="display: none;"><p>模型变换工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="NavigationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="NavigationTool.html">NavigationTool</a><span style="display: none;"><p>A mixin which adds the Compass/Navigation widget to the Viewer widget.
|
|
264
|
+
Rather than being called directly, this function is normally passed as
|
|
265
|
+
a parameter to <code>Viewer#extend</code>, as shown in the example below.</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="OpenWeatherImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="OpenWeatherImageryProvider.html">OpenWeatherImageryProvider</a><span style="display: none;"><p>OpenWeatherMap服务服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PointFluidSource"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PointFluidSource.html">PointFluidSource</a><span style="display: none;"><p>点流体源对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PolylineTrailLinkMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PolylineTrailLinkMaterialProperty.html">PolylineTrailLinkMaterialProperty</a><span style="display: none;"><p>流动纹理线材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PostProcessStageLibrary"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PostProcessStageLibrary.html">PostProcessStageLibrary</a><span style="display: none;"><p>用于创建后处理特效的扩展库</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="RadarMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RadarMaterialProperty.html">RadarMaterialProperty</a><span style="display: none;"><p>雷达扫描材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ReImg"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ReImg.html">ReImg</a><span style="display: none;"><p>截图(保存图片)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="RoamParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RoamParticle.html">RoamParticle</a><span style="display: none;"><p>跟随模型移动粒子特效</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="S3MTileset"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="S3MTileset.html">S3MTileset</a><span style="display: none;"><p>S3MTileset类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SelectTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SelectTool.html">SelectTool</a><span style="display: none;"><p>绘制工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ShadowRateAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ShadowRateAnalysis.html">ShadowRateAnalysis</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SingleImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SingleImageryProvider.html">SingleImageryProvider</a><span style="display: none;"><p>一张图出图的服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="StableParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="StableParticle.html">StableParticle</a><span style="display: none;"><p>固定位置粒子特效,可通过更改image与附加参数来实现火焰、喷泉、烟雾等粒子特效</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Style"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Style.html">Style</a><span style="display: none;"><p>标绘图元样式</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TerrainAnalyse"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainAnalyse.html">TerrainAnalyse</a><span style="display: none;"><p>地形分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TerrainProfile"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainProfile.html">TerrainProfile</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ThemeManager"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ThemeManager.html">ThemeManager</a><span style="display: none;"><p>统计图</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TriangulationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TriangulationTool.html">TriangulationTool</a><span style="display: none;"><p>三角测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="UrlTemplateImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UrlTemplateImageryProvider.html">UrlTemplateImageryProvider</a><span style="display: none;"><p>网络瓦片服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VisiblityAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VisiblityAnalysis.html">VisiblityAnalysis</a><span style="display: none;"><p>通视分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VolumeFluidSource"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VolumeFluidSource.html">VolumeFluidSource</a><span style="display: none;"><p>全域流体源对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WaterReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WaterReflection.html">WaterReflection</a><span style="display: none;"><p>创建反射水面的实例化对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceImageryProvider.html">WebMapServiceImageryProvider</a><span style="display: none;"><p>WMS服务接入类,现已不支持通过构造函数(new WebMapServiceImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceSingleImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceSingleImageryProvider.html">WebMapServiceSingleImageryProvider</a><span style="display: none;"><p>WMS服务一张图出图接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapTileServiceImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapTileServiceImageryProvider.html">WebMapTileServiceImageryProvider</a><span style="display: none;"><p>WMTS服务接入类,现已不支持通过构造函数(new WebMapTileServiceImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Wind3D"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Wind3D.html">Wind3D</a><span style="display: none;"><p>风场系统</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">工具类模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GeoJSONLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GeoJSONLayerUtil.html">GeoJSONLayerUtil</a><span style="display: none;"><p>GeoJSON图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GraphicsLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicsLayerUtil.html">GraphicsLayerUtil</a><span style="display: none;"><p>几何图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSFeatureLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSFeatureLayerUtil.html">IGSFeatureLayerUtil</a><span style="display: none;"><p>IGSFeature图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WFSLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WFSLayerUtil.html">WFSLayerUtil</a><span style="display: none;"><p>WFS图层的工具类</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ISSceneLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ISSceneLayerUtil.html">ISSceneLayerUtil</a><span style="display: none;"><p>IS场景图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Popup"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>场景信息弹窗(cesium引擎)
|
|
264
266
|
参考示例:
|
|
265
267
|
<a href='#SceneView'>[初始化三维场景视图]</a>
|
|
266
268
|
<br>[ES5引入方式]:<br/>
|
|
@@ -268,11 +270,13 @@ zondy.cesium.SceneView() <br/>
|
|
|
268
270
|
[ES6引入方式]:<br/>
|
|
269
271
|
import { SceneView } from '@mapgis/webclient-cesium-plugin' <br/>
|
|
270
272
|
自定义样式说明:<br/>
|
|
271
|
-
zondy-
|
|
273
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
272
274
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
273
275
|
zondy-popup__header 弹窗头部样式<br/>
|
|
274
276
|
zondy-popup__content 弹窗主体样式<br/>
|
|
275
|
-
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SceneView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SceneView.html">SceneView</a><span style="display: none;"><p
|
|
277
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SceneView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SceneView.html">SceneView</a><span style="display: none;"><p>场景视图类<br/>
|
|
278
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SceneView.html' target='_blank'>zondy.SceneView</a></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">服务模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ProviderBaseUrlRegExp"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ProviderBaseUrlRegExp.html">ProviderBaseUrlRegExp</a><span style="display: none;"><p>服务基地址匹配正则表达式</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SketchEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>Cesium引擎草图编辑类<br/>
|
|
279
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SketchEditor3D.html' target='_blank'>zondy.SketchEditor3D</a><br/>
|
|
276
280
|
<br>[ES5引入方式]:<br/>
|
|
277
281
|
const { SketchEditor } = zondy.tool.sketch <br/>
|
|
278
282
|
[ES6引入方式]:<br/>
|
|
@@ -317,7 +321,8 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
317
321
|
|
|
318
322
|
|
|
319
323
|
<div class="description">
|
|
320
|
-
<p
|
|
324
|
+
<p>场景视图类<br/>
|
|
325
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SceneView.html' target='_blank'>zondy.SceneView</a></p>
|
|
321
326
|
</div>
|
|
322
327
|
|
|
323
328
|
|
|
@@ -479,7 +484,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
479
484
|
</td>
|
|
480
485
|
|
|
481
486
|
|
|
482
|
-
<td class="description last"><p
|
|
487
|
+
<td class="description last"><p>地图视图中心点。如果中心点有高度,则优先使用中心点(经纬高)定位;如果中心点没有高度,看是否存在zoom/scale,使用center和zoom/scale定位(同时设置scale和zoom时,scale优先于zoom),否则默认zoom为到底3级。如果没有设置center,设置extent,则以extent定位。</p></td>
|
|
483
488
|
</tr>
|
|
484
489
|
|
|
485
490
|
|
|
@@ -513,7 +518,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
513
518
|
|
|
514
519
|
<tr class="deep-level-1">
|
|
515
520
|
|
|
516
|
-
<td class="name"><code>
|
|
521
|
+
<td class="name"><code>maxScale</code></td>
|
|
517
522
|
|
|
518
523
|
|
|
519
524
|
<td class="type">
|
|
@@ -531,7 +536,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
531
536
|
</td>
|
|
532
537
|
|
|
533
538
|
|
|
534
|
-
<td class="description last"><p
|
|
539
|
+
<td class="description last"><p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p></td>
|
|
535
540
|
</tr>
|
|
536
541
|
|
|
537
542
|
|
|
@@ -539,7 +544,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
539
544
|
|
|
540
545
|
<tr class="deep-level-1">
|
|
541
546
|
|
|
542
|
-
<td class="name"><code>
|
|
547
|
+
<td class="name"><code>minScale</code></td>
|
|
543
548
|
|
|
544
549
|
|
|
545
550
|
<td class="type">
|
|
@@ -554,12 +559,36 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
554
559
|
|
|
555
560
|
<td class="default">
|
|
556
561
|
|
|
557
|
-
|
|
562
|
+
</td>
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
<td class="description last"><p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p></td>
|
|
566
|
+
</tr>
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
<tr class="deep-level-1">
|
|
572
|
+
|
|
573
|
+
<td class="name"><code>zoom</code></td>
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
<td class="type">
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
<span class="param-type">Number</span>
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
</td>
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
<td class="default">
|
|
558
587
|
|
|
559
588
|
</td>
|
|
560
589
|
|
|
561
590
|
|
|
562
|
-
<td class="description last"><p
|
|
591
|
+
<td class="description last"><p>地图视图层级</p></td>
|
|
563
592
|
</tr>
|
|
564
593
|
|
|
565
594
|
|
|
@@ -582,12 +611,36 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
582
611
|
|
|
583
612
|
<td class="default">
|
|
584
613
|
|
|
585
|
-
|
|
614
|
+
</td>
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<td class="description last"><p>最大缩放级数 。优先级低于maxScale</p></td>
|
|
618
|
+
</tr>
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
<tr class="deep-level-1">
|
|
624
|
+
|
|
625
|
+
<td class="name"><code>minZoom</code></td>
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
<td class="type">
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
<span class="param-type">Number</span>
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
</td>
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
<td class="default">
|
|
586
639
|
|
|
587
640
|
</td>
|
|
588
641
|
|
|
589
642
|
|
|
590
|
-
<td class="description last"><p
|
|
643
|
+
<td class="description last"><p>最小缩放级数。优先级低于minScale</p></td>
|
|
591
644
|
</tr>
|
|
592
645
|
|
|
593
646
|
|
|
@@ -639,7 +692,63 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
639
692
|
</td>
|
|
640
693
|
|
|
641
694
|
|
|
642
|
-
<td class="description last"><p
|
|
695
|
+
<td class="description last"><p>场景视图初始所在的范围。如果没有设置center,但设置extent了,则地图视图定位到extent范围内。</p></td>
|
|
696
|
+
</tr>
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
<tr class="deep-level-1">
|
|
702
|
+
|
|
703
|
+
<td class="name"><code>extensionOptions</code></td>
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
<td class="type">
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
<span class="param-type">Object</span>
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
</td>
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
<td class="default">
|
|
717
|
+
|
|
718
|
+
{}
|
|
719
|
+
|
|
720
|
+
</td>
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
<td class="description last"><p>初始化视图的额外参数,可以通过该参数传入引擎原生的构造参数</p></td>
|
|
724
|
+
</tr>
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
<tr class="deep-level-1">
|
|
730
|
+
|
|
731
|
+
<td class="name"><code>logoScale</code></td>
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
<td class="type">
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
<span class="param-type">Number</span>
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
</td>
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
<td class="default">
|
|
745
|
+
|
|
746
|
+
1
|
|
747
|
+
|
|
748
|
+
</td>
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
<td class="description last"><p>商标缩放系数,该系数需大于等于0.2。默认为1倍,图标大小为宽98px、高28px。</p></td>
|
|
643
752
|
</tr>
|
|
644
753
|
|
|
645
754
|
|
|
@@ -814,7 +923,7 @@ const sceneView = new SceneView({
|
|
|
814
923
|
|
|
815
924
|
|
|
816
925
|
<ul>
|
|
817
|
-
<li>
|
|
926
|
+
<li>zondy.SceneView</li>
|
|
818
927
|
</ul>
|
|
819
928
|
|
|
820
929
|
|
|
@@ -910,7 +1019,7 @@ const sceneView = new SceneView({
|
|
|
910
1019
|
<span class="method-parameter is-pulled-right">
|
|
911
1020
|
<label>类型:</label>
|
|
912
1021
|
|
|
913
|
-
<span class="param-type">
|
|
1022
|
+
<span class="param-type">EngineType</span>
|
|
914
1023
|
|
|
915
1024
|
|
|
916
1025
|
</span>
|
|
@@ -960,6 +1069,76 @@ const sceneView = new SceneView({
|
|
|
960
1069
|
|
|
961
1070
|
|
|
962
1071
|
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
</dl>
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
</div>
|
|
1090
|
+
|
|
1091
|
+
<div class="member">
|
|
1092
|
+
|
|
1093
|
+
<span class="method-parameter is-pulled-right">
|
|
1094
|
+
<label>类型:</label>
|
|
1095
|
+
|
|
1096
|
+
<span class="param-type">Object</span>
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
</span>
|
|
1100
|
+
|
|
1101
|
+
<h4 class="name" id="extensionOptions">
|
|
1102
|
+
<a class="href-link" href="#extensionOptions">#</a>
|
|
1103
|
+
|
|
1104
|
+
<span class="code-name">
|
|
1105
|
+
extensionOptions
|
|
1106
|
+
</span>
|
|
1107
|
+
|
|
1108
|
+
</h4>
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
<div class="description">
|
|
1114
|
+
<p>初始化视图的额外参数,可以通过该参数传入引擎原生的构造参数</p>
|
|
1115
|
+
</div>
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
<dl class="details">
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
963
1142
|
|
|
964
1143
|
|
|
965
1144
|
|
|
@@ -1104,6 +1283,76 @@ const sceneView = new SceneView({
|
|
|
1104
1283
|
|
|
1105
1284
|
|
|
1106
1285
|
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
</dl>
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
</div>
|
|
1304
|
+
|
|
1305
|
+
<div class="member">
|
|
1306
|
+
|
|
1307
|
+
<span class="method-parameter is-pulled-right">
|
|
1308
|
+
<label>类型:</label>
|
|
1309
|
+
|
|
1310
|
+
<span class="param-type">Number</span>
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
</span>
|
|
1314
|
+
|
|
1315
|
+
<h4 class="name" id="logoScale">
|
|
1316
|
+
<a class="href-link" href="#logoScale">#</a>
|
|
1317
|
+
|
|
1318
|
+
<span class="code-name">
|
|
1319
|
+
logoScale
|
|
1320
|
+
</span>
|
|
1321
|
+
|
|
1322
|
+
</h4>
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
<div class="description">
|
|
1328
|
+
<p>商标缩放系数</p>
|
|
1329
|
+
</div>
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
<dl class="details">
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1107
1356
|
|
|
1108
1357
|
|
|
1109
1358
|
|
|
@@ -1700,6 +1949,3130 @@ const sceneView = new SceneView({
|
|
|
1700
1949
|
|
|
1701
1950
|
|
|
1702
1951
|
|
|
1952
|
+
<div class='vertical-section'>
|
|
1953
|
+
<h3 id='function'>方法</h3>
|
|
1954
|
+
<div class="members">
|
|
1955
|
+
|
|
1956
|
+
<div class="member">
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
<h4 class="name" id=".fromJSON">
|
|
1961
|
+
<a class="href-link" href="#.fromJSON">#</a>
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
<span class='tag'>static</span>
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
<span class="code-name" style="font-size:30px">
|
|
1968
|
+
|
|
1969
|
+
fromJSON<span class="signature">(json)</span>
|
|
1970
|
+
|
|
1971
|
+
</span>
|
|
1972
|
+
</h4>
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
<div class="description">
|
|
1977
|
+
<p><a id='fromJSON'></a>
|
|
1978
|
+
通过一个配置生成一个场景视图对象</p>
|
|
1979
|
+
</div>
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
<h4>参数:</h4>
|
|
1991
|
+
|
|
1992
|
+
<div class="table-container">
|
|
1993
|
+
<table class="params table">
|
|
1994
|
+
<thead>
|
|
1995
|
+
<tr>
|
|
1996
|
+
|
|
1997
|
+
<th>名称</th>
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
<th>类型</th>
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
<th class="last">描述</th>
|
|
2005
|
+
</tr>
|
|
2006
|
+
</thead>
|
|
2007
|
+
|
|
2008
|
+
<tbody>
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
<tr class="deep-level-0">
|
|
2013
|
+
|
|
2014
|
+
<td class="name"><code>json</code></td>
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
<td class="type">
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
<span class="param-type">Object</span>
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
</td>
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
<td class="description last"><p>场景视图配置</p></td>
|
|
2029
|
+
</tr>
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
</tbody>
|
|
2035
|
+
</table>
|
|
2036
|
+
</div>
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
<dl class="details">
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
</dl>
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
<div class='columns method-parameter'>
|
|
2095
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2096
|
+
<div class="column is-10">
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
<div class="columns">
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
<div class='column is-5 has-text-left'>
|
|
2104
|
+
<label>类型: </label>
|
|
2105
|
+
|
|
2106
|
+
<span class="param-type"><a href="SceneView.html">SceneView</a></span>
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
</div>
|
|
2110
|
+
|
|
2111
|
+
</div>
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
</div>
|
|
2115
|
+
</div>
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
</div>
|
|
2123
|
+
|
|
2124
|
+
<div class="member">
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
<h4 class="name" id="flyTo">
|
|
2129
|
+
<a class="href-link" href="#flyTo">#</a>
|
|
2130
|
+
|
|
2131
|
+
<span class="code-name" style="font-size:30px">
|
|
2132
|
+
|
|
2133
|
+
flyTo<span class="signature">(options)</span>
|
|
2134
|
+
|
|
2135
|
+
</span>
|
|
2136
|
+
</h4>
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
<div class="description">
|
|
2141
|
+
<p>视点跳转</p>
|
|
2142
|
+
</div>
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
<h4>参数:</h4>
|
|
2154
|
+
|
|
2155
|
+
<div class="table-container">
|
|
2156
|
+
<table class="params table">
|
|
2157
|
+
<thead>
|
|
2158
|
+
<tr>
|
|
2159
|
+
|
|
2160
|
+
<th>名称</th>
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
<th>类型</th>
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
<th style="min-width: 100px;">默认值</th>
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
<th class="last">描述</th>
|
|
2170
|
+
</tr>
|
|
2171
|
+
</thead>
|
|
2172
|
+
|
|
2173
|
+
<tbody>
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
<tr class="deep-level-0">
|
|
2178
|
+
|
|
2179
|
+
<td class="name"><code>options</code></td>
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
<td class="type">
|
|
2183
|
+
|
|
2184
|
+
</td>
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
<td class="default">
|
|
2188
|
+
|
|
2189
|
+
</td>
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
<td class="description last"><p>跳转参数</p></td>
|
|
2193
|
+
</tr>
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
<tr class="deep-level-1">
|
|
2199
|
+
|
|
2200
|
+
<td class="name"><code>center</code></td>
|
|
2201
|
+
|
|
2202
|
+
|
|
2203
|
+
<td class="type">
|
|
2204
|
+
|
|
2205
|
+
|
|
2206
|
+
<span class="param-type">Array</span>
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
</td>
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
<td class="default">
|
|
2214
|
+
|
|
2215
|
+
</td>
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
<td class="description last"><p>相机要跳转的中心点,单位度,[精度,纬度,高程]</p></td>
|
|
2219
|
+
</tr>
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
<tr class="deep-level-1">
|
|
2225
|
+
|
|
2226
|
+
<td class="name"><code>duration</code></td>
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
<td class="type">
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
<span class="param-type">Number</span>
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
</td>
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
<td class="default">
|
|
2240
|
+
|
|
2241
|
+
2
|
|
2242
|
+
|
|
2243
|
+
</td>
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
<td class="description last"><p>相机飞行到终点时的持续时间,单位秒</p></td>
|
|
2247
|
+
</tr>
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
<tr class="deep-level-1">
|
|
2253
|
+
|
|
2254
|
+
<td class="name"><code>extent</code></td>
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
<td class="type">
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
<span class="param-type">Extent</span>
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
</td>
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
<td class="default">
|
|
2268
|
+
|
|
2269
|
+
</td>
|
|
2270
|
+
|
|
2271
|
+
|
|
2272
|
+
<td class="description last"><p>相机要飞行的某个范围</p></td>
|
|
2273
|
+
</tr>
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
<tr class="deep-level-1">
|
|
2279
|
+
|
|
2280
|
+
<td class="name"><code>orientation</code></td>
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
<td class="type">
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
<span class="param-type">Object</span>
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
</td>
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
<td class="default">
|
|
2294
|
+
|
|
2295
|
+
</td>
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
<td class="description last"><p>相机飞行到终点时的视角朝向,包含偏航角、俯仰角和翻滚角</p></td>
|
|
2299
|
+
</tr>
|
|
2300
|
+
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
<tr class="deep-level-1">
|
|
2305
|
+
|
|
2306
|
+
<td class="name"><code>complete</code></td>
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
<td class="type">
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
<span class="param-type">function</span>
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
</td>
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
<td class="default">
|
|
2320
|
+
|
|
2321
|
+
</td>
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
<td class="description last"><p>相机飞行到终点时触发的函数</p></td>
|
|
2325
|
+
</tr>
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
<tr class="deep-level-1">
|
|
2331
|
+
|
|
2332
|
+
<td class="name"><code>cancel</code></td>
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
<td class="type">
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
<span class="param-type">function</span>
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
</td>
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
<td class="default">
|
|
2346
|
+
|
|
2347
|
+
</td>
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
<td class="description last"><p>相机取消飞行时触发的函数</p></td>
|
|
2351
|
+
</tr>
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
<tr class="deep-level-1">
|
|
2357
|
+
|
|
2358
|
+
<td class="name"><code>endTransform</code></td>
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
<td class="type">
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
<span class="param-type">Object</span>
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
</td>
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
<td class="default">
|
|
2372
|
+
|
|
2373
|
+
</td>
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
<td class="description last"><p>相机飞行到终点时的矩阵</p></td>
|
|
2377
|
+
</tr>
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
<tr class="deep-level-1">
|
|
2383
|
+
|
|
2384
|
+
<td class="name"><code>maximumHeight</code></td>
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
<td class="type">
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
<span class="param-type">Number</span>
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
|
|
2394
|
+
</td>
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
<td class="default">
|
|
2398
|
+
|
|
2399
|
+
</td>
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
<td class="description last"><p>相机飞行的最大高度</p></td>
|
|
2403
|
+
</tr>
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
<tr class="deep-level-1">
|
|
2409
|
+
|
|
2410
|
+
<td class="name"><code>pitchAdjustHeight</code></td>
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
<td class="type">
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
<span class="param-type">Number</span>
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
</td>
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
<td class="default">
|
|
2424
|
+
|
|
2425
|
+
</td>
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
<td class="description last"><p>如果相机的飞行高度高于该值,则调整飞行过程中的俯仰角使相机视角向下看,并将地球保持在相机视窗中</p></td>
|
|
2429
|
+
</tr>
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
<tr class="deep-level-1">
|
|
2435
|
+
|
|
2436
|
+
<td class="name"><code>flyOverLongitude</code></td>
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
<td class="type">
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
<span class="param-type">Number</span>
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
</td>
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
<td class="default">
|
|
2450
|
+
|
|
2451
|
+
</td>
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
<td class="description last"><p>强制让相机绕着地球飞行指定经度,直到到达终点位置</p></td>
|
|
2455
|
+
</tr>
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
|
|
2460
|
+
<tr class="deep-level-1">
|
|
2461
|
+
|
|
2462
|
+
<td class="name"><code>flyOverLongitudeWeight</code></td>
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
<td class="type">
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
<span class="param-type">Number</span>
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
</td>
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
<td class="default">
|
|
2476
|
+
|
|
2477
|
+
</td>
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
<td class="description last"></td>
|
|
2481
|
+
</tr>
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
</tbody>
|
|
2490
|
+
</table>
|
|
2491
|
+
</div>
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
<dl class="details">
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
|
|
2510
|
+
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
</dl>
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
|
|
2554
|
+
<h5>示例</h5>
|
|
2555
|
+
|
|
2556
|
+
<p class="code-caption"><h7>按范围跳转</h7></p>
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
2560
|
+
const { Map } = zondy
|
|
2561
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
2562
|
+
const { LayerEventType } = zondy.Enum
|
|
2563
|
+
const { Extent } = zondy.geometry
|
|
2564
|
+
const { SceneView } = zondy.cesium
|
|
2565
|
+
// ES6引入方式
|
|
2566
|
+
import { Map, SceneView, IGSMapImageLayer, LayerEventType, Extent } from "@mapgis/webclient-common"
|
|
2567
|
+
import { SceneView} from "@mapgis/webclient-cesium-plugin"
|
|
2568
|
+
// 初始化图层管理容器
|
|
2569
|
+
const map = new Map();
|
|
2570
|
+
// 初始化地图视图对象
|
|
2571
|
+
const sceneView = new SceneView({
|
|
2572
|
+
// 视图id
|
|
2573
|
+
viewId: "mapgis-3d-viewer",
|
|
2574
|
+
// 图层管理容器
|
|
2575
|
+
map: map
|
|
2576
|
+
});
|
|
2577
|
+
// 添加一个地图图层
|
|
2578
|
+
const igsMapImageLayer = new IGSMapImageLayer({
|
|
2579
|
+
url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
|
|
2580
|
+
});
|
|
2581
|
+
map.add(igsMapImageLayer);
|
|
2582
|
+
// 图层加载完毕
|
|
2583
|
+
igsMapImageLayer.on(LayerEventType.layerViewCreated, function (result) {
|
|
2584
|
+
console.log("加载完毕:", result.layer)
|
|
2585
|
+
// 视点跳转
|
|
2586
|
+
sceneView.flyTo({
|
|
2587
|
+
extent: new Extent({
|
|
2588
|
+
xmin: 108.34341,
|
|
2589
|
+
ymin: 29.01258222765238,
|
|
2590
|
+
xmax: 116.15093956121316,
|
|
2591
|
+
ymax: 33.29320177370206
|
|
2592
|
+
})
|
|
2593
|
+
})
|
|
2594
|
+
})</code></pre>
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
<p class="code-caption"><h7>跳转中心点</h7></p>
|
|
2598
|
+
|
|
2599
|
+
|
|
2600
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
2601
|
+
const { Map } = zondy
|
|
2602
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
2603
|
+
const { LayerEventType } = zondy.Enum
|
|
2604
|
+
const { SceneView } = zondy.cesium
|
|
2605
|
+
// ES6引入方式
|
|
2606
|
+
import { Map, IGSMapImageLayer, LayerEventType } from "@mapgis/webclient-common"
|
|
2607
|
+
import { SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
2608
|
+
// 初始化图层管理容器
|
|
2609
|
+
const map = new Map();
|
|
2610
|
+
// 初始化地图视图对象
|
|
2611
|
+
const sceneView = new SceneView({
|
|
2612
|
+
// 视图id
|
|
2613
|
+
viewId: "mapgis-3d-viewer",
|
|
2614
|
+
// 图层管理容器
|
|
2615
|
+
map: map
|
|
2616
|
+
});
|
|
2617
|
+
// 添加一个地图图层
|
|
2618
|
+
const igsMapImageLayer = new IGSMapImageLayer({
|
|
2619
|
+
url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
|
|
2620
|
+
});
|
|
2621
|
+
map.add(igsMapImageLayer);
|
|
2622
|
+
// 图层加载完毕
|
|
2623
|
+
igsMapImageLayer.on(LayerEventType.layerViewCreated, function (result) {
|
|
2624
|
+
console.log("加载完毕:", result.layer)
|
|
2625
|
+
// 视点跳转
|
|
2626
|
+
sceneView.flyTo({
|
|
2627
|
+
center: [113, 30, 1000000]
|
|
2628
|
+
})
|
|
2629
|
+
})</code></pre>
|
|
2630
|
+
|
|
2631
|
+
|
|
2632
|
+
|
|
2633
|
+
</div>
|
|
2634
|
+
|
|
2635
|
+
<div class="member">
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
<h4 class="name" id="getCenter">
|
|
2640
|
+
<a class="href-link" href="#getCenter">#</a>
|
|
2641
|
+
|
|
2642
|
+
<span class="code-name" style="font-size:30px">
|
|
2643
|
+
|
|
2644
|
+
getCenter<span class="signature">()</span>
|
|
2645
|
+
|
|
2646
|
+
</span>
|
|
2647
|
+
</h4>
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
<div class="description">
|
|
2652
|
+
<p><a id='getCenter'></a>
|
|
2653
|
+
获取当前视图中心点</p>
|
|
2654
|
+
</div>
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
<dl class="details">
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
|
|
2690
|
+
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
|
|
2701
|
+
</dl>
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
<div class='columns method-parameter'>
|
|
2721
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2722
|
+
<div class="column is-10">
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
<div class="columns">
|
|
2727
|
+
|
|
2728
|
+
<div class='param-desc column is-7'><p>当前视图容器的宽高对象</p></div>
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
<div class='column is-5 has-text-left'>
|
|
2732
|
+
<label>类型: </label>
|
|
2733
|
+
|
|
2734
|
+
<span class="param-type">Object</span>
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
</div>
|
|
2738
|
+
|
|
2739
|
+
</div>
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
</div>
|
|
2743
|
+
</div>
|
|
2744
|
+
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
</div>
|
|
2751
|
+
|
|
2752
|
+
<div class="member">
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
<h4 class="name" id="getExtent">
|
|
2757
|
+
<a class="href-link" href="#getExtent">#</a>
|
|
2758
|
+
|
|
2759
|
+
<span class="code-name" style="font-size:30px">
|
|
2760
|
+
|
|
2761
|
+
getExtent<span class="signature">()</span>
|
|
2762
|
+
|
|
2763
|
+
</span>
|
|
2764
|
+
</h4>
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
<div class="description">
|
|
2769
|
+
<p><a id='getExtent'></a>
|
|
2770
|
+
获取当前视图的地理范围<a id='getExtent'></a></p>
|
|
2771
|
+
</div>
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
<dl class="details">
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
</dl>
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
|
|
2822
|
+
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
<div class='columns method-parameter'>
|
|
2838
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2839
|
+
<div class="column is-10">
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
<div class="columns">
|
|
2844
|
+
|
|
2845
|
+
<div class='param-desc column is-7'><p>获取当前视图的地理范围</p></div>
|
|
2846
|
+
|
|
2847
|
+
|
|
2848
|
+
<div class='column is-5 has-text-left'>
|
|
2849
|
+
<label>类型: </label>
|
|
2850
|
+
|
|
2851
|
+
<span class="param-type">Extent</span>
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
</div>
|
|
2855
|
+
|
|
2856
|
+
</div>
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
</div>
|
|
2860
|
+
</div>
|
|
2861
|
+
|
|
2862
|
+
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
|
|
2867
|
+
</div>
|
|
2868
|
+
|
|
2869
|
+
<div class="member">
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
<h4 class="name" id="getScale">
|
|
2874
|
+
<a class="href-link" href="#getScale">#</a>
|
|
2875
|
+
|
|
2876
|
+
<span class="code-name" style="font-size:30px">
|
|
2877
|
+
|
|
2878
|
+
getScale<span class="signature">()</span>
|
|
2879
|
+
|
|
2880
|
+
</span>
|
|
2881
|
+
</h4>
|
|
2882
|
+
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
<div class="description">
|
|
2886
|
+
<p>获取当前比例尺</p>
|
|
2887
|
+
</div>
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
|
|
2894
|
+
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
<dl class="details">
|
|
2903
|
+
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
|
|
2912
|
+
|
|
2913
|
+
|
|
2914
|
+
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
|
|
2922
|
+
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
|
|
2934
|
+
</dl>
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
<div class='columns method-parameter'>
|
|
2954
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2955
|
+
<div class="column is-10">
|
|
2956
|
+
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
<div class="columns">
|
|
2960
|
+
|
|
2961
|
+
<div class='param-desc column is-7'><p>比例尺 实际10000米:地图1米</p></div>
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
<div class='column is-5 has-text-left'>
|
|
2965
|
+
<label>类型: </label>
|
|
2966
|
+
|
|
2967
|
+
<span class="param-type">Number</span>
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
</div>
|
|
2971
|
+
|
|
2972
|
+
</div>
|
|
2973
|
+
|
|
2974
|
+
|
|
2975
|
+
</div>
|
|
2976
|
+
</div>
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
</div>
|
|
2984
|
+
|
|
2985
|
+
<div class="member">
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
<h4 class="name" id="getSize">
|
|
2990
|
+
<a class="href-link" href="#getSize">#</a>
|
|
2991
|
+
|
|
2992
|
+
<span class="code-name" style="font-size:30px">
|
|
2993
|
+
|
|
2994
|
+
getSize<span class="signature">()</span>
|
|
2995
|
+
|
|
2996
|
+
</span>
|
|
2997
|
+
</h4>
|
|
2998
|
+
|
|
2999
|
+
|
|
3000
|
+
|
|
3001
|
+
<div class="description">
|
|
3002
|
+
<p><a id='getSize'></a>
|
|
3003
|
+
获取当前视图容器的宽高,单位像素<a id='getSize'></a></p>
|
|
3004
|
+
</div>
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
<dl class="details">
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
</dl>
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
|
|
3060
|
+
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
<div class='columns method-parameter'>
|
|
3071
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3072
|
+
<div class="column is-10">
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
|
|
3076
|
+
<div class="columns">
|
|
3077
|
+
|
|
3078
|
+
<div class='param-desc column is-7'><p>当前视图容器的宽高对象</p></div>
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
<div class='column is-5 has-text-left'>
|
|
3082
|
+
<label>类型: </label>
|
|
3083
|
+
|
|
3084
|
+
<span class="param-type">Object</span>
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
</div>
|
|
3088
|
+
|
|
3089
|
+
</div>
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
</div>
|
|
3093
|
+
</div>
|
|
3094
|
+
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
</div>
|
|
3101
|
+
|
|
3102
|
+
<div class="member">
|
|
3103
|
+
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
<h4 class="name" id="getZoom">
|
|
3107
|
+
<a class="href-link" href="#getZoom">#</a>
|
|
3108
|
+
|
|
3109
|
+
<span class="code-name" style="font-size:30px">
|
|
3110
|
+
|
|
3111
|
+
getZoom<span class="signature">()</span>
|
|
3112
|
+
|
|
3113
|
+
</span>
|
|
3114
|
+
</h4>
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
|
|
3118
|
+
<div class="description">
|
|
3119
|
+
<p>获取当前层级</p>
|
|
3120
|
+
</div>
|
|
3121
|
+
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
<dl class="details">
|
|
3136
|
+
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
|
|
3167
|
+
</dl>
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
<div class='columns method-parameter'>
|
|
3187
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3188
|
+
<div class="column is-10">
|
|
3189
|
+
|
|
3190
|
+
|
|
3191
|
+
|
|
3192
|
+
<div class="columns">
|
|
3193
|
+
|
|
3194
|
+
<div class='param-desc column is-7'><p>层级</p></div>
|
|
3195
|
+
|
|
3196
|
+
|
|
3197
|
+
<div class='column is-5 has-text-left'>
|
|
3198
|
+
<label>类型: </label>
|
|
3199
|
+
|
|
3200
|
+
<span class="param-type">Number</span>
|
|
3201
|
+
|
|
3202
|
+
|
|
3203
|
+
</div>
|
|
3204
|
+
|
|
3205
|
+
</div>
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
</div>
|
|
3209
|
+
</div>
|
|
3210
|
+
|
|
3211
|
+
|
|
3212
|
+
|
|
3213
|
+
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
</div>
|
|
3217
|
+
|
|
3218
|
+
<div class="member">
|
|
3219
|
+
|
|
3220
|
+
|
|
3221
|
+
|
|
3222
|
+
<h4 class="name" id="goTo">
|
|
3223
|
+
<a class="href-link" href="#goTo">#</a>
|
|
3224
|
+
|
|
3225
|
+
<span class="code-name" style="font-size:30px">
|
|
3226
|
+
|
|
3227
|
+
goTo<span class="signature">(goToTarget, options)</span>
|
|
3228
|
+
|
|
3229
|
+
</span>
|
|
3230
|
+
</h4>
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
|
|
3234
|
+
<div class="description">
|
|
3235
|
+
<p>视点跳转为给定的目标<a id='goTo'></a></p>
|
|
3236
|
+
</div>
|
|
3237
|
+
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
|
|
3246
|
+
|
|
3247
|
+
<h4>参数:</h4>
|
|
3248
|
+
|
|
3249
|
+
<div class="table-container">
|
|
3250
|
+
<table class="params table">
|
|
3251
|
+
<thead>
|
|
3252
|
+
<tr>
|
|
3253
|
+
|
|
3254
|
+
<th>名称</th>
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
<th>类型</th>
|
|
3258
|
+
|
|
3259
|
+
|
|
3260
|
+
<th style="min-width: 100px;">默认值</th>
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
<th class="last">描述</th>
|
|
3264
|
+
</tr>
|
|
3265
|
+
</thead>
|
|
3266
|
+
|
|
3267
|
+
<tbody>
|
|
3268
|
+
|
|
3269
|
+
|
|
3270
|
+
|
|
3271
|
+
<tr class="deep-level-0">
|
|
3272
|
+
|
|
3273
|
+
<td class="name"><code>goToTarget</code></td>
|
|
3274
|
+
|
|
3275
|
+
|
|
3276
|
+
<td class="type">
|
|
3277
|
+
|
|
3278
|
+
</td>
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
<td class="default">
|
|
3282
|
+
|
|
3283
|
+
</td>
|
|
3284
|
+
|
|
3285
|
+
|
|
3286
|
+
<td class="description last"><p>跳转参数</p></td>
|
|
3287
|
+
</tr>
|
|
3288
|
+
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
<tr class="deep-level-1">
|
|
3293
|
+
|
|
3294
|
+
<td class="name"><code>center</code></td>
|
|
3295
|
+
|
|
3296
|
+
|
|
3297
|
+
<td class="type">
|
|
3298
|
+
|
|
3299
|
+
|
|
3300
|
+
<span class="param-type">Point</span>
|
|
3301
|
+
|
|
|
3302
|
+
|
|
3303
|
+
<span class="param-type">Array</span>
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
|
|
3307
|
+
</td>
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
<td class="default">
|
|
3311
|
+
|
|
3312
|
+
</td>
|
|
3313
|
+
|
|
3314
|
+
|
|
3315
|
+
<td class="description last"><p>视图跳转中心点</p></td>
|
|
3316
|
+
</tr>
|
|
3317
|
+
|
|
3318
|
+
|
|
3319
|
+
|
|
3320
|
+
|
|
3321
|
+
<tr class="deep-level-1">
|
|
3322
|
+
|
|
3323
|
+
<td class="name"><code>zoom</code></td>
|
|
3324
|
+
|
|
3325
|
+
|
|
3326
|
+
<td class="type">
|
|
3327
|
+
|
|
3328
|
+
|
|
3329
|
+
<span class="param-type">Number</span>
|
|
3330
|
+
|
|
3331
|
+
|
|
3332
|
+
|
|
3333
|
+
</td>
|
|
3334
|
+
|
|
3335
|
+
|
|
3336
|
+
<td class="default">
|
|
3337
|
+
|
|
3338
|
+
</td>
|
|
3339
|
+
|
|
3340
|
+
|
|
3341
|
+
<td class="description last"><p>视图跳转层级</p></td>
|
|
3342
|
+
</tr>
|
|
3343
|
+
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
|
|
3347
|
+
<tr class="deep-level-1">
|
|
3348
|
+
|
|
3349
|
+
<td class="name"><code>scale</code></td>
|
|
3350
|
+
|
|
3351
|
+
|
|
3352
|
+
<td class="type">
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
<span class="param-type">Number</span>
|
|
3356
|
+
|
|
3357
|
+
|
|
3358
|
+
|
|
3359
|
+
</td>
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
<td class="default">
|
|
3363
|
+
|
|
3364
|
+
</td>
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
<td class="description last"><p>视图跳转比例尺</p></td>
|
|
3368
|
+
</tr>
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
<tr class="deep-level-1">
|
|
3374
|
+
|
|
3375
|
+
<td class="name"><code>layer</code></td>
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
<td class="type">
|
|
3379
|
+
|
|
3380
|
+
|
|
3381
|
+
<span class="param-type">Layer</span>
|
|
3382
|
+
|
|
|
3383
|
+
|
|
3384
|
+
<span class="param-type">SubLayer</span>
|
|
3385
|
+
|
|
|
3386
|
+
|
|
3387
|
+
<span class="param-type">undefined</span>
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
</td>
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
<td class="default">
|
|
3395
|
+
|
|
3396
|
+
</td>
|
|
3397
|
+
|
|
3398
|
+
|
|
3399
|
+
<td class="description last"><p>跳转的图层。如果是模型缓存图层,或者是场景子图层(模型缓存),则优先会使用模型缓存的外包盒跳转</p></td>
|
|
3400
|
+
</tr>
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
|
|
3405
|
+
<tr class="deep-level-1">
|
|
3406
|
+
|
|
3407
|
+
<td class="name"><code>target</code></td>
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
<td class="type">
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
<span class="param-type">Geometry</span>
|
|
3414
|
+
|
|
|
3415
|
+
|
|
3416
|
+
<span class="param-type">Array.<Geometry></span>
|
|
3417
|
+
|
|
|
3418
|
+
|
|
3419
|
+
<span class="param-type">Collection.<Geometry></span>
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
|
|
3423
|
+
</td>
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
<td class="default">
|
|
3427
|
+
|
|
3428
|
+
</td>
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
<td class="description last"><p>按范围跳转</p></td>
|
|
3432
|
+
</tr>
|
|
3433
|
+
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
|
|
3437
|
+
|
|
3438
|
+
|
|
3439
|
+
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
<tr class="deep-level-0">
|
|
3443
|
+
|
|
3444
|
+
<td class="name"><code>options</code></td>
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
<td class="type">
|
|
3448
|
+
|
|
3449
|
+
</td>
|
|
3450
|
+
|
|
3451
|
+
|
|
3452
|
+
<td class="default">
|
|
3453
|
+
|
|
3454
|
+
</td>
|
|
3455
|
+
|
|
3456
|
+
|
|
3457
|
+
<td class="description last"><p>动画参数</p></td>
|
|
3458
|
+
</tr>
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
<tr class="deep-level-1">
|
|
3464
|
+
|
|
3465
|
+
<td class="name"><code>animate</code></td>
|
|
3466
|
+
|
|
3467
|
+
|
|
3468
|
+
<td class="type">
|
|
3469
|
+
|
|
3470
|
+
|
|
3471
|
+
<span class="param-type">Boolean</span>
|
|
3472
|
+
|
|
3473
|
+
|
|
3474
|
+
|
|
3475
|
+
</td>
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
<td class="default">
|
|
3479
|
+
|
|
3480
|
+
true
|
|
3481
|
+
|
|
3482
|
+
</td>
|
|
3483
|
+
|
|
3484
|
+
|
|
3485
|
+
<td class="description last"><p>新视图的过渡是否开启动画,默认开启动画</p></td>
|
|
3486
|
+
</tr>
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
<tr class="deep-level-1">
|
|
3492
|
+
|
|
3493
|
+
<td class="name"><code>duration</code></td>
|
|
3494
|
+
|
|
3495
|
+
|
|
3496
|
+
<td class="type">
|
|
3497
|
+
|
|
3498
|
+
|
|
3499
|
+
<span class="param-type">Number</span>
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
|
|
3503
|
+
</td>
|
|
3504
|
+
|
|
3505
|
+
|
|
3506
|
+
<td class="default">
|
|
3507
|
+
|
|
3508
|
+
200
|
|
3509
|
+
|
|
3510
|
+
</td>
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
<td class="description last"><p>动画的持续时间,以毫秒为单位,默认200毫秒</p></td>
|
|
3514
|
+
</tr>
|
|
3515
|
+
|
|
3516
|
+
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
|
|
3521
|
+
|
|
3522
|
+
</tbody>
|
|
3523
|
+
</table>
|
|
3524
|
+
</div>
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
<dl class="details">
|
|
3532
|
+
|
|
3533
|
+
|
|
3534
|
+
|
|
3535
|
+
|
|
3536
|
+
|
|
3537
|
+
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
|
|
3541
|
+
|
|
3542
|
+
|
|
3543
|
+
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
|
|
3548
|
+
|
|
3549
|
+
|
|
3550
|
+
|
|
3551
|
+
|
|
3552
|
+
|
|
3553
|
+
|
|
3554
|
+
|
|
3555
|
+
|
|
3556
|
+
|
|
3557
|
+
|
|
3558
|
+
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
|
|
3563
|
+
</dl>
|
|
3564
|
+
|
|
3565
|
+
|
|
3566
|
+
|
|
3567
|
+
|
|
3568
|
+
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
|
|
3574
|
+
|
|
3575
|
+
|
|
3576
|
+
|
|
3577
|
+
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
<div class='columns method-parameter'>
|
|
3583
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3584
|
+
<div class="column is-10">
|
|
3585
|
+
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
<div class="columns">
|
|
3589
|
+
|
|
3590
|
+
<div class='param-desc column is-7'><p>视图跳转是否成功</p></div>
|
|
3591
|
+
|
|
3592
|
+
|
|
3593
|
+
<div class='column is-5 has-text-left'>
|
|
3594
|
+
<label>类型: </label>
|
|
3595
|
+
|
|
3596
|
+
<span class="param-type"><a href="Promise.html">Promise</a>.<Boolean></span>
|
|
3597
|
+
|
|
3598
|
+
|
|
3599
|
+
</div>
|
|
3600
|
+
|
|
3601
|
+
</div>
|
|
3602
|
+
|
|
3603
|
+
|
|
3604
|
+
</div>
|
|
3605
|
+
</div>
|
|
3606
|
+
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
|
|
3612
|
+
<h5>示例</h5>
|
|
3613
|
+
|
|
3614
|
+
<p class="code-caption"><h7>中心点跳转示例</h7></p>
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
3618
|
+
const { Map } = zondy
|
|
3619
|
+
const { SceneView } = zondy.cesium
|
|
3620
|
+
// ES6引入方式
|
|
3621
|
+
import { Map } from "@mapgis/webclient-common"
|
|
3622
|
+
import { SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
3623
|
+
// 初始化图层管理容器
|
|
3624
|
+
map = new .Map();
|
|
3625
|
+
// 初始化地图视图对象
|
|
3626
|
+
sceneView = new SceneView({
|
|
3627
|
+
// 视图id
|
|
3628
|
+
viewId: "view-id",
|
|
3629
|
+
// 图层管理容器
|
|
3630
|
+
map: map
|
|
3631
|
+
});
|
|
3632
|
+
// 视点跳转
|
|
3633
|
+
sceneView.goTo({
|
|
3634
|
+
// 跳转中心点
|
|
3635
|
+
center: [115.47643872463577, 30.980700423496124],
|
|
3636
|
+
// 地图层级
|
|
3637
|
+
zoom: 8
|
|
3638
|
+
});</code></pre>
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
<p class="code-caption"><h7>按范围跳转示例</h7></p>
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
3645
|
+
const { Map } = zondy
|
|
3646
|
+
const { Extent, Circle } = zondy.geometry
|
|
3647
|
+
const { SceneView } = zondy.cesium
|
|
3648
|
+
// ES6引入方式
|
|
3649
|
+
import { Map, Extent, Circle } from "@mapgis/webclient-common"
|
|
3650
|
+
import { SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
3651
|
+
// 初始化图层管理容器
|
|
3652
|
+
map = new Map();
|
|
3653
|
+
// 初始化地图视图对象
|
|
3654
|
+
sceneView = new SceneView({
|
|
3655
|
+
// 视图id
|
|
3656
|
+
viewId: "view-id",
|
|
3657
|
+
// 图层管理容器
|
|
3658
|
+
map: map
|
|
3659
|
+
});
|
|
3660
|
+
const extent1 = new Extent({
|
|
3661
|
+
xmin: 111.88463529230717,
|
|
3662
|
+
ymin: 28.646934514163803,
|
|
3663
|
+
xmax: 116.89989408129225,
|
|
3664
|
+
ymax: 33.07991791253288,
|
|
3665
|
+
})
|
|
3666
|
+
const geometry2 = new Circle({
|
|
3667
|
+
center: [111, 29],
|
|
3668
|
+
radius: 100,
|
|
3669
|
+
radiusUnit: "kilometers",
|
|
3670
|
+
})
|
|
3671
|
+
sceneView
|
|
3672
|
+
.goTo({
|
|
3673
|
+
target: [extent1, geometry2],
|
|
3674
|
+
})
|
|
3675
|
+
.then(() => {
|
|
3676
|
+
console.log("gotoExtent callback")
|
|
3677
|
+
})</code></pre>
|
|
3678
|
+
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
</div>
|
|
3682
|
+
|
|
3683
|
+
<div class="member">
|
|
3684
|
+
|
|
3685
|
+
|
|
3686
|
+
|
|
3687
|
+
<h4 class="name" id="hitTest">
|
|
3688
|
+
<a class="href-link" href="#hitTest">#</a>
|
|
3689
|
+
|
|
3690
|
+
<span class="code-name" style="font-size:30px">
|
|
3691
|
+
|
|
3692
|
+
hitTest<span class="signature">(screenPoint)</span>
|
|
3693
|
+
|
|
3694
|
+
</span>
|
|
3695
|
+
</h4>
|
|
3696
|
+
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
<div class="description">
|
|
3700
|
+
<p>穿透检测,图元拾取。目前支持graphic类型拾取结果,支持图层类型GraphicLayer,FeatureLayer。</p>
|
|
3701
|
+
</div>
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
<h4>参数:</h4>
|
|
3713
|
+
|
|
3714
|
+
<div class="table-container">
|
|
3715
|
+
<table class="params table">
|
|
3716
|
+
<thead>
|
|
3717
|
+
<tr>
|
|
3718
|
+
|
|
3719
|
+
<th>名称</th>
|
|
3720
|
+
|
|
3721
|
+
|
|
3722
|
+
<th>类型</th>
|
|
3723
|
+
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
<th class="last">描述</th>
|
|
3727
|
+
</tr>
|
|
3728
|
+
</thead>
|
|
3729
|
+
|
|
3730
|
+
<tbody>
|
|
3731
|
+
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
<tr class="deep-level-0">
|
|
3735
|
+
|
|
3736
|
+
<td class="name"><code>screenPoint</code></td>
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
<td class="type">
|
|
3740
|
+
|
|
3741
|
+
|
|
3742
|
+
<span class="param-type">Object</span>
|
|
3743
|
+
|
|
3744
|
+
|
|
3745
|
+
|
|
3746
|
+
</td>
|
|
3747
|
+
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
<td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
|
|
3751
|
+
</tr>
|
|
3752
|
+
|
|
3753
|
+
|
|
3754
|
+
|
|
3755
|
+
|
|
3756
|
+
</tbody>
|
|
3757
|
+
</table>
|
|
3758
|
+
</div>
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
|
|
3762
|
+
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
<dl class="details">
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
|
|
3783
|
+
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
|
|
3793
|
+
|
|
3794
|
+
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
</dl>
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
|
|
3816
|
+
<div class='columns method-parameter'>
|
|
3817
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3818
|
+
<div class="column is-10">
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
<div class="columns">
|
|
3823
|
+
|
|
3824
|
+
<div class='param-desc column is-7'><p>图元检测结果</p></div>
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
<div class='column is-5 has-text-left'>
|
|
3828
|
+
<label>类型: </label>
|
|
3829
|
+
|
|
3830
|
+
<span class="param-type">Array</span>
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
</div>
|
|
3834
|
+
|
|
3835
|
+
</div>
|
|
3836
|
+
|
|
3837
|
+
|
|
3838
|
+
</div>
|
|
3839
|
+
</div>
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
|
|
3845
|
+
|
|
3846
|
+
<h5>示例</h5>
|
|
3847
|
+
|
|
3848
|
+
<p class="code-caption"><h7>根据基础图层对象或者图层id查询并返回实际图层</h7></p>
|
|
3849
|
+
|
|
3850
|
+
|
|
3851
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
3852
|
+
const { Map, Feature } = zondy
|
|
3853
|
+
const { Point, Polygon, MultiPolygon ,Extent } = zondy.geometry
|
|
3854
|
+
const { GraphicsLayer, IGSFeatureLayer, IGSTileLayer } = zondy.layer
|
|
3855
|
+
const { SceneView } = zondy.cesium
|
|
3856
|
+
// ES6引入方式
|
|
3857
|
+
import { SceneView } from "@mapgis/webclient-leaflet-plugin";
|
|
3858
|
+
import { Map, Point, Polygon, MultiPolygon ,Extent, GraphicsLayer, Feature, Circle, IGSFeatureLayer, IGSTileLayer } from "@mapgis/webclient-common";
|
|
3859
|
+
// 初始化图层管理容器
|
|
3860
|
+
const map = new Map();
|
|
3861
|
+
// 初始化地图视图对象
|
|
3862
|
+
this.sceneView = new SceneView({
|
|
3863
|
+
// 视图id
|
|
3864
|
+
viewId: "mapgis-3d-viewer",
|
|
3865
|
+
// 图层管理容器
|
|
3866
|
+
map: map,
|
|
3867
|
+
})
|
|
3868
|
+
// 创建一个要素
|
|
3869
|
+
const feature = [
|
|
3870
|
+
new Feature({
|
|
3871
|
+
id: '11111',
|
|
3872
|
+
geometry: new Point({ coordinates: [113, 30] }),
|
|
3873
|
+
}),
|
|
3874
|
+
new Feature({
|
|
3875
|
+
id: '11112',
|
|
3876
|
+
geometry: new Point({ coordinates: [113, 30.15] }),
|
|
3877
|
+
}),
|
|
3878
|
+
new Feature({
|
|
3879
|
+
id: '11112',
|
|
3880
|
+
geometry: new Point({ coordinates: [113, 35] }),
|
|
3881
|
+
}),
|
|
3882
|
+
]
|
|
3883
|
+
// 初始化几何图层
|
|
3884
|
+
const graphicsLayer = new GraphicsLayer({
|
|
3885
|
+
graphics:feature
|
|
3886
|
+
})
|
|
3887
|
+
map.add(this.graphicsLayer)
|
|
3888
|
+
const result = this.sceneView.hitTest({x:1000,y:600})</code></pre>
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
|
|
3892
|
+
</div>
|
|
3893
|
+
|
|
3894
|
+
<div class="member">
|
|
3895
|
+
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
<h4 class="name" id="setCenter">
|
|
3899
|
+
<a class="href-link" href="#setCenter">#</a>
|
|
3900
|
+
|
|
3901
|
+
<span class="code-name" style="font-size:30px">
|
|
3902
|
+
|
|
3903
|
+
setCenter<span class="signature">(value)</span>
|
|
3904
|
+
|
|
3905
|
+
</span>
|
|
3906
|
+
</h4>
|
|
3907
|
+
|
|
3908
|
+
|
|
3909
|
+
|
|
3910
|
+
<div class="description">
|
|
3911
|
+
<p><a id='setCenter'></a>
|
|
3912
|
+
设置缩视野中心<a id='setCenter'></a></p>
|
|
3913
|
+
</div>
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
|
|
3924
|
+
<h4>参数:</h4>
|
|
3925
|
+
|
|
3926
|
+
<div class="table-container">
|
|
3927
|
+
<table class="params table">
|
|
3928
|
+
<thead>
|
|
3929
|
+
<tr>
|
|
3930
|
+
|
|
3931
|
+
<th>名称</th>
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
<th>类型</th>
|
|
3935
|
+
|
|
3936
|
+
|
|
3937
|
+
|
|
3938
|
+
<th class="last">描述</th>
|
|
3939
|
+
</tr>
|
|
3940
|
+
</thead>
|
|
3941
|
+
|
|
3942
|
+
<tbody>
|
|
3943
|
+
|
|
3944
|
+
|
|
3945
|
+
|
|
3946
|
+
<tr class="deep-level-0">
|
|
3947
|
+
|
|
3948
|
+
<td class="name"><code>value</code></td>
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
<td class="type">
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
<span class="param-type">Point</span>
|
|
3955
|
+
|
|
3956
|
+
|
|
3957
|
+
|
|
3958
|
+
</td>
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
|
|
3962
|
+
<td class="description last"><p>视图中心</p></td>
|
|
3963
|
+
</tr>
|
|
3964
|
+
|
|
3965
|
+
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
</tbody>
|
|
3969
|
+
</table>
|
|
3970
|
+
</div>
|
|
3971
|
+
|
|
3972
|
+
|
|
3973
|
+
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
<dl class="details">
|
|
3978
|
+
|
|
3979
|
+
|
|
3980
|
+
|
|
3981
|
+
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
|
|
3990
|
+
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
|
|
3999
|
+
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
|
|
4009
|
+
</dl>
|
|
4010
|
+
|
|
4011
|
+
|
|
4012
|
+
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
|
|
4017
|
+
|
|
4018
|
+
|
|
4019
|
+
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
|
|
4025
|
+
|
|
4026
|
+
|
|
4027
|
+
|
|
4028
|
+
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
</div>
|
|
4034
|
+
|
|
4035
|
+
<div class="member">
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
|
|
4039
|
+
<h4 class="name" id="setExtent">
|
|
4040
|
+
<a class="href-link" href="#setExtent">#</a>
|
|
4041
|
+
|
|
4042
|
+
<span class="code-name" style="font-size:30px">
|
|
4043
|
+
|
|
4044
|
+
setExtent<span class="signature">(value)</span>
|
|
4045
|
+
|
|
4046
|
+
</span>
|
|
4047
|
+
</h4>
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
<div class="description">
|
|
4052
|
+
<p><a id='setExtent'></a>
|
|
4053
|
+
设置视图的地理范围,设置后会跳转到该范围</p>
|
|
4054
|
+
</div>
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
|
|
4065
|
+
<h4>参数:</h4>
|
|
4066
|
+
|
|
4067
|
+
<div class="table-container">
|
|
4068
|
+
<table class="params table">
|
|
4069
|
+
<thead>
|
|
4070
|
+
<tr>
|
|
4071
|
+
|
|
4072
|
+
<th>名称</th>
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
<th>类型</th>
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
|
|
4079
|
+
<th class="last">描述</th>
|
|
4080
|
+
</tr>
|
|
4081
|
+
</thead>
|
|
4082
|
+
|
|
4083
|
+
<tbody>
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
|
|
4087
|
+
<tr class="deep-level-0">
|
|
4088
|
+
|
|
4089
|
+
<td class="name"><code>value</code></td>
|
|
4090
|
+
|
|
4091
|
+
|
|
4092
|
+
<td class="type">
|
|
4093
|
+
|
|
4094
|
+
|
|
4095
|
+
<span class="param-type">Extent</span>
|
|
4096
|
+
|
|
4097
|
+
|
|
4098
|
+
|
|
4099
|
+
</td>
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
<td class="description last"><p>视图的地理范围</p></td>
|
|
4104
|
+
</tr>
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
|
|
4109
|
+
</tbody>
|
|
4110
|
+
</table>
|
|
4111
|
+
</div>
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
|
|
4118
|
+
<dl class="details">
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
|
|
4123
|
+
|
|
4124
|
+
|
|
4125
|
+
|
|
4126
|
+
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
|
|
4144
|
+
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
</dl>
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
|
|
4165
|
+
|
|
4166
|
+
|
|
4167
|
+
|
|
4168
|
+
|
|
4169
|
+
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
|
|
4173
|
+
|
|
4174
|
+
</div>
|
|
4175
|
+
|
|
4176
|
+
<div class="member">
|
|
4177
|
+
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
<h4 class="name" id="takeScreenshot">
|
|
4181
|
+
<a class="href-link" href="#takeScreenshot">#</a>
|
|
4182
|
+
|
|
4183
|
+
<span class="code-name" style="font-size:30px">
|
|
4184
|
+
|
|
4185
|
+
takeScreenshot<span class="signature">(options<span class="signature-attributes">opt</span>)</span>
|
|
4186
|
+
|
|
4187
|
+
</span>
|
|
4188
|
+
</h4>
|
|
4189
|
+
|
|
4190
|
+
|
|
4191
|
+
|
|
4192
|
+
<div class="description">
|
|
4193
|
+
<p>屏幕快照</p>
|
|
4194
|
+
</div>
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
|
|
4200
|
+
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
<h4>参数:</h4>
|
|
4206
|
+
|
|
4207
|
+
<div class="table-container">
|
|
4208
|
+
<table class="params table">
|
|
4209
|
+
<thead>
|
|
4210
|
+
<tr>
|
|
4211
|
+
|
|
4212
|
+
<th>名称</th>
|
|
4213
|
+
|
|
4214
|
+
|
|
4215
|
+
<th>类型</th>
|
|
4216
|
+
|
|
4217
|
+
|
|
4218
|
+
<th style="min-width: 100px;">默认值</th>
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
<th class="last">描述</th>
|
|
4222
|
+
</tr>
|
|
4223
|
+
</thead>
|
|
4224
|
+
|
|
4225
|
+
<tbody>
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
<tr class="deep-level-0">
|
|
4230
|
+
|
|
4231
|
+
<td class="name"><code>options</code></td>
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
<td class="type">
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
<span class="param-type">Object</span>
|
|
4238
|
+
|
|
4239
|
+
|
|
4240
|
+
|
|
4241
|
+
</td>
|
|
4242
|
+
|
|
4243
|
+
|
|
4244
|
+
<td class="default">
|
|
4245
|
+
|
|
4246
|
+
{}
|
|
4247
|
+
|
|
4248
|
+
</td>
|
|
4249
|
+
|
|
4250
|
+
|
|
4251
|
+
<td class="description last"><p>屏幕快照配置配置</p></td>
|
|
4252
|
+
</tr>
|
|
4253
|
+
|
|
4254
|
+
|
|
4255
|
+
|
|
4256
|
+
|
|
4257
|
+
<tr class="deep-level-1">
|
|
4258
|
+
|
|
4259
|
+
<td class="name"><code>format</code></td>
|
|
4260
|
+
|
|
4261
|
+
|
|
4262
|
+
<td class="type">
|
|
4263
|
+
|
|
4264
|
+
|
|
4265
|
+
<span class="param-type">PictureFormat</span>
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
|
|
4269
|
+
</td>
|
|
4270
|
+
|
|
4271
|
+
|
|
4272
|
+
<td class="default">
|
|
4273
|
+
|
|
4274
|
+
PictureFormat.PNG
|
|
4275
|
+
|
|
4276
|
+
</td>
|
|
4277
|
+
|
|
4278
|
+
|
|
4279
|
+
<td class="description last"><p>图片格式,支持png,jpeg格式</p></td>
|
|
4280
|
+
</tr>
|
|
4281
|
+
|
|
4282
|
+
|
|
4283
|
+
|
|
4284
|
+
|
|
4285
|
+
<tr class="deep-level-1">
|
|
4286
|
+
|
|
4287
|
+
<td class="name"><code>filename</code></td>
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
<td class="type">
|
|
4291
|
+
|
|
4292
|
+
|
|
4293
|
+
<span class="param-type">String</span>
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
|
|
4297
|
+
</td>
|
|
4298
|
+
|
|
4299
|
+
|
|
4300
|
+
<td class="default">
|
|
4301
|
+
|
|
4302
|
+
'screenshotFile'
|
|
4303
|
+
|
|
4304
|
+
</td>
|
|
4305
|
+
|
|
4306
|
+
|
|
4307
|
+
<td class="description last"><p>下载文件名</p></td>
|
|
4308
|
+
</tr>
|
|
4309
|
+
|
|
4310
|
+
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
<tr class="deep-level-1">
|
|
4314
|
+
|
|
4315
|
+
<td class="name"><code>width</code></td>
|
|
4316
|
+
|
|
4317
|
+
|
|
4318
|
+
<td class="type">
|
|
4319
|
+
|
|
4320
|
+
|
|
4321
|
+
<span class="param-type">Number</span>
|
|
4322
|
+
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
</td>
|
|
4326
|
+
|
|
4327
|
+
|
|
4328
|
+
<td class="default">
|
|
4329
|
+
|
|
4330
|
+
</td>
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
<td class="description last"><p>图片宽度</p></td>
|
|
4334
|
+
</tr>
|
|
4335
|
+
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
|
|
4339
|
+
<tr class="deep-level-1">
|
|
4340
|
+
|
|
4341
|
+
<td class="name"><code>height</code></td>
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
<td class="type">
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
<span class="param-type">Number</span>
|
|
4348
|
+
|
|
4349
|
+
|
|
4350
|
+
|
|
4351
|
+
</td>
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
<td class="default">
|
|
4355
|
+
|
|
4356
|
+
</td>
|
|
4357
|
+
|
|
4358
|
+
|
|
4359
|
+
<td class="description last"><p>图片高度</p></td>
|
|
4360
|
+
</tr>
|
|
4361
|
+
|
|
4362
|
+
|
|
4363
|
+
|
|
4364
|
+
|
|
4365
|
+
<tr class="deep-level-1">
|
|
4366
|
+
|
|
4367
|
+
<td class="name"><code>x</code></td>
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
<td class="type">
|
|
4371
|
+
|
|
4372
|
+
|
|
4373
|
+
<span class="param-type">Number</span>
|
|
4374
|
+
|
|
4375
|
+
|
|
4376
|
+
|
|
4377
|
+
</td>
|
|
4378
|
+
|
|
4379
|
+
|
|
4380
|
+
<td class="default">
|
|
4381
|
+
|
|
4382
|
+
</td>
|
|
4383
|
+
|
|
4384
|
+
|
|
4385
|
+
<td class="description last"><p>图片原点x</p></td>
|
|
4386
|
+
</tr>
|
|
4387
|
+
|
|
4388
|
+
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
<tr class="deep-level-1">
|
|
4392
|
+
|
|
4393
|
+
<td class="name"><code>y</code></td>
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
<td class="type">
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
<span class="param-type">Number</span>
|
|
4400
|
+
|
|
4401
|
+
|
|
4402
|
+
|
|
4403
|
+
</td>
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
<td class="default">
|
|
4407
|
+
|
|
4408
|
+
</td>
|
|
4409
|
+
|
|
4410
|
+
|
|
4411
|
+
<td class="description last"><p>图片原点y</p></td>
|
|
4412
|
+
</tr>
|
|
4413
|
+
|
|
4414
|
+
|
|
4415
|
+
|
|
4416
|
+
|
|
4417
|
+
<tr class="deep-level-1">
|
|
4418
|
+
|
|
4419
|
+
<td class="name"><code>isDownload</code></td>
|
|
4420
|
+
|
|
4421
|
+
|
|
4422
|
+
<td class="type">
|
|
4423
|
+
|
|
4424
|
+
|
|
4425
|
+
<span class="param-type">Boolean</span>
|
|
4426
|
+
|
|
4427
|
+
|
|
4428
|
+
|
|
4429
|
+
</td>
|
|
4430
|
+
|
|
4431
|
+
|
|
4432
|
+
<td class="default">
|
|
4433
|
+
|
|
4434
|
+
true
|
|
4435
|
+
|
|
4436
|
+
</td>
|
|
4437
|
+
|
|
4438
|
+
|
|
4439
|
+
<td class="description last"><p>是否下载图片</p></td>
|
|
4440
|
+
</tr>
|
|
4441
|
+
|
|
4442
|
+
|
|
4443
|
+
|
|
4444
|
+
|
|
4445
|
+
|
|
4446
|
+
|
|
4447
|
+
|
|
4448
|
+
</tbody>
|
|
4449
|
+
</table>
|
|
4450
|
+
</div>
|
|
4451
|
+
|
|
4452
|
+
|
|
4453
|
+
|
|
4454
|
+
|
|
4455
|
+
|
|
4456
|
+
|
|
4457
|
+
<dl class="details">
|
|
4458
|
+
|
|
4459
|
+
|
|
4460
|
+
|
|
4461
|
+
|
|
4462
|
+
|
|
4463
|
+
|
|
4464
|
+
|
|
4465
|
+
|
|
4466
|
+
|
|
4467
|
+
|
|
4468
|
+
|
|
4469
|
+
|
|
4470
|
+
|
|
4471
|
+
|
|
4472
|
+
|
|
4473
|
+
|
|
4474
|
+
|
|
4475
|
+
|
|
4476
|
+
|
|
4477
|
+
|
|
4478
|
+
|
|
4479
|
+
|
|
4480
|
+
|
|
4481
|
+
|
|
4482
|
+
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
|
|
4486
|
+
|
|
4487
|
+
|
|
4488
|
+
|
|
4489
|
+
</dl>
|
|
4490
|
+
|
|
4491
|
+
|
|
4492
|
+
|
|
4493
|
+
|
|
4494
|
+
|
|
4495
|
+
|
|
4496
|
+
|
|
4497
|
+
|
|
4498
|
+
|
|
4499
|
+
|
|
4500
|
+
|
|
4501
|
+
|
|
4502
|
+
|
|
4503
|
+
|
|
4504
|
+
|
|
4505
|
+
|
|
4506
|
+
|
|
4507
|
+
|
|
4508
|
+
<div class='columns method-parameter'>
|
|
4509
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4510
|
+
<div class="column is-10">
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
|
|
4514
|
+
<div class="columns">
|
|
4515
|
+
|
|
4516
|
+
<div class='param-desc column is-7'><p>屏幕快照 {dataUrl String },且浏览器会下载图片</p></div>
|
|
4517
|
+
|
|
4518
|
+
|
|
4519
|
+
<div class='column is-5 has-text-left'>
|
|
4520
|
+
<label>类型: </label>
|
|
4521
|
+
|
|
4522
|
+
<span class="param-type"><a href="Promise.html">Promise</a></span>
|
|
4523
|
+
|
|
4524
|
+
|
|
4525
|
+
</div>
|
|
4526
|
+
|
|
4527
|
+
</div>
|
|
4528
|
+
|
|
4529
|
+
|
|
4530
|
+
</div>
|
|
4531
|
+
</div>
|
|
4532
|
+
|
|
4533
|
+
|
|
4534
|
+
|
|
4535
|
+
|
|
4536
|
+
|
|
4537
|
+
|
|
4538
|
+
<h5>示例</h5>
|
|
4539
|
+
|
|
4540
|
+
<p class="code-caption"><h7>屏幕快照</h7></p>
|
|
4541
|
+
|
|
4542
|
+
|
|
4543
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
4544
|
+
var { Map, SceneView } = zondy
|
|
4545
|
+
var { PictureFormat } = zondy.Enum
|
|
4546
|
+
// ES6引入方式
|
|
4547
|
+
import { Map, SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
4548
|
+
import { PictureFormat } from "@mapgis/webclient-common"
|
|
4549
|
+
// 初始化图层管理容器
|
|
4550
|
+
const map = new Map();
|
|
4551
|
+
// 初始化地图视图对象
|
|
4552
|
+
const sceneView = new SceneView({
|
|
4553
|
+
// 二维场景视图的容器(html的div标签)ID
|
|
4554
|
+
viewId: "二维场景视图的容器的id",
|
|
4555
|
+
// 图层管理容器
|
|
4556
|
+
map: map
|
|
4557
|
+
})
|
|
4558
|
+
// 设置屏幕快照参数
|
|
4559
|
+
const screenshotOptions: {
|
|
4560
|
+
format: PictureFormat.PNG
|
|
4561
|
+
}
|
|
4562
|
+
// 开始屏幕快照
|
|
4563
|
+
sceneView.takeScreenshot(screenshotOptions).then((result) => {
|
|
4564
|
+
// 获取base64格式的url字符串
|
|
4565
|
+
console.log("dataUrl:", result.dataUrl)
|
|
4566
|
+
})</code></pre>
|
|
4567
|
+
|
|
4568
|
+
|
|
4569
|
+
|
|
4570
|
+
</div>
|
|
4571
|
+
|
|
4572
|
+
<div class="member">
|
|
4573
|
+
|
|
4574
|
+
|
|
4575
|
+
|
|
4576
|
+
<h4 class="name" id="toJSON">
|
|
4577
|
+
<a class="href-link" href="#toJSON">#</a>
|
|
4578
|
+
|
|
4579
|
+
<span class="code-name" style="font-size:30px">
|
|
4580
|
+
|
|
4581
|
+
toJSON<span class="signature">()</span>
|
|
4582
|
+
|
|
4583
|
+
</span>
|
|
4584
|
+
</h4>
|
|
4585
|
+
|
|
4586
|
+
|
|
4587
|
+
|
|
4588
|
+
<div class="description">
|
|
4589
|
+
<p><a id='toJSON'></a>
|
|
4590
|
+
导出场景视图的配置文件</p>
|
|
4591
|
+
</div>
|
|
4592
|
+
|
|
4593
|
+
|
|
4594
|
+
|
|
4595
|
+
|
|
4596
|
+
|
|
4597
|
+
|
|
4598
|
+
|
|
4599
|
+
|
|
4600
|
+
|
|
4601
|
+
|
|
4602
|
+
|
|
4603
|
+
|
|
4604
|
+
|
|
4605
|
+
|
|
4606
|
+
<dl class="details">
|
|
4607
|
+
|
|
4608
|
+
|
|
4609
|
+
|
|
4610
|
+
|
|
4611
|
+
|
|
4612
|
+
|
|
4613
|
+
|
|
4614
|
+
|
|
4615
|
+
|
|
4616
|
+
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
|
|
4620
|
+
|
|
4621
|
+
|
|
4622
|
+
|
|
4623
|
+
|
|
4624
|
+
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
|
|
4628
|
+
|
|
4629
|
+
|
|
4630
|
+
|
|
4631
|
+
|
|
4632
|
+
|
|
4633
|
+
|
|
4634
|
+
|
|
4635
|
+
|
|
4636
|
+
|
|
4637
|
+
|
|
4638
|
+
</dl>
|
|
4639
|
+
|
|
4640
|
+
|
|
4641
|
+
|
|
4642
|
+
|
|
4643
|
+
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
|
|
4647
|
+
|
|
4648
|
+
|
|
4649
|
+
|
|
4650
|
+
|
|
4651
|
+
|
|
4652
|
+
|
|
4653
|
+
|
|
4654
|
+
|
|
4655
|
+
|
|
4656
|
+
|
|
4657
|
+
<div class='columns method-parameter'>
|
|
4658
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4659
|
+
<div class="column is-10">
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
|
|
4663
|
+
<div class="columns">
|
|
4664
|
+
|
|
4665
|
+
<div class='param-desc column is-7'><p>导出的配置文件</p></div>
|
|
4666
|
+
|
|
4667
|
+
|
|
4668
|
+
<div class='column is-5 has-text-left'>
|
|
4669
|
+
<label>类型: </label>
|
|
4670
|
+
|
|
4671
|
+
<span class="param-type">Object</span>
|
|
4672
|
+
|
|
4673
|
+
|
|
4674
|
+
</div>
|
|
4675
|
+
|
|
4676
|
+
</div>
|
|
4677
|
+
|
|
4678
|
+
|
|
4679
|
+
</div>
|
|
4680
|
+
</div>
|
|
4681
|
+
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
|
|
4685
|
+
|
|
4686
|
+
|
|
4687
|
+
</div>
|
|
4688
|
+
|
|
4689
|
+
<div class="member">
|
|
4690
|
+
|
|
4691
|
+
|
|
4692
|
+
|
|
4693
|
+
<h4 class="name" id="toMap">
|
|
4694
|
+
<a class="href-link" href="#toMap">#</a>
|
|
4695
|
+
|
|
4696
|
+
<span class="code-name" style="font-size:30px">
|
|
4697
|
+
|
|
4698
|
+
toMap<span class="signature">(screenPoint)</span>
|
|
4699
|
+
|
|
4700
|
+
</span>
|
|
4701
|
+
</h4>
|
|
4702
|
+
|
|
4703
|
+
|
|
4704
|
+
|
|
4705
|
+
<div class="description">
|
|
4706
|
+
<p><a id='toMap'></a>
|
|
4707
|
+
屏幕像素坐标点转地理坐标点</p>
|
|
4708
|
+
</div>
|
|
4709
|
+
|
|
4710
|
+
|
|
4711
|
+
|
|
4712
|
+
|
|
4713
|
+
|
|
4714
|
+
|
|
4715
|
+
|
|
4716
|
+
|
|
4717
|
+
|
|
4718
|
+
|
|
4719
|
+
<h4>参数:</h4>
|
|
4720
|
+
|
|
4721
|
+
<div class="table-container">
|
|
4722
|
+
<table class="params table">
|
|
4723
|
+
<thead>
|
|
4724
|
+
<tr>
|
|
4725
|
+
|
|
4726
|
+
<th>名称</th>
|
|
4727
|
+
|
|
4728
|
+
|
|
4729
|
+
<th>类型</th>
|
|
4730
|
+
|
|
4731
|
+
|
|
4732
|
+
|
|
4733
|
+
<th class="last">描述</th>
|
|
4734
|
+
</tr>
|
|
4735
|
+
</thead>
|
|
4736
|
+
|
|
4737
|
+
<tbody>
|
|
4738
|
+
|
|
4739
|
+
|
|
4740
|
+
|
|
4741
|
+
<tr class="deep-level-0">
|
|
4742
|
+
|
|
4743
|
+
<td class="name"><code>screenPoint</code></td>
|
|
4744
|
+
|
|
4745
|
+
|
|
4746
|
+
<td class="type">
|
|
4747
|
+
|
|
4748
|
+
|
|
4749
|
+
<span class="param-type">Object</span>
|
|
4750
|
+
|
|
4751
|
+
|
|
4752
|
+
|
|
4753
|
+
</td>
|
|
4754
|
+
|
|
4755
|
+
|
|
4756
|
+
|
|
4757
|
+
<td class="description last"><p>屏幕像素坐标点,传入的 x范围为[0,canvas.width - 1],传入的 x范围为[0,canvas.height - 1],例如{ x: 900, y: 500 }</p></td>
|
|
4758
|
+
</tr>
|
|
4759
|
+
|
|
4760
|
+
|
|
4761
|
+
|
|
4762
|
+
|
|
4763
|
+
</tbody>
|
|
4764
|
+
</table>
|
|
4765
|
+
</div>
|
|
4766
|
+
|
|
4767
|
+
|
|
4768
|
+
|
|
4769
|
+
|
|
4770
|
+
|
|
4771
|
+
|
|
4772
|
+
<dl class="details">
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
|
|
4776
|
+
|
|
4777
|
+
|
|
4778
|
+
|
|
4779
|
+
|
|
4780
|
+
|
|
4781
|
+
|
|
4782
|
+
|
|
4783
|
+
|
|
4784
|
+
|
|
4785
|
+
|
|
4786
|
+
|
|
4787
|
+
|
|
4788
|
+
|
|
4789
|
+
|
|
4790
|
+
|
|
4791
|
+
|
|
4792
|
+
|
|
4793
|
+
|
|
4794
|
+
|
|
4795
|
+
|
|
4796
|
+
|
|
4797
|
+
|
|
4798
|
+
|
|
4799
|
+
|
|
4800
|
+
|
|
4801
|
+
|
|
4802
|
+
|
|
4803
|
+
|
|
4804
|
+
</dl>
|
|
4805
|
+
|
|
4806
|
+
|
|
4807
|
+
|
|
4808
|
+
|
|
4809
|
+
|
|
4810
|
+
|
|
4811
|
+
|
|
4812
|
+
|
|
4813
|
+
|
|
4814
|
+
|
|
4815
|
+
|
|
4816
|
+
|
|
4817
|
+
|
|
4818
|
+
|
|
4819
|
+
|
|
4820
|
+
|
|
4821
|
+
|
|
4822
|
+
|
|
4823
|
+
<div class='columns method-parameter'>
|
|
4824
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4825
|
+
<div class="column is-10">
|
|
4826
|
+
|
|
4827
|
+
|
|
4828
|
+
|
|
4829
|
+
<div class="columns">
|
|
4830
|
+
|
|
4831
|
+
<div class='param-desc column is-7'><p>地理坐标点</p></div>
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
<div class='column is-5 has-text-left'>
|
|
4835
|
+
<label>类型: </label>
|
|
4836
|
+
|
|
4837
|
+
<span class="param-type">Point</span>
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
</div>
|
|
4841
|
+
|
|
4842
|
+
</div>
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
</div>
|
|
4846
|
+
</div>
|
|
4847
|
+
|
|
4848
|
+
|
|
4849
|
+
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
|
|
4853
|
+
<h5>示例</h5>
|
|
4854
|
+
|
|
4855
|
+
<p class="code-caption"><h5>屏幕像素坐标点转地理坐标示例</h5></p>
|
|
4856
|
+
|
|
4857
|
+
|
|
4858
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
4859
|
+
const { Map } = zondy
|
|
4860
|
+
const { Point } = zondy.geometry
|
|
4861
|
+
const { SceneView } = zondy.cesium
|
|
4862
|
+
// ES6引入方式
|
|
4863
|
+
import { SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
4864
|
+
import { Map, Point } from "@mapgis/webclient-common"
|
|
4865
|
+
// 初始化图层管理容器
|
|
4866
|
+
const map = new Map();
|
|
4867
|
+
// 初始化地图视图对象
|
|
4868
|
+
const sceneView = new SceneView({
|
|
4869
|
+
// 视图id
|
|
4870
|
+
viewId: "mapgis-3d-viewer",
|
|
4871
|
+
// 图层管理容器
|
|
4872
|
+
map: map,
|
|
4873
|
+
})
|
|
4874
|
+
const screenPoint = { x: 900, y: 500 }
|
|
4875
|
+
sceneView.toMap(screenPoint)</code></pre>
|
|
4876
|
+
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
</div>
|
|
4880
|
+
|
|
4881
|
+
<div class="member">
|
|
4882
|
+
|
|
4883
|
+
|
|
4884
|
+
|
|
4885
|
+
<h4 class="name" id="toScreen">
|
|
4886
|
+
<a class="href-link" href="#toScreen">#</a>
|
|
4887
|
+
|
|
4888
|
+
<span class="code-name" style="font-size:30px">
|
|
4889
|
+
|
|
4890
|
+
toScreen<span class="signature">(point)</span>
|
|
4891
|
+
|
|
4892
|
+
</span>
|
|
4893
|
+
</h4>
|
|
4894
|
+
|
|
4895
|
+
|
|
4896
|
+
|
|
4897
|
+
<div class="description">
|
|
4898
|
+
<p><a id='toScreen'></a>
|
|
4899
|
+
地理坐标点转屏幕像素坐标点</p>
|
|
4900
|
+
</div>
|
|
4901
|
+
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
|
|
4905
|
+
|
|
4906
|
+
|
|
4907
|
+
|
|
4908
|
+
|
|
4909
|
+
|
|
4910
|
+
|
|
4911
|
+
<h4>参数:</h4>
|
|
4912
|
+
|
|
4913
|
+
<div class="table-container">
|
|
4914
|
+
<table class="params table">
|
|
4915
|
+
<thead>
|
|
4916
|
+
<tr>
|
|
4917
|
+
|
|
4918
|
+
<th>名称</th>
|
|
4919
|
+
|
|
4920
|
+
|
|
4921
|
+
<th>类型</th>
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
<th class="last">描述</th>
|
|
4926
|
+
</tr>
|
|
4927
|
+
</thead>
|
|
4928
|
+
|
|
4929
|
+
<tbody>
|
|
4930
|
+
|
|
4931
|
+
|
|
4932
|
+
|
|
4933
|
+
<tr class="deep-level-0">
|
|
4934
|
+
|
|
4935
|
+
<td class="name"><code>point</code></td>
|
|
4936
|
+
|
|
4937
|
+
|
|
4938
|
+
<td class="type">
|
|
4939
|
+
|
|
4940
|
+
|
|
4941
|
+
<span class="param-type">Point</span>
|
|
4942
|
+
|
|
4943
|
+
|
|
4944
|
+
|
|
4945
|
+
</td>
|
|
4946
|
+
|
|
4947
|
+
|
|
4948
|
+
|
|
4949
|
+
<td class="description last"><p>地理坐标点</p></td>
|
|
4950
|
+
</tr>
|
|
4951
|
+
|
|
4952
|
+
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
</tbody>
|
|
4956
|
+
</table>
|
|
4957
|
+
</div>
|
|
4958
|
+
|
|
4959
|
+
|
|
4960
|
+
|
|
4961
|
+
|
|
4962
|
+
|
|
4963
|
+
|
|
4964
|
+
<dl class="details">
|
|
4965
|
+
|
|
4966
|
+
|
|
4967
|
+
|
|
4968
|
+
|
|
4969
|
+
|
|
4970
|
+
|
|
4971
|
+
|
|
4972
|
+
|
|
4973
|
+
|
|
4974
|
+
|
|
4975
|
+
|
|
4976
|
+
|
|
4977
|
+
|
|
4978
|
+
|
|
4979
|
+
|
|
4980
|
+
|
|
4981
|
+
|
|
4982
|
+
|
|
4983
|
+
|
|
4984
|
+
|
|
4985
|
+
|
|
4986
|
+
|
|
4987
|
+
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
|
|
4991
|
+
|
|
4992
|
+
|
|
4993
|
+
|
|
4994
|
+
|
|
4995
|
+
|
|
4996
|
+
</dl>
|
|
4997
|
+
|
|
4998
|
+
|
|
4999
|
+
|
|
5000
|
+
|
|
5001
|
+
|
|
5002
|
+
|
|
5003
|
+
|
|
5004
|
+
|
|
5005
|
+
|
|
5006
|
+
|
|
5007
|
+
|
|
5008
|
+
|
|
5009
|
+
|
|
5010
|
+
|
|
5011
|
+
|
|
5012
|
+
|
|
5013
|
+
|
|
5014
|
+
|
|
5015
|
+
<div class='columns method-parameter'>
|
|
5016
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
5017
|
+
<div class="column is-10">
|
|
5018
|
+
|
|
5019
|
+
|
|
5020
|
+
|
|
5021
|
+
<div class="columns">
|
|
5022
|
+
|
|
5023
|
+
<div class='param-desc column is-7'><p>屏幕像素坐标点</p></div>
|
|
5024
|
+
|
|
5025
|
+
|
|
5026
|
+
<div class='column is-5 has-text-left'>
|
|
5027
|
+
<label>类型: </label>
|
|
5028
|
+
|
|
5029
|
+
<span class="param-type">Object</span>
|
|
5030
|
+
|
|
5031
|
+
|
|
5032
|
+
</div>
|
|
5033
|
+
|
|
5034
|
+
</div>
|
|
5035
|
+
|
|
5036
|
+
|
|
5037
|
+
</div>
|
|
5038
|
+
</div>
|
|
5039
|
+
|
|
5040
|
+
|
|
5041
|
+
|
|
5042
|
+
|
|
5043
|
+
|
|
5044
|
+
|
|
5045
|
+
<h5>示例</h5>
|
|
5046
|
+
|
|
5047
|
+
<p class="code-caption"><h5>地理坐标点转屏幕像素坐标示例</h5></p>
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
5051
|
+
const { Map } = zondy
|
|
5052
|
+
const { Point, Extent } = zondy.geometry
|
|
5053
|
+
const { SceneView } = zondy.cesium
|
|
5054
|
+
// ES6引入方式
|
|
5055
|
+
import { SceneView } from "@mapgis/webclient-cesium-plugin"
|
|
5056
|
+
import { Map, Point, Extent } from "@mapgis/webclient-common"
|
|
5057
|
+
// 初始化图层管理容器
|
|
5058
|
+
const map = new Map();
|
|
5059
|
+
// 初始化地图视图对象
|
|
5060
|
+
const sceneView = new SceneView({
|
|
5061
|
+
// 视图id
|
|
5062
|
+
viewId: "mapgis-2d-viewer",
|
|
5063
|
+
// 图层管理容器
|
|
5064
|
+
map: map
|
|
5065
|
+
});
|
|
5066
|
+
const geoPoint = new Point({ coordinates: [123, 23, 0] })
|
|
5067
|
+
sceneView.toScreen(geoPoint)</code></pre>
|
|
5068
|
+
|
|
5069
|
+
|
|
5070
|
+
|
|
5071
|
+
</div>
|
|
5072
|
+
|
|
5073
|
+
</div>
|
|
5074
|
+
</div>
|
|
5075
|
+
|
|
1703
5076
|
|
|
1704
5077
|
|
|
1705
5078
|
|