@mapgis/webclient-cesium-plugin 17.2.6 → 17.2.7
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 +8 -0
- package/dist/es5/webclient-cesium-plugin.min.js +1 -1
- package/dist/es5/webclient-common.min.js +2 -2
- package/dist/webclient-cesium-plugin-es6.min.js +1 -1
- package/documention/AlgorithmLib.html +410 -1282
- package/documention/AngulationTool.html +244 -194
- package/documention/AnimationTool.html +398 -1376
- package/documention/CesiumHeatmap.html +307 -560
- package/documention/CesiumTerrainProvider.html +226 -8
- package/documention/CircleWaveMaterialProperty.html +231 -38
- package/documention/CollisionDetectionByRender.html +263 -422
- package/documention/CuttingTool.html +292 -461
- package/documention/Deferred.html +226 -8
- package/documention/DrawElement.html +252 -190
- package/documention/DrawTool.html +253 -191
- package/documention/EditTool.html +247 -249
- package/documention/FloodAnalysisReflection.html +243 -229
- package/documention/GlobeIndependentTranslucency.html +236 -246
- package/documention/Graphic.html +300 -939
- package/documention/GraphicsLayer.html +332 -832
- package/documention/HeightLimited.html +237 -134
- package/documention/ISSceneLayerUtil.html +246 -149
- package/documention/KeyboardCameraController.html +244 -285
- package/documention/MeasureAreaTool.html +256 -188
- package/documention/MeasureLengthTool.html +278 -421
- package/documention/MeasureSlopeTool.html +246 -206
- package/documention/ModelEditor.html +232 -44
- package/documention/ModelFilterTool.html +242 -130
- package/documention/ModelTransformTool.html +310 -504
- package/documention/PolylineTrailLinkMaterialProperty.html +233 -50
- package/documention/PostProcessStageLibrary.html +255 -218
- package/documention/Promise.html +246 -173
- package/documention/RadarMaterialProperty.html +229 -26
- package/documention/ReImg.html +230 -58
- package/documention/RiverGeometry.html +287 -462
- package/documention/RoamParticle.html +276 -746
- package/documention/S3MTileset.html +229 -26
- package/documention/SelectTool.html +238 -101
- package/documention/ShadowRateAnalysis.html +250 -366
- package/documention/ShadowRateDrawCommand.html +241 -178
- package/documention/SkyLineAnalysis.html +232 -96
- package/documention/StableParticle.html +278 -812
- package/documention/Style.html +525 -2037
- package/documention/TerrainAnalyse.html +287 -415
- package/documention/TerrainProfile.html +246 -156
- package/documention/Tooltip.html +240 -113
- package/documention/TriangulationTool.html +257 -308
- package/documention/VisiblityAnalysis.html +257 -411
- package/documention/WaterReflection.html +250 -310
- package/documention/Wind3D.html +255 -345
- package/package.json +1 -1
|
@@ -1,10 +1,190 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
|
|
6
|
+
<meta charset="utf-8">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<title> KeyboardCameraController</title>
|
|
9
|
+
<!--[if lt IE 9]>
|
|
10
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
+
<![endif]-->
|
|
12
|
+
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
|
|
13
|
+
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="">
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<body class="layout small-header">
|
|
22
|
+
<div id="stickyNavbarOverlay"></div>
|
|
5
23
|
|
|
6
|
-
</header>
|
|
7
24
|
|
|
25
|
+
<div class="top-nav">
|
|
26
|
+
<div class="inner">
|
|
27
|
+
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
|
|
28
|
+
<span aria-hidden="true"></span>
|
|
29
|
+
<span aria-hidden="true"></span>
|
|
30
|
+
<span aria-hidden="true"></span>
|
|
31
|
+
</a>
|
|
32
|
+
<div class="logo">
|
|
33
|
+
|
|
34
|
+
<h1> MapGIS Client for JavaScript API</h1>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
<div class="menu">
|
|
39
|
+
|
|
40
|
+
<div class="navigation">
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<a
|
|
44
|
+
class="link user-link "
|
|
45
|
+
href="/static/modules/common/api/common-mapgis/index.html"
|
|
46
|
+
>
|
|
47
|
+
Common
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a
|
|
51
|
+
class="link user-link "
|
|
52
|
+
href="/static/modules/cesium/api/cesium-mapgis/index.html"
|
|
53
|
+
>
|
|
54
|
+
Cesium-Plugin
|
|
55
|
+
</a>
|
|
56
|
+
|
|
57
|
+
<a
|
|
58
|
+
class="link user-link "
|
|
59
|
+
href="/static/modules/mapboxgl/api/mapboxgl-mapgis/index.html"
|
|
60
|
+
>
|
|
61
|
+
MapboxGL-Plugin
|
|
62
|
+
</a>
|
|
63
|
+
|
|
64
|
+
<a
|
|
65
|
+
class="link user-link "
|
|
66
|
+
href="/static/modules/leaflet/api/leaflet-mapgis/index.html"
|
|
67
|
+
>
|
|
68
|
+
Leaflet-Plugin
|
|
69
|
+
</a>
|
|
70
|
+
|
|
71
|
+
<a
|
|
72
|
+
class="link user-link "
|
|
73
|
+
href="/static/modules/openlayers/api/openLayers-mapgis/index.html"
|
|
74
|
+
>
|
|
75
|
+
OpenLayers-Plugin
|
|
76
|
+
</a>
|
|
77
|
+
|
|
78
|
+
<a
|
|
79
|
+
class="link user-link "
|
|
80
|
+
href="/static/modules/video/api/video-mapgis/index.html"
|
|
81
|
+
>
|
|
82
|
+
Video-Plugin
|
|
83
|
+
</a>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div id="main">
|
|
93
|
+
<div
|
|
94
|
+
class="sidebar "
|
|
95
|
+
id="sidebarNav"
|
|
96
|
+
>
|
|
97
|
+
<div>
|
|
98
|
+
<span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<div class="search-wrapper">
|
|
102
|
+
<input id="search" type="text" placeholder="搜索文档..." class="input">
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<nav>
|
|
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><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="AnimationTool" AnimationTool.html>AnimationTool</a><span style="display: none;"><p>场景漫游工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ArcGISMapServerImageryProvider" ArcGISMapServerImageryProvider.html>ArcGISMapServerImageryProvider</a><span style="display: none;"><p>ArcGIS地图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ArcGISTileServerImageryProvider" ArcGISTileServerImageryProvider.html>ArcGISTileServerImageryProvider</a><span style="display: none;"><p>ArcGIS瓦片图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ArcGISVectorTileImageryProvider" ArcGISVectorTileImageryProvider.html>ArcGISVectorTileImageryProvider</a><span style="display: none;"><p>通过ArcGIS矢量瓦片服务的url获取VectorTileImageryProvider对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="CesiumHeatmap" CesiumHeatmap.html>CesiumHeatmap</a><span style="display: none;"><p>热力图</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="CustomTilingScheme" CustomTilingScheme.html>CustomTilingScheme</a><span style="display: none;"><p>自定义瓦片平铺方案,在使用时有如下限制:</p>
|
|
108
|
+
<ol>
|
|
109
|
+
<li>裁图原点必须在地图范围的左上角区域;</li>
|
|
110
|
+
<li>仅支持如同谷歌地图的瓦片组织方式,即Y轴编号从上到下递增,X轴编号从左到右递增;</li>
|
|
111
|
+
</ol></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="FloodAnalysisReflection" FloodAnalysisReflection.html>FloodAnalysisReflection</a><span style="display: none;"><p>创建反射水面淹没分析的实例化对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="GlobeIndependentTranslucency" GlobeIndependentTranslucency.html>GlobeIndependentTranslucency</a><span style="display: none;"><p>单独控制地表透明度和影像图层的透明度,能够在开启地表透明后使部分影像图层不受地表透明的影响。</p>
|
|
112
|
+
<p>实例化该类的对象同时也能够使用原生的地表透明参数,能够直接在实例化对象上修改 <code>GlobeTranslucency</code> 的参数(原生的
|
|
113
|
+
viewer.scene.globe.translucency依然能够使用,但两者同时使用时会造成相互干扰,推荐仅使用GlobeIndependentTranslucency来实现地表透明),
|
|
114
|
+
使用原生的地表透明方式还是该类的地表透明方式由 <a class="mapgis-link-name" title="GlobeIndependentTranslucency#imageryLayers" GlobeIndependentTranslucency.html#imageryLayers><code>GlobeIndependentTranslucency#imageryLayers</code></a> 数组是否为空来区分。</p>
|
|
115
|
+
<p>1. 当 <a class="mapgis-link-name" title="GlobeIndependentTranslucency#imageryLayers" GlobeIndependentTranslucency.html#imageryLayers><code>GlobeIndependentTranslucency#imageryLayers</code></a> 不为空数组时,使用该类的地表透明方式,此时能够设置并生效的地表透明参数如下:</p>
|
|
116
|
+
<ul>
|
|
117
|
+
<li><code>globeFaceAlpha</code>:地表的透明度,若设置该参数则<code>globeFaceAlphaByDistance</code>不生效;</li>
|
|
118
|
+
<li><code>globeFaceAlphaByDistance</code>:地表的透明度根据视点距离的变化范围,当<code>globeFaceAlpha</code>为<code>undefined</code>时生效;</li>
|
|
119
|
+
</ul>
|
|
120
|
+
<p>2. 当 <a class="mapgis-link-name" title="GlobeIndependentTranslucency#imageryLayers" GlobeIndependentTranslucency.html#imageryLayers><code>GlobeIndependentTranslucency#imageryLayers</code></a> 为空数组时,使用原生的地表透明方式,此时能够设置并生效的地表透明参数如下:</p>
|
|
121
|
+
<ul>
|
|
122
|
+
<li><code>frontFaceAlpha</code>:地表正面的透明度;</li>
|
|
123
|
+
<li><code>frontFaceAlphaByDistance </code>:地表正面的透明度根据视点距离的变化范围;</li>
|
|
124
|
+
<li><code>backFaceAlpha</code>:地表背面的透明度;</li>
|
|
125
|
+
<li><code>backFaceAlphaByDistance</code>:地表背面的透明度根据视点距离的变化范围;</li>
|
|
126
|
+
<li><code>rectangle</code>:将地表透明的区域限制在一个矩形范围内。</li>
|
|
127
|
+
</ul></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="HeightLimited" HeightLimited.html>HeightLimited</a><span style="display: none;"><p>限高分析</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="KeyboardCameraController" KeyboardCameraController.html>KeyboardCameraController</a><span style="display: none;"><p>场景相机漫游工具,可以实现沉浸式的鼠标键盘漫游功能,具体操作方法如下:</p>
|
|
128
|
+
<p>1. 相机平移操作,这类操作不会改变相机的朝向,只会改变相机的位置:</p>
|
|
129
|
+
<ul>
|
|
130
|
+
<li><code>W</code>:相机位置向前移动</li>
|
|
131
|
+
<li><code>S</code>:相机位置向后移动</li>
|
|
132
|
+
<li><code>A</code>:相机位置向左移动</li>
|
|
133
|
+
<li><code>D</code>:相机位置向右移动</li>
|
|
134
|
+
<li><code>Q</code>:相机位置升高</li>
|
|
135
|
+
<li><code>E</code>:相机位置降低</li>
|
|
136
|
+
</ul>
|
|
137
|
+
<p>2. 相对于相机视点操作,其中<code>U</code>,<code>O</code>,<code>J</code>,<code>L</code>操作会改变相机的位置,也会改变相机的朝向,而<code>I</code>,<code>K</code>操作只会改变相机相较视点的距离(在执行<code>U</code>,<code>O</code>,<code>J</code>,<code>L</code>操作时请勿同时执行其他按键操作):</p>
|
|
138
|
+
<ul>
|
|
139
|
+
<li><code>I</code>:相机视角靠近屏幕中心点</li>
|
|
140
|
+
<li><code>K</code>:相机视角远离屏幕中心点</li>
|
|
141
|
+
<li><code>J</code>:绕屏幕中心点向左旋转</li>
|
|
142
|
+
<li><code>L</code>:绕屏幕中心点向右旋转</li>
|
|
143
|
+
<li><code>U</code>:绕屏幕中心点向上旋转</li>
|
|
144
|
+
<li><code>O</code>:绕屏幕中心点向下旋转</li>
|
|
145
|
+
</ul>
|
|
146
|
+
<p>3. 相机自身操作,这类操作不会改变相机的位置,只会改变相机的朝向(在全屏状态下可使用鼠标调整相机视角):</p>
|
|
147
|
+
<ul>
|
|
148
|
+
<li><code>↑</code>:向上抬高视角</li>
|
|
149
|
+
<li><code>↓</code>:向下降低视角</li>
|
|
150
|
+
<li><code>←</code>:向左移动视角</li>
|
|
151
|
+
<li><code>→</code>:向右移动视角</li>
|
|
152
|
+
</ul>
|
|
153
|
+
<p>4. 鼠标操作:</p>
|
|
154
|
+
<ul>
|
|
155
|
+
<li>开启鼠标操作功能后,页面将进入全屏模式,此时相机视角可通过鼠标移动进行操作</li>
|
|
156
|
+
</ul>
|
|
157
|
+
<p>5. 辅助操作:</p>
|
|
158
|
+
<ul>
|
|
159
|
+
<li><code>Shift</code>:加速相机平移操作,调整移动步长为原来的两倍</li>
|
|
160
|
+
<li><code>R</code>:重置视角到初始视角,仅在参数<code>initView</code>定义时有效</li>
|
|
161
|
+
</ul></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISMapServerImageryProvider" MapGISMapServerImageryProvider.html>MapGISMapServerImageryProvider</a><span style="display: none;"><p>MapGIS地图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISTerrainProvider" MapGISTerrainProvider.html>MapGISTerrainProvider</a><span style="display: none;">undefined</span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISTileServerImageryProvider" MapGISTileServerImageryProvider.html>MapGISTileServerImageryProvider</a><span style="display: none;"><p>MapGIS瓦片服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISVectorTileImageryProvider" MapGISVectorTileImageryProvider.html>MapGISVectorTileImageryProvider</a><span style="display: none;"><p>MapGIS矢量瓦片服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ModelFilterTool" ModelFilterTool.html>ModelFilterTool</a><span style="display: none;"><p>模型空间过滤工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="PostProcessStageLibrary" PostProcessStageLibrary.html>PostProcessStageLibrary</a><span style="display: none;"><p>用于创建后处理特效的扩展库</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="S3MTileset" S3MTileset.html>S3MTileset</a><span style="display: none;"><p>S3MTileSet类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="UrlTemplateImageryProvider" UrlTemplateImageryProvider.html>UrlTemplateImageryProvider</a><span style="display: none;"><p>UrlTemplateImageryProvider对象,详细API参考Cesium的UrlTemplateImageryProvider的API文档</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WaterReflection" WaterReflection.html>WaterReflection</a><span style="display: none;"><p>创建反射水面的实例化对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WebMapServiceImageryProvider" WebMapServiceImageryProvider.html>WebMapServiceImageryProvider</a><span style="display: none;"><p>WMS地图图层,具体API请参考Cesium的WebMapServiceImageryProvider</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WebMapTileServiceImageryProvider" WebMapTileServiceImageryProvider.html>WebMapTileServiceImageryProvider</a><span style="display: none;"><p>WMTS地图图层,具体API请参考Cesium的WebMapTileServiceImageryProvider</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><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="GeoJSONLayerUtil" GeoJSONLayerUtil.html>GeoJSONLayerUtil</a><span style="display: none;"><p>GeoJSON图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="GraphicsLayerUtil" GraphicsLayerUtil.html>GraphicsLayerUtil</a><span style="display: none;"><p>几何图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="IGSFeatureLayerUtil" IGSFeatureLayerUtil.html>IGSFeatureLayerUtil</a><span style="display: none;"><p>IGSFeature图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WFSLayerUtil" 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><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ISSceneLayerUtil" ISSceneLayerUtil.html>ISSceneLayerUtil</a><span style="display: none;"><p>IS场景图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="Popup" Popup.html>Popup</a><span style="display: none;"><p>场景信息弹窗(cesium引擎)
|
|
162
|
+
参考示例:
|
|
163
|
+
<a href='#SceneView'>[初始化三维场景视图]</a>
|
|
164
|
+
<br>[ES5引入方式]:<br/>
|
|
165
|
+
zondy.cesium.SceneView() <br/>
|
|
166
|
+
[ES6引入方式]:<br/>
|
|
167
|
+
import { SceneView } from '@mapgis/webclient-cesium-plugin' <br/>
|
|
168
|
+
自定义样式说明:<br/>
|
|
169
|
+
zondy-popup__content 弹窗容器样式<br/>
|
|
170
|
+
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
171
|
+
zondy-popup__header 弹窗头部样式<br/>
|
|
172
|
+
zondy-popup__content 弹窗主体样式<br/>
|
|
173
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="SceneViewCesium" SceneViewCesium.html>SceneViewCesium</a><span style="display: none;"><p>视图类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="Screenshot" 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><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="SketchEditorCesium" SketchEditorCesium.html>SketchEditorCesium</a><span style="display: none;"><p>Cesium引擎草图编辑类<br/>
|
|
174
|
+
<br>[ES5引入方式]:<br/>
|
|
175
|
+
const { SketchEditor } = zondy.tool.sketch <br/>
|
|
176
|
+
[ES6引入方式]:<br/>
|
|
177
|
+
import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/></p></span></li></ul></div>
|
|
178
|
+
|
|
179
|
+
</nav>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="core" id="main-content-wrapper">
|
|
182
|
+
<div class="content">
|
|
183
|
+
<header id="page-title" class="page-title">
|
|
184
|
+
<span class="page-title-main">类名</span>
|
|
185
|
+
<span class="page-title-sub">KeyboardCameraController</span>
|
|
186
|
+
</header>
|
|
187
|
+
|
|
8
188
|
|
|
9
189
|
|
|
10
190
|
|
|
@@ -25,7 +205,7 @@
|
|
|
25
205
|
<h4 class="name" id="KeyboardCameraController">
|
|
26
206
|
<a class="href-link" href="#KeyboardCameraController">#</a>
|
|
27
207
|
|
|
28
|
-
<span class="code-name"
|
|
208
|
+
<span class="code-name" style="font-size:30px">
|
|
29
209
|
|
|
30
210
|
new KeyboardCameraController<span class="signature">(viewer, options)</span>
|
|
31
211
|
|
|
@@ -81,7 +261,7 @@
|
|
|
81
261
|
|
|
82
262
|
|
|
83
263
|
|
|
84
|
-
<h4
|
|
264
|
+
<h4>参数:</h4>
|
|
85
265
|
|
|
86
266
|
<div class="table-container">
|
|
87
267
|
<table class="params table">
|
|
@@ -113,12 +293,7 @@
|
|
|
113
293
|
<td class="type">
|
|
114
294
|
|
|
115
295
|
|
|
116
|
-
<span class="param-type">
|
|
117
|
-
|
|
118
|
-
Object
|
|
119
|
-
|
|
120
|
-
</span>
|
|
121
|
-
|
|
296
|
+
<span class="param-type">Object</span>
|
|
122
297
|
|
|
123
298
|
|
|
124
299
|
|
|
@@ -146,12 +321,7 @@
|
|
|
146
321
|
<td class="type">
|
|
147
322
|
|
|
148
323
|
|
|
149
|
-
<span class="param-type">
|
|
150
|
-
|
|
151
|
-
Object
|
|
152
|
-
|
|
153
|
-
</span>
|
|
154
|
-
|
|
324
|
+
<span class="param-type">Object</span>
|
|
155
325
|
|
|
156
326
|
|
|
157
327
|
|
|
@@ -177,12 +347,7 @@
|
|
|
177
347
|
<td class="type">
|
|
178
348
|
|
|
179
349
|
|
|
180
|
-
<span class="param-type">
|
|
181
|
-
|
|
182
|
-
Boolean
|
|
183
|
-
|
|
184
|
-
</span>
|
|
185
|
-
|
|
350
|
+
<span class="param-type">Boolean</span>
|
|
186
351
|
|
|
187
352
|
|
|
188
353
|
|
|
@@ -210,12 +375,7 @@
|
|
|
210
375
|
<td class="type">
|
|
211
376
|
|
|
212
377
|
|
|
213
|
-
<span class="param-type">
|
|
214
|
-
|
|
215
|
-
Boolean
|
|
216
|
-
|
|
217
|
-
</span>
|
|
218
|
-
|
|
378
|
+
<span class="param-type">Boolean</span>
|
|
219
379
|
|
|
220
380
|
|
|
221
381
|
|
|
@@ -243,12 +403,7 @@
|
|
|
243
403
|
<td class="type">
|
|
244
404
|
|
|
245
405
|
|
|
246
|
-
<span class="param-type">
|
|
247
|
-
|
|
248
|
-
Boolean
|
|
249
|
-
|
|
250
|
-
</span>
|
|
251
|
-
|
|
406
|
+
<span class="param-type">Boolean</span>
|
|
252
407
|
|
|
253
408
|
|
|
254
409
|
|
|
@@ -276,12 +431,7 @@
|
|
|
276
431
|
<td class="type">
|
|
277
432
|
|
|
278
433
|
|
|
279
|
-
<span class="param-type">
|
|
280
|
-
|
|
281
|
-
Number
|
|
282
|
-
|
|
283
|
-
</span>
|
|
284
|
-
|
|
434
|
+
<span class="param-type">Number</span>
|
|
285
435
|
|
|
286
436
|
|
|
287
437
|
|
|
@@ -309,12 +459,7 @@
|
|
|
309
459
|
<td class="type">
|
|
310
460
|
|
|
311
461
|
|
|
312
|
-
<span class="param-type">
|
|
313
|
-
|
|
314
|
-
Number
|
|
315
|
-
|
|
316
|
-
</span>
|
|
317
|
-
|
|
462
|
+
<span class="param-type">Number</span>
|
|
318
463
|
|
|
319
464
|
|
|
320
465
|
|
|
@@ -342,12 +487,7 @@
|
|
|
342
487
|
<td class="type">
|
|
343
488
|
|
|
344
489
|
|
|
345
|
-
<span class="param-type">
|
|
346
|
-
|
|
347
|
-
Number
|
|
348
|
-
|
|
349
|
-
</span>
|
|
350
|
-
|
|
490
|
+
<span class="param-type">Number</span>
|
|
351
491
|
|
|
352
492
|
|
|
353
493
|
|
|
@@ -375,12 +515,7 @@
|
|
|
375
515
|
<td class="type">
|
|
376
516
|
|
|
377
517
|
|
|
378
|
-
<span class="param-type">
|
|
379
|
-
|
|
380
|
-
Object
|
|
381
|
-
|
|
382
|
-
</span>
|
|
383
|
-
|
|
518
|
+
<span class="param-type">Object</span>
|
|
384
519
|
|
|
385
520
|
|
|
386
521
|
|
|
@@ -496,149 +631,6 @@
|
|
|
496
631
|
|
|
497
632
|
<div class='vertical-section'>
|
|
498
633
|
<h3 id='member'>成员变量</h3>
|
|
499
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
|
|
500
|
-
<div class="table-container">
|
|
501
|
-
<table class="params table">
|
|
502
|
-
<thead>
|
|
503
|
-
<tr>
|
|
504
|
-
<th>名称</th>
|
|
505
|
-
<th>类型</th>
|
|
506
|
-
<th>描述</th>
|
|
507
|
-
</tr>
|
|
508
|
-
</thead>
|
|
509
|
-
<tbody>
|
|
510
|
-
|
|
511
|
-
<tr class="deep-level-0">
|
|
512
|
-
<td class="name"><code><a href="#enableCollisionDetection">enableCollisionDetection</a></code></td>
|
|
513
|
-
<td class="name">
|
|
514
|
-
<code>
|
|
515
|
-
|
|
516
|
-
<span class="param-type">
|
|
517
|
-
|
|
518
|
-
Boolean
|
|
519
|
-
|
|
520
|
-
</span>
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
</code>
|
|
525
|
-
</td>
|
|
526
|
-
<td class="name"><code><p>获取或设置当前是否开启碰撞检测</p></code></td>
|
|
527
|
-
</tr>
|
|
528
|
-
|
|
529
|
-
<tr class="deep-level-0">
|
|
530
|
-
<td class="name"><code><a href="#enableDynamicMoveStep">enableDynamicMoveStep</a></code></td>
|
|
531
|
-
<td class="name">
|
|
532
|
-
<code>
|
|
533
|
-
|
|
534
|
-
<span class="param-type">
|
|
535
|
-
|
|
536
|
-
Boolean
|
|
537
|
-
|
|
538
|
-
</span>
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
</code>
|
|
543
|
-
</td>
|
|
544
|
-
<td class="name"><code><p>获取或设置当前是否开启动态移动步长</p></code></td>
|
|
545
|
-
</tr>
|
|
546
|
-
|
|
547
|
-
<tr class="deep-level-0">
|
|
548
|
-
<td class="name"><code><a href="#enableMouseLook">enableMouseLook</a></code></td>
|
|
549
|
-
<td class="name">
|
|
550
|
-
<code>
|
|
551
|
-
|
|
552
|
-
<span class="param-type">
|
|
553
|
-
|
|
554
|
-
Boolean
|
|
555
|
-
|
|
556
|
-
</span>
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
</code>
|
|
561
|
-
</td>
|
|
562
|
-
<td class="name"><code><p>获取或设置当前是否开启鼠标操作功能,当该参数为true时,开启漫游后页面将进入全屏模式,由于浏览器安全策略
|
|
563
|
-
的限制,此时<code>start()</code>方法必需由一个用户手势触发(如主动点击按钮),而不能由程序被动触发</p></code></td>
|
|
564
|
-
</tr>
|
|
565
|
-
|
|
566
|
-
<tr class="deep-level-0">
|
|
567
|
-
<td class="name"><code><a href="#initView">initView</a></code></td>
|
|
568
|
-
<td class="name">
|
|
569
|
-
<code>
|
|
570
|
-
|
|
571
|
-
<span class="param-type">
|
|
572
|
-
|
|
573
|
-
Object
|
|
574
|
-
|
|
575
|
-
</span>
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
</code>
|
|
580
|
-
</td>
|
|
581
|
-
<td class="name"><code><p>获取或设置初始视角</p></code></td>
|
|
582
|
-
</tr>
|
|
583
|
-
|
|
584
|
-
<tr class="deep-level-0">
|
|
585
|
-
<td class="name"><code><a href="#mouseSensitivity">mouseSensitivity</a></code></td>
|
|
586
|
-
<td class="name">
|
|
587
|
-
<code>
|
|
588
|
-
|
|
589
|
-
<span class="param-type">
|
|
590
|
-
|
|
591
|
-
Number
|
|
592
|
-
|
|
593
|
-
</span>
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
</code>
|
|
598
|
-
</td>
|
|
599
|
-
<td class="name"><code><p>获取或设置鼠标灵敏度</p></code></td>
|
|
600
|
-
</tr>
|
|
601
|
-
|
|
602
|
-
<tr class="deep-level-0">
|
|
603
|
-
<td class="name"><code><a href="#moveStep">moveStep</a></code></td>
|
|
604
|
-
<td class="name">
|
|
605
|
-
<code>
|
|
606
|
-
|
|
607
|
-
<span class="param-type">
|
|
608
|
-
|
|
609
|
-
Number
|
|
610
|
-
|
|
611
|
-
</span>
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
</code>
|
|
616
|
-
</td>
|
|
617
|
-
<td class="name"><code><p>获取或设置移动步长</p></code></td>
|
|
618
|
-
</tr>
|
|
619
|
-
|
|
620
|
-
<tr class="deep-level-0">
|
|
621
|
-
<td class="name"><code><a href="#rotateStep">rotateStep</a></code></td>
|
|
622
|
-
<td class="name">
|
|
623
|
-
<code>
|
|
624
|
-
|
|
625
|
-
<span class="param-type">
|
|
626
|
-
|
|
627
|
-
Number
|
|
628
|
-
|
|
629
|
-
</span>
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
</code>
|
|
634
|
-
</td>
|
|
635
|
-
<td class="name"><code><p>获取或设置旋转角度</p></code></td>
|
|
636
|
-
</tr>
|
|
637
|
-
|
|
638
|
-
</tbody>
|
|
639
|
-
</table>
|
|
640
|
-
</div>
|
|
641
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
|
|
642
634
|
<div class="members">
|
|
643
635
|
|
|
644
636
|
<div class="member">
|
|
@@ -646,12 +638,7 @@
|
|
|
646
638
|
<span class="method-parameter is-pulled-right">
|
|
647
639
|
<label>类型:</label>
|
|
648
640
|
|
|
649
|
-
<span class="param-type">
|
|
650
|
-
|
|
651
|
-
Boolean
|
|
652
|
-
|
|
653
|
-
</span>
|
|
654
|
-
|
|
641
|
+
<span class="param-type">Boolean</span>
|
|
655
642
|
|
|
656
643
|
|
|
657
644
|
</span>
|
|
@@ -721,12 +708,7 @@
|
|
|
721
708
|
<span class="method-parameter is-pulled-right">
|
|
722
709
|
<label>类型:</label>
|
|
723
710
|
|
|
724
|
-
<span class="param-type">
|
|
725
|
-
|
|
726
|
-
Boolean
|
|
727
|
-
|
|
728
|
-
</span>
|
|
729
|
-
|
|
711
|
+
<span class="param-type">Boolean</span>
|
|
730
712
|
|
|
731
713
|
|
|
732
714
|
</span>
|
|
@@ -796,12 +778,7 @@
|
|
|
796
778
|
<span class="method-parameter is-pulled-right">
|
|
797
779
|
<label>类型:</label>
|
|
798
780
|
|
|
799
|
-
<span class="param-type">
|
|
800
|
-
|
|
801
|
-
Boolean
|
|
802
|
-
|
|
803
|
-
</span>
|
|
804
|
-
|
|
781
|
+
<span class="param-type">Boolean</span>
|
|
805
782
|
|
|
806
783
|
|
|
807
784
|
</span>
|
|
@@ -872,12 +849,7 @@
|
|
|
872
849
|
<span class="method-parameter is-pulled-right">
|
|
873
850
|
<label>类型:</label>
|
|
874
851
|
|
|
875
|
-
<span class="param-type">
|
|
876
|
-
|
|
877
|
-
Object
|
|
878
|
-
|
|
879
|
-
</span>
|
|
880
|
-
|
|
852
|
+
<span class="param-type">Object</span>
|
|
881
853
|
|
|
882
854
|
|
|
883
855
|
</span>
|
|
@@ -947,12 +919,7 @@
|
|
|
947
919
|
<span class="method-parameter is-pulled-right">
|
|
948
920
|
<label>类型:</label>
|
|
949
921
|
|
|
950
|
-
<span class="param-type">
|
|
951
|
-
|
|
952
|
-
Number
|
|
953
|
-
|
|
954
|
-
</span>
|
|
955
|
-
|
|
922
|
+
<span class="param-type">Number</span>
|
|
956
923
|
|
|
957
924
|
|
|
958
925
|
</span>
|
|
@@ -1022,12 +989,7 @@
|
|
|
1022
989
|
<span class="method-parameter is-pulled-right">
|
|
1023
990
|
<label>类型:</label>
|
|
1024
991
|
|
|
1025
|
-
<span class="param-type">
|
|
1026
|
-
|
|
1027
|
-
Number
|
|
1028
|
-
|
|
1029
|
-
</span>
|
|
1030
|
-
|
|
992
|
+
<span class="param-type">Number</span>
|
|
1031
993
|
|
|
1032
994
|
|
|
1033
995
|
</span>
|
|
@@ -1097,12 +1059,7 @@
|
|
|
1097
1059
|
<span class="method-parameter is-pulled-right">
|
|
1098
1060
|
<label>类型:</label>
|
|
1099
1061
|
|
|
1100
|
-
<span class="param-type">
|
|
1101
|
-
|
|
1102
|
-
Number
|
|
1103
|
-
|
|
1104
|
-
</span>
|
|
1105
|
-
|
|
1062
|
+
<span class="param-type">Number</span>
|
|
1106
1063
|
|
|
1107
1064
|
|
|
1108
1065
|
</span>
|
|
@@ -1174,43 +1131,7 @@
|
|
|
1174
1131
|
|
|
1175
1132
|
<div class='vertical-section'>
|
|
1176
1133
|
<h3 id='function'>方法</h3>
|
|
1177
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
|
|
1178
1134
|
<div class="members">
|
|
1179
|
-
<div class="table-container">
|
|
1180
|
-
<table class="params table">
|
|
1181
|
-
<thead>
|
|
1182
|
-
<tr>
|
|
1183
|
-
<th>名称</th>
|
|
1184
|
-
<th>返回值类型</th>
|
|
1185
|
-
<th>描述</th>
|
|
1186
|
-
</tr>
|
|
1187
|
-
</thead>
|
|
1188
|
-
<tbody>
|
|
1189
|
-
|
|
1190
|
-
<tr class="deep-level-0">
|
|
1191
|
-
<td class="name"><code><a href="#start">start</a></code></td>
|
|
1192
|
-
<td class="name">
|
|
1193
|
-
<code>
|
|
1194
|
-
|
|
1195
|
-
</code>
|
|
1196
|
-
</td>
|
|
1197
|
-
<td class="name"><code><p>开始场景相机漫游</p></code></td>
|
|
1198
|
-
</tr>
|
|
1199
|
-
|
|
1200
|
-
<tr class="deep-level-0">
|
|
1201
|
-
<td class="name"><code><a href="#stop">stop</a></code></td>
|
|
1202
|
-
<td class="name">
|
|
1203
|
-
<code>
|
|
1204
|
-
|
|
1205
|
-
</code>
|
|
1206
|
-
</td>
|
|
1207
|
-
<td class="name"><code><p>停止场景相机漫游,若在全屏状态下,则无需调用该方法停止场景相机漫游,只需要按下<code>ESC</code>或<code>F11</code></p></code></td>
|
|
1208
|
-
</tr>
|
|
1209
|
-
|
|
1210
|
-
</tbody>
|
|
1211
|
-
</table>
|
|
1212
|
-
</div>
|
|
1213
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
|
|
1214
1135
|
|
|
1215
1136
|
<div class="member">
|
|
1216
1137
|
|
|
@@ -1219,7 +1140,7 @@
|
|
|
1219
1140
|
<h4 class="name" id="start">
|
|
1220
1141
|
<a class="href-link" href="#start">#</a>
|
|
1221
1142
|
|
|
1222
|
-
<span class="code-name"
|
|
1143
|
+
<span class="code-name" style="font-size:30px">
|
|
1223
1144
|
|
|
1224
1145
|
start<span class="signature">()</span>
|
|
1225
1146
|
|
|
@@ -1310,7 +1231,7 @@
|
|
|
1310
1231
|
<h4 class="name" id="stop">
|
|
1311
1232
|
<a class="href-link" href="#stop">#</a>
|
|
1312
1233
|
|
|
1313
|
-
<span class="code-name"
|
|
1234
|
+
<span class="code-name" style="font-size:30px">
|
|
1314
1235
|
|
|
1315
1236
|
stop<span class="signature">()</span>
|
|
1316
1237
|
|
|
@@ -1403,4 +1324,42 @@
|
|
|
1403
1324
|
|
|
1404
1325
|
</article>
|
|
1405
1326
|
|
|
1406
|
-
</section>
|
|
1327
|
+
</section>
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
</div>
|
|
1333
|
+
|
|
1334
|
+
<footer class="footer">
|
|
1335
|
+
<div class="content has-text-centered">
|
|
1336
|
+
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 17.1.1</a></p>
|
|
1337
|
+
<p class="sidebar-created-by">
|
|
1338
|
+
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
1339
|
+
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|
|
1340
|
+
</p>
|
|
1341
|
+
</div>
|
|
1342
|
+
</footer>
|
|
1343
|
+
|
|
1344
|
+
</div>
|
|
1345
|
+
<div id="side-nav" class="side-nav">
|
|
1346
|
+
<div style="margin-bottom: 10px;">
|
|
1347
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
|
|
1348
|
+
</div>
|
|
1349
|
+
<div style="margin-bottom: 10px;">
|
|
1350
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
|
|
1351
|
+
</div>
|
|
1352
|
+
<div style="margin-bottom: 10px;">
|
|
1353
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
|
|
1354
|
+
</div>
|
|
1355
|
+
<div>
|
|
1356
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
|
|
1357
|
+
</div>
|
|
1358
|
+
</div>
|
|
1359
|
+
</div>
|
|
1360
|
+
<script src="scripts/linenumber.js"> </script>
|
|
1361
|
+
|
|
1362
|
+
<script src="scripts/search.js"> </script>
|
|
1363
|
+
|
|
1364
|
+
</body>
|
|
1365
|
+
</html>
|