@mapgis/webclient-cesium-plugin 17.2.6 → 17.2.8
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 +16 -0
- package/dist/es5/webclient-cesium-plugin.min.js +2 -2
- package/dist/es5/webclient-common.min.js +2 -2
- package/dist/webclient-cesium-plugin-es6.min.js +2 -2
- 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> EditTool</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">EditTool</span>
|
|
186
|
+
</header>
|
|
187
|
+
|
|
8
188
|
|
|
9
189
|
|
|
10
190
|
|
|
@@ -25,7 +205,7 @@
|
|
|
25
205
|
<h4 class="name" id="EditTool">
|
|
26
206
|
<a class="href-link" href="#EditTool">#</a>
|
|
27
207
|
|
|
28
|
-
<span class="code-name"
|
|
208
|
+
<span class="code-name" style="font-size:30px">
|
|
29
209
|
|
|
30
210
|
new EditTool<span class="signature">(viewer, graphicsLayer, options)</span>
|
|
31
211
|
|
|
@@ -47,7 +227,7 @@
|
|
|
47
227
|
|
|
48
228
|
|
|
49
229
|
|
|
50
|
-
<h4
|
|
230
|
+
<h4>参数:</h4>
|
|
51
231
|
|
|
52
232
|
<div class="table-container">
|
|
53
233
|
<table class="params table">
|
|
@@ -77,12 +257,7 @@
|
|
|
77
257
|
<td class="type">
|
|
78
258
|
|
|
79
259
|
|
|
80
|
-
<span class="param-type">
|
|
81
|
-
|
|
82
|
-
Viewer
|
|
83
|
-
|
|
84
|
-
</span>
|
|
85
|
-
|
|
260
|
+
<span class="param-type">Viewer</span>
|
|
86
261
|
|
|
87
262
|
|
|
88
263
|
|
|
@@ -106,12 +281,7 @@
|
|
|
106
281
|
<td class="type">
|
|
107
282
|
|
|
108
283
|
|
|
109
|
-
<span class="param-type">
|
|
110
|
-
|
|
111
|
-
Object
|
|
112
|
-
|
|
113
|
-
</span>
|
|
114
|
-
|
|
284
|
+
<span class="param-type">Object</span>
|
|
115
285
|
|
|
116
286
|
|
|
117
287
|
|
|
@@ -135,12 +305,7 @@
|
|
|
135
305
|
<td class="type">
|
|
136
306
|
|
|
137
307
|
|
|
138
|
-
<span class="param-type">
|
|
139
|
-
|
|
140
|
-
Object
|
|
141
|
-
|
|
142
|
-
</span>
|
|
143
|
-
|
|
308
|
+
<span class="param-type">Object</span>
|
|
144
309
|
|
|
145
310
|
|
|
146
311
|
|
|
@@ -242,58 +407,6 @@
|
|
|
242
407
|
|
|
243
408
|
<div class='vertical-section'>
|
|
244
409
|
<h3 id='member'>成员变量</h3>
|
|
245
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
|
|
246
|
-
<div class="table-container">
|
|
247
|
-
<table class="params table">
|
|
248
|
-
<thead>
|
|
249
|
-
<tr>
|
|
250
|
-
<th>名称</th>
|
|
251
|
-
<th>类型</th>
|
|
252
|
-
<th>描述</th>
|
|
253
|
-
</tr>
|
|
254
|
-
</thead>
|
|
255
|
-
<tbody>
|
|
256
|
-
|
|
257
|
-
<tr class="deep-level-0">
|
|
258
|
-
<td class="name"><code><a href="#pickingGraphic">pickingGraphic</a></code></td>
|
|
259
|
-
<td class="name">
|
|
260
|
-
<code>
|
|
261
|
-
|
|
262
|
-
<span class="param-type">
|
|
263
|
-
|
|
264
|
-
<a link="Graphic.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Graphic" Graphic.html>Graphic</a>
|
|
265
|
-
|
|
266
|
-
</span>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
</code>
|
|
271
|
-
</td>
|
|
272
|
-
<td class="name"><code><p>返回当前选中图形</p></code></td>
|
|
273
|
-
</tr>
|
|
274
|
-
|
|
275
|
-
<tr class="deep-level-0">
|
|
276
|
-
<td class="name"><code><a href="#state">state</a></code></td>
|
|
277
|
-
<td class="name">
|
|
278
|
-
<code>
|
|
279
|
-
|
|
280
|
-
<span class="param-type">
|
|
281
|
-
|
|
282
|
-
<a link="Graphic.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Graphic" Graphic.html>Graphic</a>
|
|
283
|
-
|
|
284
|
-
</span>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
</code>
|
|
289
|
-
</td>
|
|
290
|
-
<td class="name"><code><p>返回当前选中图形</p></code></td>
|
|
291
|
-
</tr>
|
|
292
|
-
|
|
293
|
-
</tbody>
|
|
294
|
-
</table>
|
|
295
|
-
</div>
|
|
296
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
|
|
297
410
|
<div class="members">
|
|
298
411
|
|
|
299
412
|
<div class="member">
|
|
@@ -301,12 +414,7 @@
|
|
|
301
414
|
<span class="method-parameter is-pulled-right">
|
|
302
415
|
<label>类型:</label>
|
|
303
416
|
|
|
304
|
-
<span class="param-type">
|
|
305
|
-
|
|
306
|
-
<a link="Graphic.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Graphic" Graphic.html>Graphic</a>
|
|
307
|
-
|
|
308
|
-
</span>
|
|
309
|
-
|
|
417
|
+
<span class="param-type"><a class="mapgis-link-name" title="Graphic" Graphic.html>Graphic</a></span>
|
|
310
418
|
|
|
311
419
|
|
|
312
420
|
</span>
|
|
@@ -380,12 +488,7 @@
|
|
|
380
488
|
<span class="method-parameter is-pulled-right">
|
|
381
489
|
<label>类型:</label>
|
|
382
490
|
|
|
383
|
-
<span class="param-type">
|
|
384
|
-
|
|
385
|
-
<a link="Graphic.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Graphic" Graphic.html>Graphic</a>
|
|
386
|
-
|
|
387
|
-
</span>
|
|
388
|
-
|
|
491
|
+
<span class="param-type"><a class="mapgis-link-name" title="Graphic" Graphic.html>Graphic</a></span>
|
|
389
492
|
|
|
390
493
|
|
|
391
494
|
</span>
|
|
@@ -461,145 +564,7 @@
|
|
|
461
564
|
|
|
462
565
|
<div class='vertical-section'>
|
|
463
566
|
<h3 id='function'>方法</h3>
|
|
464
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
|
|
465
567
|
<div class="members">
|
|
466
|
-
<div class="table-container">
|
|
467
|
-
<table class="params table">
|
|
468
|
-
<thead>
|
|
469
|
-
<tr>
|
|
470
|
-
<th>名称</th>
|
|
471
|
-
<th>返回值类型</th>
|
|
472
|
-
<th>描述</th>
|
|
473
|
-
</tr>
|
|
474
|
-
</thead>
|
|
475
|
-
<tbody>
|
|
476
|
-
|
|
477
|
-
<tr class="deep-level-0">
|
|
478
|
-
<td class="name"><code><a href="#active">active</a></code></td>
|
|
479
|
-
<td class="name">
|
|
480
|
-
<code>
|
|
481
|
-
|
|
482
|
-
</code>
|
|
483
|
-
</td>
|
|
484
|
-
<td class="name"><code><p>激活编辑工具</p></code></td>
|
|
485
|
-
</tr>
|
|
486
|
-
|
|
487
|
-
<tr class="deep-level-0">
|
|
488
|
-
<td class="name"><code><a href="#activeRotationMode">activeRotationMode</a></code></td>
|
|
489
|
-
<td class="name">
|
|
490
|
-
<code>
|
|
491
|
-
|
|
492
|
-
</code>
|
|
493
|
-
</td>
|
|
494
|
-
<td class="name"><code><p>开启旋转编辑模式</p></code></td>
|
|
495
|
-
</tr>
|
|
496
|
-
|
|
497
|
-
<tr class="deep-level-0">
|
|
498
|
-
<td class="name"><code><a href="#activeScaleMode">activeScaleMode</a></code></td>
|
|
499
|
-
<td class="name">
|
|
500
|
-
<code>
|
|
501
|
-
|
|
502
|
-
</code>
|
|
503
|
-
</td>
|
|
504
|
-
<td class="name"><code><p>开启缩放编辑模式</p></code></td>
|
|
505
|
-
</tr>
|
|
506
|
-
|
|
507
|
-
<tr class="deep-level-0">
|
|
508
|
-
<td class="name"><code><a href="#activeTranslationMode">activeTranslationMode</a></code></td>
|
|
509
|
-
<td class="name">
|
|
510
|
-
<code>
|
|
511
|
-
|
|
512
|
-
</code>
|
|
513
|
-
</td>
|
|
514
|
-
<td class="name"><code><p>开启平移编辑模式</p></code></td>
|
|
515
|
-
</tr>
|
|
516
|
-
|
|
517
|
-
<tr class="deep-level-0">
|
|
518
|
-
<td class="name"><code><a href="#destroy">destroy</a></code></td>
|
|
519
|
-
<td class="name">
|
|
520
|
-
<code>
|
|
521
|
-
|
|
522
|
-
</code>
|
|
523
|
-
</td>
|
|
524
|
-
<td class="name"><code><p>销毁编辑工具,清除编辑点</p></code></td>
|
|
525
|
-
</tr>
|
|
526
|
-
|
|
527
|
-
<tr class="deep-level-0">
|
|
528
|
-
<td class="name"><code><a href="#getTransformEditor">getTransformEditor</a></code></td>
|
|
529
|
-
<td class="name">
|
|
530
|
-
<code>
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
</code>
|
|
535
|
-
</td>
|
|
536
|
-
<td class="name"><code><p>获取模型编辑器</p></code></td>
|
|
537
|
-
</tr>
|
|
538
|
-
|
|
539
|
-
<tr class="deep-level-0">
|
|
540
|
-
<td class="name"><code><a href="#mouseMoveEvent">mouseMoveEvent</a></code></td>
|
|
541
|
-
<td class="name">
|
|
542
|
-
<code>
|
|
543
|
-
|
|
544
|
-
</code>
|
|
545
|
-
</td>
|
|
546
|
-
<td class="name"><code><p>鼠标拖动更新图形事件</p></code></td>
|
|
547
|
-
</tr>
|
|
548
|
-
|
|
549
|
-
<tr class="deep-level-0">
|
|
550
|
-
<td class="name"><code><a href="#startEdit">startEdit</a></code></td>
|
|
551
|
-
<td class="name">
|
|
552
|
-
<code>
|
|
553
|
-
|
|
554
|
-
</code>
|
|
555
|
-
</td>
|
|
556
|
-
<td class="name"><code><p>激活编辑工具</p></code></td>
|
|
557
|
-
</tr>
|
|
558
|
-
|
|
559
|
-
<tr class="deep-level-0">
|
|
560
|
-
<td class="name"><code><a href="#stop">stop</a></code></td>
|
|
561
|
-
<td class="name">
|
|
562
|
-
<code>
|
|
563
|
-
|
|
564
|
-
</code>
|
|
565
|
-
</td>
|
|
566
|
-
<td class="name"><code><p>关闭编辑工具</p></code></td>
|
|
567
|
-
</tr>
|
|
568
|
-
|
|
569
|
-
<tr class="deep-level-0">
|
|
570
|
-
<td class="name"><code><a href="#stopEdit">stopEdit</a></code></td>
|
|
571
|
-
<td class="name">
|
|
572
|
-
<code>
|
|
573
|
-
|
|
574
|
-
</code>
|
|
575
|
-
</td>
|
|
576
|
-
<td class="name"><code><p>取消编辑状态,清除选择</p></code></td>
|
|
577
|
-
</tr>
|
|
578
|
-
|
|
579
|
-
<tr class="deep-level-0">
|
|
580
|
-
<td class="name"><code><a href="#toggleNonUniformScaling">toggleNonUniformScaling</a></code></td>
|
|
581
|
-
<td class="name">
|
|
582
|
-
<code>
|
|
583
|
-
|
|
584
|
-
</code>
|
|
585
|
-
</td>
|
|
586
|
-
<td class="name"><code><p>开启等比缩放编辑模式</p></code></td>
|
|
587
|
-
</tr>
|
|
588
|
-
|
|
589
|
-
<tr class="deep-level-0">
|
|
590
|
-
<td class="name"><code><a href="#undo">undo</a></code></td>
|
|
591
|
-
<td class="name">
|
|
592
|
-
<code>
|
|
593
|
-
|
|
594
|
-
</code>
|
|
595
|
-
</td>
|
|
596
|
-
<td class="name"><code><p>撤销</p></code></td>
|
|
597
|
-
</tr>
|
|
598
|
-
|
|
599
|
-
</tbody>
|
|
600
|
-
</table>
|
|
601
|
-
</div>
|
|
602
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
|
|
603
568
|
|
|
604
569
|
<div class="member">
|
|
605
570
|
|
|
@@ -608,7 +573,7 @@
|
|
|
608
573
|
<h4 class="name" id="active">
|
|
609
574
|
<a class="href-link" href="#active">#</a>
|
|
610
575
|
|
|
611
|
-
<span class="code-name"
|
|
576
|
+
<span class="code-name" style="font-size:30px">
|
|
612
577
|
|
|
613
578
|
active<span class="signature">()</span>
|
|
614
579
|
|
|
@@ -699,7 +664,7 @@
|
|
|
699
664
|
<h4 class="name" id="activeRotationMode">
|
|
700
665
|
<a class="href-link" href="#activeRotationMode">#</a>
|
|
701
666
|
|
|
702
|
-
<span class="code-name"
|
|
667
|
+
<span class="code-name" style="font-size:30px">
|
|
703
668
|
|
|
704
669
|
activeRotationMode<span class="signature">()</span>
|
|
705
670
|
|
|
@@ -790,7 +755,7 @@
|
|
|
790
755
|
<h4 class="name" id="activeScaleMode">
|
|
791
756
|
<a class="href-link" href="#activeScaleMode">#</a>
|
|
792
757
|
|
|
793
|
-
<span class="code-name"
|
|
758
|
+
<span class="code-name" style="font-size:30px">
|
|
794
759
|
|
|
795
760
|
activeScaleMode<span class="signature">()</span>
|
|
796
761
|
|
|
@@ -881,7 +846,7 @@
|
|
|
881
846
|
<h4 class="name" id="activeTranslationMode">
|
|
882
847
|
<a class="href-link" href="#activeTranslationMode">#</a>
|
|
883
848
|
|
|
884
|
-
<span class="code-name"
|
|
849
|
+
<span class="code-name" style="font-size:30px">
|
|
885
850
|
|
|
886
851
|
activeTranslationMode<span class="signature">()</span>
|
|
887
852
|
|
|
@@ -972,7 +937,7 @@
|
|
|
972
937
|
<h4 class="name" id="destroy">
|
|
973
938
|
<a class="href-link" href="#destroy">#</a>
|
|
974
939
|
|
|
975
|
-
<span class="code-name"
|
|
940
|
+
<span class="code-name" style="font-size:30px">
|
|
976
941
|
|
|
977
942
|
destroy<span class="signature">()</span>
|
|
978
943
|
|
|
@@ -1063,7 +1028,7 @@
|
|
|
1063
1028
|
<h4 class="name" id="getTransformEditor">
|
|
1064
1029
|
<a class="href-link" href="#getTransformEditor">#</a>
|
|
1065
1030
|
|
|
1066
|
-
<span class="code-name"
|
|
1031
|
+
<span class="code-name" style="font-size:30px">
|
|
1067
1032
|
|
|
1068
1033
|
getTransformEditor<span class="signature">(editGraphic)</span>
|
|
1069
1034
|
|
|
@@ -1085,7 +1050,7 @@
|
|
|
1085
1050
|
|
|
1086
1051
|
|
|
1087
1052
|
|
|
1088
|
-
<h4
|
|
1053
|
+
<h4>参数:</h4>
|
|
1089
1054
|
|
|
1090
1055
|
<div class="table-container">
|
|
1091
1056
|
<table class="params table">
|
|
@@ -1115,12 +1080,7 @@
|
|
|
1115
1080
|
<td class="type">
|
|
1116
1081
|
|
|
1117
1082
|
|
|
1118
|
-
<span class="param-type">
|
|
1119
|
-
|
|
1120
|
-
Object
|
|
1121
|
-
|
|
1122
|
-
</span>
|
|
1123
|
-
|
|
1083
|
+
<span class="param-type">Object</span>
|
|
1124
1084
|
|
|
1125
1085
|
|
|
1126
1086
|
|
|
@@ -1195,7 +1155,7 @@
|
|
|
1195
1155
|
|
|
1196
1156
|
|
|
1197
1157
|
<div class='columns method-parameter'>
|
|
1198
|
-
<div class="column is-2"><label
|
|
1158
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
1199
1159
|
<div class="column is-10">
|
|
1200
1160
|
|
|
1201
1161
|
|
|
@@ -1225,7 +1185,7 @@
|
|
|
1225
1185
|
<h4 class="name" id="mouseMoveEvent">
|
|
1226
1186
|
<a class="href-link" href="#mouseMoveEvent">#</a>
|
|
1227
1187
|
|
|
1228
|
-
<span class="code-name"
|
|
1188
|
+
<span class="code-name" style="font-size:30px">
|
|
1229
1189
|
|
|
1230
1190
|
mouseMoveEvent<span class="signature">(pickingGraphic, event)</span>
|
|
1231
1191
|
|
|
@@ -1247,7 +1207,7 @@
|
|
|
1247
1207
|
|
|
1248
1208
|
|
|
1249
1209
|
|
|
1250
|
-
<h4
|
|
1210
|
+
<h4>参数:</h4>
|
|
1251
1211
|
|
|
1252
1212
|
<div class="table-container">
|
|
1253
1213
|
<table class="params table">
|
|
@@ -1379,7 +1339,7 @@
|
|
|
1379
1339
|
<h4 class="name" id="startEdit">
|
|
1380
1340
|
<a class="href-link" href="#startEdit">#</a>
|
|
1381
1341
|
|
|
1382
|
-
<span class="code-name"
|
|
1342
|
+
<span class="code-name" style="font-size:30px">
|
|
1383
1343
|
|
|
1384
1344
|
startEdit<span class="signature">()</span>
|
|
1385
1345
|
|
|
@@ -1470,7 +1430,7 @@
|
|
|
1470
1430
|
<h4 class="name" id="stop">
|
|
1471
1431
|
<a class="href-link" href="#stop">#</a>
|
|
1472
1432
|
|
|
1473
|
-
<span class="code-name"
|
|
1433
|
+
<span class="code-name" style="font-size:30px">
|
|
1474
1434
|
|
|
1475
1435
|
stop<span class="signature">()</span>
|
|
1476
1436
|
|
|
@@ -1561,7 +1521,7 @@
|
|
|
1561
1521
|
<h4 class="name" id="stopEdit">
|
|
1562
1522
|
<a class="href-link" href="#stopEdit">#</a>
|
|
1563
1523
|
|
|
1564
|
-
<span class="code-name"
|
|
1524
|
+
<span class="code-name" style="font-size:30px">
|
|
1565
1525
|
|
|
1566
1526
|
stopEdit<span class="signature">()</span>
|
|
1567
1527
|
|
|
@@ -1652,7 +1612,7 @@
|
|
|
1652
1612
|
<h4 class="name" id="toggleNonUniformScaling">
|
|
1653
1613
|
<a class="href-link" href="#toggleNonUniformScaling">#</a>
|
|
1654
1614
|
|
|
1655
|
-
<span class="code-name"
|
|
1615
|
+
<span class="code-name" style="font-size:30px">
|
|
1656
1616
|
|
|
1657
1617
|
toggleNonUniformScaling<span class="signature">()</span>
|
|
1658
1618
|
|
|
@@ -1743,7 +1703,7 @@
|
|
|
1743
1703
|
<h4 class="name" id="undo">
|
|
1744
1704
|
<a class="href-link" href="#undo">#</a>
|
|
1745
1705
|
|
|
1746
|
-
<span class="code-name"
|
|
1706
|
+
<span class="code-name" style="font-size:30px">
|
|
1747
1707
|
|
|
1748
1708
|
undo<span class="signature">()</span>
|
|
1749
1709
|
|
|
@@ -1836,4 +1796,42 @@
|
|
|
1836
1796
|
|
|
1837
1797
|
</article>
|
|
1838
1798
|
|
|
1839
|
-
</section>
|
|
1799
|
+
</section>
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
</div>
|
|
1805
|
+
|
|
1806
|
+
<footer class="footer">
|
|
1807
|
+
<div class="content has-text-centered">
|
|
1808
|
+
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 17.1.1</a></p>
|
|
1809
|
+
<p class="sidebar-created-by">
|
|
1810
|
+
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
1811
|
+
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|
|
1812
|
+
</p>
|
|
1813
|
+
</div>
|
|
1814
|
+
</footer>
|
|
1815
|
+
|
|
1816
|
+
</div>
|
|
1817
|
+
<div id="side-nav" class="side-nav">
|
|
1818
|
+
<div style="margin-bottom: 10px;">
|
|
1819
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
|
|
1820
|
+
</div>
|
|
1821
|
+
<div style="margin-bottom: 10px;">
|
|
1822
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
|
|
1823
|
+
</div>
|
|
1824
|
+
<div style="margin-bottom: 10px;">
|
|
1825
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
|
|
1826
|
+
</div>
|
|
1827
|
+
<div>
|
|
1828
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
|
|
1829
|
+
</div>
|
|
1830
|
+
</div>
|
|
1831
|
+
</div>
|
|
1832
|
+
<script src="scripts/linenumber.js"> </script>
|
|
1833
|
+
|
|
1834
|
+
<script src="scripts/search.js"> </script>
|
|
1835
|
+
|
|
1836
|
+
</body>
|
|
1837
|
+
</html>
|