@mapgis/webclient-leaflet-plugin 17.2.8 → 17.4.1
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 +24 -2
- package/dist/es5/webclient-common.min.js +37 -5
- package/dist/es5/webclient-leaflet-plugin.min.js +1 -1
- package/dist/webclient-leaflet-plugin-es6.min.js +4 -4
- package/documention/ArcGISMapImageLayer.html +197 -122
- package/documention/ArcGISTileLayer.html +187 -62
- package/documention/EchartsLayer.html +189 -21
- package/documention/FeatureLayer.html +178 -8
- package/documention/FeatureLayerUtil.html +178 -34
- package/documention/IGSMapImageLayer.html +201 -146
- package/documention/IGSTileLayer.html +191 -86
- package/documention/L.zondy.MapvBaseLayer.html +189 -96
- package/documention/MapLayer.html +183 -38
- package/documention/MapVLayer.html +191 -33
- package/documention/MapView.html +6189 -0
- package/documention/MapViewLeaflet.html +366 -1410
- package/documention/Popup.html +200 -284
- package/documention/Screenshot.html +183 -134
- package/documention/SketchEditor.html +3211 -0
- package/documention/SketchEditorLeaflet.html +241 -477
- package/documention/TileLayer.html +182 -32
- package/documention/TileLayerWMS.html +180 -20
- package/documention/VectorTileLayer.html +188 -68
- package/documention/WMSLayerView.html +190 -121
- package/documention/WebMapServiceLayer.html +194 -104
- package/documention/WebMapTileServiceLayer.html +195 -110
- package/documention/WebTileLayer.html +192 -92
- package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +290 -658
- package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +324 -870
- package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +305 -736
- package/documention/Zondy.ThemeLayer.ThemeLayer.html +247 -483
- package/documention/Zondy.ThemeLayer.ThemeStyle.html +234 -866
- package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +304 -792
- package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +341 -941
- package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +302 -720
- package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +299 -759
- package/documention/Zondy.Widget.html +185 -48
- package/documention/Zondy.view.UI.html +182 -31
- package/documention/global.html +11448 -131
- package/documention/index.html +15 -16
- package/documention/scripts/search.js +1 -26
- package/documention/styles/app.min.css +1 -1
- package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +152 -7
- package/documention/tutorial-2.1M3D/350/246/201/347/264/240/351/200/211/345/217/226.html +153 -8
- package/documention/tutorial-2.2M3D/351/222/273/345/255/224/345/211/226/345/210/207.html +153 -8
- package/package.json +7 -8
|
@@ -1,10 +1,140 @@
|
|
|
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> SketchEditorLeaflet</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 style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISMapImageLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapImageLayer.html">ArcGISMapImageLayer</a><span style="display: none;"><p>ArcGIS地图图片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISTileLayer.html">ArcGISTileLayer</a><span style="display: none;"><p>ArcGIS瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="EchartsLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EchartsLayer.html">EchartsLayer</a><span style="display: none;"><p>Echarts图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FeatureLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayer.html">FeatureLayer</a><span style="display: none;"><p>要素图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSMapImageLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSMapImageLayer.html">IGSMapImageLayer</a><span style="display: none;"><p>地图图片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSTileLayer.html">IGSTileLayer</a><span style="display: none;"><p>IGS瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapLayer.html">MapLayer</a><span style="display: none;"><p>屏幕出一张图图层基类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapVLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapVLayer.html">MapVLayer</a><span style="display: none;"><p>MapV图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayer.html">TileLayer</a><span style="display: none;"><p>带裁剪功能的瓦片图层基类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TileLayerWMS"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayerWMS.html">TileLayerWMS</a><span style="display: none;"><p>WMS图层基类(相比于原生的L.TileLayer.WMS, 此图层支持空间裁剪功能)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VectorTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VectorTileLayer.html">VectorTileLayer</a><span style="display: none;"><p>矢量瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceLayer.html">WebMapServiceLayer</a><span style="display: none;"><p>WMS图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapTileServiceLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapTileServiceLayer.html">WebMapTileServiceLayer</a><span style="display: none;"><p>WMTS图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebTileLayer.html">WebTileLayer</a><span style="display: none;"><p>网络瓦片图层(Leaflet)</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="FeatureLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayerUtil.html">FeatureLayerUtil</a><span style="display: none;"><p>要素图层工具类(Leaflet)</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="MapView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(leaflet引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
|
|
108
|
+
参考示例:
|
|
109
|
+
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
110
|
+
<br>[ES5引入方式]:<br/>
|
|
111
|
+
zondy.leaflet.MapView() <br/>
|
|
112
|
+
[ES6引入方式]:<br/>
|
|
113
|
+
import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></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>二维场景信息弹窗(leaflet引擎)
|
|
114
|
+
参考示例:
|
|
115
|
+
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
116
|
+
[ES6引入方式]:<br/>
|
|
117
|
+
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
|
|
118
|
+
自定义样式说明:<br/>
|
|
119
|
+
zondy-popup__content 弹窗容器样式<br/>
|
|
120
|
+
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
121
|
+
zondy-popup__header 弹窗头部样式<br/>
|
|
122
|
+
zondy-popup__content 弹窗主体样式<br/>
|
|
123
|
+
zondy-popup__footer 弹窗底部样式<br/></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="SketchEditorLeaflet"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorLeaflet.html">SketchEditorLeaflet</a><span style="display: none;"><p>二维Leaflet引擎草图编辑类<br/>
|
|
124
|
+
<br>[ES5引入方式]:<br/>
|
|
125
|
+
const { SketchEditor } = zondy.leaflet.tool.sketch <br/>
|
|
126
|
+
[ES6引入方式]:<br/>
|
|
127
|
+
import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/></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="zondy.themelayer.GraphThemeLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="zondy.themelayer.GraphThemeLayer.html">GraphThemeLayer</a><span style="display: none;"><p>统计专题图通过为每个要素绘制统计图表来反映其对应的专题值的大小。它可同时表示多个字段属性信息,在区域本身与各区域之间形成横向和纵向的对比。<br>统计专题图多用于具有相关数量特征的地图上,比如表示不同地区多年的粮食产量、GDP、人口等,不同时段客运量、地铁流量等。目前提供的统计图类型有:柱状图(Bar),折线图(Line),饼图(Pie),三维柱状图(Bar3D),点状图(Point),环状图(Ring)。</p></span></li></ul></div>
|
|
128
|
+
|
|
129
|
+
</nav>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="core" id="main-content-wrapper">
|
|
132
|
+
<div class="content">
|
|
133
|
+
<header id="page-title" class="page-title">
|
|
134
|
+
<span class="page-title-main">类名</span>
|
|
135
|
+
<span class="page-title-sub">SketchEditorLeaflet</span>
|
|
136
|
+
</header>
|
|
137
|
+
|
|
8
138
|
|
|
9
139
|
|
|
10
140
|
|
|
@@ -25,7 +155,7 @@
|
|
|
25
155
|
<h4 class="name" id="SketchEditorLeaflet">
|
|
26
156
|
<a class="href-link" href="#SketchEditorLeaflet">#</a>
|
|
27
157
|
|
|
28
|
-
<span class="code-name"
|
|
158
|
+
<span class="code-name" style="font-size:30px">
|
|
29
159
|
|
|
30
160
|
new SketchEditorLeaflet<span class="signature">(options)</span>
|
|
31
161
|
|
|
@@ -51,7 +181,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
51
181
|
|
|
52
182
|
|
|
53
183
|
|
|
54
|
-
<h4
|
|
184
|
+
<h4>参数:</h4>
|
|
55
185
|
|
|
56
186
|
<div class="table-container">
|
|
57
187
|
<table class="params table">
|
|
@@ -81,12 +211,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
81
211
|
<td class="type">
|
|
82
212
|
|
|
83
213
|
|
|
84
|
-
<span class="param-type">
|
|
85
|
-
|
|
86
|
-
Object
|
|
87
|
-
|
|
88
|
-
</span>
|
|
89
|
-
|
|
214
|
+
<span class="param-type">Object</span>
|
|
90
215
|
|
|
91
216
|
|
|
92
217
|
|
|
@@ -108,19 +233,10 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
108
233
|
<td class="type">
|
|
109
234
|
|
|
110
235
|
|
|
111
|
-
<span class="param-type">
|
|
112
|
-
|
|
113
|
-
MapView
|
|
114
|
-
|
|
115
|
-
</span>
|
|
236
|
+
<span class="param-type"><a href="MapView.html">MapView</a></span>
|
|
116
237
|
|
|
|
117
238
|
|
|
118
|
-
<span class="param-type">
|
|
119
|
-
|
|
120
|
-
SceneView
|
|
121
|
-
|
|
122
|
-
</span>
|
|
123
|
-
|
|
239
|
+
<span class="param-type">SceneView</span>
|
|
124
240
|
|
|
125
241
|
|
|
126
242
|
|
|
@@ -142,12 +258,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
142
258
|
<td class="type">
|
|
143
259
|
|
|
144
260
|
|
|
145
|
-
<span class="param-type">
|
|
146
|
-
|
|
147
|
-
GraphicsLayer
|
|
148
|
-
|
|
149
|
-
</span>
|
|
150
|
-
|
|
261
|
+
<span class="param-type">GraphicsLayer</span>
|
|
151
262
|
|
|
152
263
|
|
|
153
264
|
|
|
@@ -169,12 +280,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
169
280
|
<td class="type">
|
|
170
281
|
|
|
171
282
|
|
|
172
|
-
<span class="param-type">
|
|
173
|
-
|
|
174
|
-
SketchStyle
|
|
175
|
-
|
|
176
|
-
</span>
|
|
177
|
-
|
|
283
|
+
<span class="param-type">SketchStyle</span>
|
|
178
284
|
|
|
179
285
|
|
|
180
286
|
|
|
@@ -196,12 +302,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
196
302
|
<td class="type">
|
|
197
303
|
|
|
198
304
|
|
|
199
|
-
<span class="param-type">
|
|
200
|
-
|
|
201
|
-
Object
|
|
202
|
-
|
|
203
|
-
</span>
|
|
204
|
-
|
|
305
|
+
<span class="param-type">Object</span>
|
|
205
306
|
|
|
206
307
|
|
|
207
308
|
|
|
@@ -266,12 +367,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
266
367
|
|
|
267
368
|
|
|
268
369
|
<div class="method-parameter columns">
|
|
269
|
-
<div class="column is-2"><label
|
|
370
|
+
<div class="column is-2"><label>绑定事件:</label></div>
|
|
270
371
|
<div class="column is-10">
|
|
271
372
|
<ul>
|
|
272
|
-
<li
|
|
373
|
+
<li>SketchEditor#event:草图绘制完成事件</li>
|
|
273
374
|
|
|
274
|
-
<li
|
|
375
|
+
<li>SketchEditor#event:草图被选中事件</li>
|
|
275
376
|
</ul>
|
|
276
377
|
</div>
|
|
277
378
|
</div>
|
|
@@ -388,273 +489,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
388
489
|
|
|
389
490
|
<div class='vertical-section'>
|
|
390
491
|
<h3 id='function'>方法</h3>
|
|
391
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
|
|
392
492
|
<div class="members">
|
|
393
|
-
<div class="table-container">
|
|
394
|
-
<table class="params table">
|
|
395
|
-
<thead>
|
|
396
|
-
<tr>
|
|
397
|
-
<th>名称</th>
|
|
398
|
-
<th>返回值类型</th>
|
|
399
|
-
<th>描述</th>
|
|
400
|
-
</tr>
|
|
401
|
-
</thead>
|
|
402
|
-
<tbody>
|
|
403
|
-
|
|
404
|
-
<tr class="deep-level-0">
|
|
405
|
-
<td class="name"><code><a href="#addVertex">addVertex</a></code></td>
|
|
406
|
-
<td class="name">
|
|
407
|
-
<code>
|
|
408
|
-
|
|
409
|
-
</code>
|
|
410
|
-
</td>
|
|
411
|
-
<td class="name"><code><p>向当前线或区草图中插入新的顶点</code></td>
|
|
412
|
-
</tr>
|
|
413
|
-
|
|
414
|
-
<tr class="deep-level-0">
|
|
415
|
-
<td class="name"><code><a href="#canRedo">canRedo</a></code></td>
|
|
416
|
-
<td class="name">
|
|
417
|
-
<code>
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
<span class="param-type">
|
|
421
|
-
|
|
422
|
-
Boolean
|
|
423
|
-
|
|
424
|
-
</span>
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
</code>
|
|
430
|
-
</td>
|
|
431
|
-
<td class="name"><code><p>草图是否可执行恢复操作</code></td>
|
|
432
|
-
</tr>
|
|
433
|
-
|
|
434
|
-
<tr class="deep-level-0">
|
|
435
|
-
<td class="name"><code><a href="#canUndo">canUndo</a></code></td>
|
|
436
|
-
<td class="name">
|
|
437
|
-
<code>
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
<span class="param-type">
|
|
441
|
-
|
|
442
|
-
Boolean
|
|
443
|
-
|
|
444
|
-
</span>
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
</code>
|
|
450
|
-
</td>
|
|
451
|
-
<td class="name"><code><p>草图是否可执行撤销操作</code></td>
|
|
452
|
-
</tr>
|
|
453
|
-
|
|
454
|
-
<tr class="deep-level-0">
|
|
455
|
-
<td class="name"><code><a href="#drawPolylineToPolygon">drawPolylineToPolygon</a></code></td>
|
|
456
|
-
<td class="name">
|
|
457
|
-
<code>
|
|
458
|
-
|
|
459
|
-
</code>
|
|
460
|
-
</td>
|
|
461
|
-
<td class="name"><code><p>线拓扑造区</code></td>
|
|
462
|
-
</tr>
|
|
463
|
-
|
|
464
|
-
<tr class="deep-level-0">
|
|
465
|
-
<td class="name"><code><a href="#getGeometry">getGeometry</a></code></td>
|
|
466
|
-
<td class="name">
|
|
467
|
-
<code>
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
<span class="param-type">
|
|
471
|
-
|
|
472
|
-
Geometry
|
|
473
|
-
|
|
474
|
-
</span>
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
</code>
|
|
480
|
-
</td>
|
|
481
|
-
<td class="name"><code><p>获取草图几何对象</code></td>
|
|
482
|
-
</tr>
|
|
483
|
-
|
|
484
|
-
<tr class="deep-level-0">
|
|
485
|
-
<td class="name"><code><a href="#getSketchStyle">getSketchStyle</a></code></td>
|
|
486
|
-
<td class="name">
|
|
487
|
-
<code>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
<span class="param-type">
|
|
491
|
-
|
|
492
|
-
SketchStyle
|
|
493
|
-
|
|
494
|
-
</span>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
</code>
|
|
500
|
-
</td>
|
|
501
|
-
<td class="name"><code><p>获取草图样式</code></td>
|
|
502
|
-
</tr>
|
|
503
|
-
|
|
504
|
-
<tr class="deep-level-0">
|
|
505
|
-
<td class="name"><code><a href="#redo">redo</a></code></td>
|
|
506
|
-
<td class="name">
|
|
507
|
-
<code>
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
<span class="param-type">
|
|
511
|
-
|
|
512
|
-
Geometry
|
|
513
|
-
|
|
514
|
-
</span>
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
</code>
|
|
520
|
-
</td>
|
|
521
|
-
<td class="name"><code><p>恢复被撤销的草图</code></td>
|
|
522
|
-
</tr>
|
|
523
|
-
|
|
524
|
-
<tr class="deep-level-0">
|
|
525
|
-
<td class="name"><code><a href="#remove">remove</a></code></td>
|
|
526
|
-
<td class="name">
|
|
527
|
-
<code>
|
|
528
|
-
|
|
529
|
-
</code>
|
|
530
|
-
</td>
|
|
531
|
-
<td class="name"><code><p>移除当前草图</code></td>
|
|
532
|
-
</tr>
|
|
533
|
-
|
|
534
|
-
<tr class="deep-level-0">
|
|
535
|
-
<td class="name"><code><a href="#removeVertex">removeVertex</a></code></td>
|
|
536
|
-
<td class="name">
|
|
537
|
-
<code>
|
|
538
|
-
|
|
539
|
-
</code>
|
|
540
|
-
</td>
|
|
541
|
-
<td class="name"><code><p>移除草图图形的某个顶点</code></td>
|
|
542
|
-
</tr>
|
|
543
|
-
|
|
544
|
-
<tr class="deep-level-0">
|
|
545
|
-
<td class="name"><code><a href="#setSketchStyle">setSketchStyle</a></code></td>
|
|
546
|
-
<td class="name">
|
|
547
|
-
<code>
|
|
548
|
-
|
|
549
|
-
</code>
|
|
550
|
-
</td>
|
|
551
|
-
<td class="name"><code><p>设置草图样式</code></td>
|
|
552
|
-
</tr>
|
|
553
|
-
|
|
554
|
-
<tr class="deep-level-0">
|
|
555
|
-
<td class="name"><code><a href="#split">split</a></code></td>
|
|
556
|
-
<td class="name">
|
|
557
|
-
<code>
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
<span class="param-type">
|
|
561
|
-
|
|
562
|
-
Array.<Polygon>
|
|
563
|
-
|
|
564
|
-
</span>
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
</code>
|
|
570
|
-
</td>
|
|
571
|
-
<td class="name"><code><p>分割草图对象或区几何对象</code></td>
|
|
572
|
-
</tr>
|
|
573
|
-
|
|
574
|
-
<tr class="deep-level-0">
|
|
575
|
-
<td class="name"><code><a href="#start">start</a></code></td>
|
|
576
|
-
<td class="name">
|
|
577
|
-
<code>
|
|
578
|
-
|
|
579
|
-
</code>
|
|
580
|
-
</td>
|
|
581
|
-
<td class="name"><code><p>开始绘制草图</code></td>
|
|
582
|
-
</tr>
|
|
583
|
-
|
|
584
|
-
<tr class="deep-level-0">
|
|
585
|
-
<td class="name"><code><a href="#startCustomDrawTool">startCustomDrawTool</a></code></td>
|
|
586
|
-
<td class="name">
|
|
587
|
-
<code>
|
|
588
|
-
|
|
589
|
-
</code>
|
|
590
|
-
</td>
|
|
591
|
-
<td class="name"><code><p>开始绘制草图</code></td>
|
|
592
|
-
</tr>
|
|
593
|
-
|
|
594
|
-
<tr class="deep-level-0">
|
|
595
|
-
<td class="name"><code><a href="#stop">stop</a></code></td>
|
|
596
|
-
<td class="name">
|
|
597
|
-
<code>
|
|
598
|
-
|
|
599
|
-
</code>
|
|
600
|
-
</td>
|
|
601
|
-
<td class="name"><code><p>停止绘制</code></td>
|
|
602
|
-
</tr>
|
|
603
|
-
|
|
604
|
-
<tr class="deep-level-0">
|
|
605
|
-
<td class="name"><code><a href="#undo">undo</a></code></td>
|
|
606
|
-
<td class="name">
|
|
607
|
-
<code>
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
<span class="param-type">
|
|
611
|
-
|
|
612
|
-
Geometry
|
|
613
|
-
|
|
614
|
-
</span>
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
</code>
|
|
620
|
-
</td>
|
|
621
|
-
<td class="name"><code><p>撤销当前编辑操作</code></td>
|
|
622
|
-
</tr>
|
|
623
|
-
|
|
624
|
-
<tr class="deep-level-0">
|
|
625
|
-
<td class="name"><code><a href="#union">union</a></code></td>
|
|
626
|
-
<td class="name">
|
|
627
|
-
<code>
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
<span class="param-type">
|
|
631
|
-
|
|
632
|
-
Polygon
|
|
633
|
-
|
|
634
|
-
</span>
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
</code>
|
|
640
|
-
</td>
|
|
641
|
-
<td class="name"><code><p>合并多个区几何</code></td>
|
|
642
|
-
</tr>
|
|
643
|
-
|
|
644
|
-
<tr class="deep-level-0">
|
|
645
|
-
<td class="name"><code><a href="#updateVertex">updateVertex</a></code></td>
|
|
646
|
-
<td class="name">
|
|
647
|
-
<code>
|
|
648
|
-
|
|
649
|
-
</code>
|
|
650
|
-
</td>
|
|
651
|
-
<td class="name"><code><p>更新当前草图图形的某个顶点</code></td>
|
|
652
|
-
</tr>
|
|
653
|
-
|
|
654
|
-
</tbody>
|
|
655
|
-
</table>
|
|
656
|
-
</div>
|
|
657
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
|
|
658
493
|
|
|
659
494
|
<div class="member">
|
|
660
495
|
|
|
@@ -663,7 +498,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
663
498
|
<h4 class="name" id="addVertex">
|
|
664
499
|
<a class="href-link" href="#addVertex">#</a>
|
|
665
500
|
|
|
666
|
-
<span class="code-name"
|
|
501
|
+
<span class="code-name" style="font-size:30px">
|
|
667
502
|
|
|
668
503
|
addVertex<span class="signature">(point, index)</span>
|
|
669
504
|
|
|
@@ -685,7 +520,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
685
520
|
|
|
686
521
|
|
|
687
522
|
|
|
688
|
-
<h4
|
|
523
|
+
<h4>参数:</h4>
|
|
689
524
|
|
|
690
525
|
<div class="table-container">
|
|
691
526
|
<table class="params table">
|
|
@@ -715,12 +550,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
715
550
|
<td class="type">
|
|
716
551
|
|
|
717
552
|
|
|
718
|
-
<span class="param-type">
|
|
719
|
-
|
|
720
|
-
Point
|
|
721
|
-
|
|
722
|
-
</span>
|
|
723
|
-
|
|
553
|
+
<span class="param-type">Point</span>
|
|
724
554
|
|
|
725
555
|
|
|
726
556
|
|
|
@@ -744,12 +574,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
744
574
|
<td class="type">
|
|
745
575
|
|
|
746
576
|
|
|
747
|
-
<span class="param-type">
|
|
748
|
-
|
|
749
|
-
Number
|
|
750
|
-
|
|
751
|
-
</span>
|
|
752
|
-
|
|
577
|
+
<span class="param-type">Number</span>
|
|
753
578
|
|
|
754
579
|
|
|
755
580
|
|
|
@@ -837,7 +662,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
837
662
|
<h4 class="name" id="canRedo">
|
|
838
663
|
<a class="href-link" href="#canRedo">#</a>
|
|
839
664
|
|
|
840
|
-
<span class="code-name"
|
|
665
|
+
<span class="code-name" style="font-size:30px">
|
|
841
666
|
|
|
842
667
|
canRedo<span class="signature">()</span>
|
|
843
668
|
|
|
@@ -915,7 +740,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
915
740
|
|
|
916
741
|
|
|
917
742
|
<div class='columns method-parameter'>
|
|
918
|
-
<div class="column is-2"><label
|
|
743
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
919
744
|
<div class="column is-10">
|
|
920
745
|
|
|
921
746
|
|
|
@@ -926,12 +751,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
926
751
|
<div class='column is-5 has-text-left'>
|
|
927
752
|
<label>类型: </label>
|
|
928
753
|
|
|
929
|
-
<span class="param-type">
|
|
930
|
-
|
|
931
|
-
Boolean
|
|
932
|
-
|
|
933
|
-
</span>
|
|
934
|
-
|
|
754
|
+
<span class="param-type">Boolean</span>
|
|
935
755
|
|
|
936
756
|
|
|
937
757
|
</div>
|
|
@@ -956,7 +776,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
956
776
|
<h4 class="name" id="canUndo">
|
|
957
777
|
<a class="href-link" href="#canUndo">#</a>
|
|
958
778
|
|
|
959
|
-
<span class="code-name"
|
|
779
|
+
<span class="code-name" style="font-size:30px">
|
|
960
780
|
|
|
961
781
|
canUndo<span class="signature">()</span>
|
|
962
782
|
|
|
@@ -1034,7 +854,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
1034
854
|
|
|
1035
855
|
|
|
1036
856
|
<div class='columns method-parameter'>
|
|
1037
|
-
<div class="column is-2"><label
|
|
857
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
1038
858
|
<div class="column is-10">
|
|
1039
859
|
|
|
1040
860
|
|
|
@@ -1045,12 +865,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
1045
865
|
<div class='column is-5 has-text-left'>
|
|
1046
866
|
<label>类型: </label>
|
|
1047
867
|
|
|
1048
|
-
<span class="param-type">
|
|
1049
|
-
|
|
1050
|
-
Boolean
|
|
1051
|
-
|
|
1052
|
-
</span>
|
|
1053
|
-
|
|
868
|
+
<span class="param-type">Boolean</span>
|
|
1054
869
|
|
|
1055
870
|
|
|
1056
871
|
</div>
|
|
@@ -1075,7 +890,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
1075
890
|
<h4 class="name" id="drawPolylineToPolygon">
|
|
1076
891
|
<a class="href-link" href="#drawPolylineToPolygon">#</a>
|
|
1077
892
|
|
|
1078
|
-
<span class="code-name"
|
|
893
|
+
<span class="code-name" style="font-size:30px">
|
|
1079
894
|
|
|
1080
895
|
drawPolylineToPolygon<span class="signature">(snapAndReferGeometries)</span>
|
|
1081
896
|
|
|
@@ -1097,7 +912,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
1097
912
|
|
|
1098
913
|
|
|
1099
914
|
|
|
1100
|
-
<h4
|
|
915
|
+
<h4>参数:</h4>
|
|
1101
916
|
|
|
1102
917
|
<div class="table-container">
|
|
1103
918
|
<table class="params table">
|
|
@@ -1127,12 +942,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
1127
942
|
<td class="type">
|
|
1128
943
|
|
|
1129
944
|
|
|
1130
|
-
<span class="param-type">
|
|
1131
|
-
|
|
1132
|
-
Array.<Polygon>
|
|
1133
|
-
|
|
1134
|
-
</span>
|
|
1135
|
-
|
|
945
|
+
<span class="param-type">Array.<Polygon></span>
|
|
1136
946
|
|
|
1137
947
|
|
|
1138
948
|
|
|
@@ -1297,7 +1107,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1297
1107
|
<h4 class="name" id="getGeometry">
|
|
1298
1108
|
<a class="href-link" href="#getGeometry">#</a>
|
|
1299
1109
|
|
|
1300
|
-
<span class="code-name"
|
|
1110
|
+
<span class="code-name" style="font-size:30px">
|
|
1301
1111
|
|
|
1302
1112
|
getGeometry<span class="signature">()</span>
|
|
1303
1113
|
|
|
@@ -1375,7 +1185,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1375
1185
|
|
|
1376
1186
|
|
|
1377
1187
|
<div class='columns method-parameter'>
|
|
1378
|
-
<div class="column is-2"><label
|
|
1188
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
1379
1189
|
<div class="column is-10">
|
|
1380
1190
|
|
|
1381
1191
|
|
|
@@ -1386,12 +1196,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1386
1196
|
<div class='column is-5 has-text-left'>
|
|
1387
1197
|
<label>类型: </label>
|
|
1388
1198
|
|
|
1389
|
-
<span class="param-type">
|
|
1390
|
-
|
|
1391
|
-
Geometry
|
|
1392
|
-
|
|
1393
|
-
</span>
|
|
1394
|
-
|
|
1199
|
+
<span class="param-type">Geometry</span>
|
|
1395
1200
|
|
|
1396
1201
|
|
|
1397
1202
|
</div>
|
|
@@ -1416,7 +1221,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1416
1221
|
<h4 class="name" id="getSketchStyle">
|
|
1417
1222
|
<a class="href-link" href="#getSketchStyle">#</a>
|
|
1418
1223
|
|
|
1419
|
-
<span class="code-name"
|
|
1224
|
+
<span class="code-name" style="font-size:30px">
|
|
1420
1225
|
|
|
1421
1226
|
getSketchStyle<span class="signature">()</span>
|
|
1422
1227
|
|
|
@@ -1494,7 +1299,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1494
1299
|
|
|
1495
1300
|
|
|
1496
1301
|
<div class='columns method-parameter'>
|
|
1497
|
-
<div class="column is-2"><label
|
|
1302
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
1498
1303
|
<div class="column is-10">
|
|
1499
1304
|
|
|
1500
1305
|
|
|
@@ -1505,12 +1310,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1505
1310
|
<div class='column is-5 has-text-left'>
|
|
1506
1311
|
<label>类型: </label>
|
|
1507
1312
|
|
|
1508
|
-
<span class="param-type">
|
|
1509
|
-
|
|
1510
|
-
SketchStyle
|
|
1511
|
-
|
|
1512
|
-
</span>
|
|
1513
|
-
|
|
1313
|
+
<span class="param-type">SketchStyle</span>
|
|
1514
1314
|
|
|
1515
1315
|
|
|
1516
1316
|
</div>
|
|
@@ -1535,7 +1335,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1535
1335
|
<h4 class="name" id="redo">
|
|
1536
1336
|
<a class="href-link" href="#redo">#</a>
|
|
1537
1337
|
|
|
1538
|
-
<span class="code-name"
|
|
1338
|
+
<span class="code-name" style="font-size:30px">
|
|
1539
1339
|
|
|
1540
1340
|
redo<span class="signature">()</span>
|
|
1541
1341
|
|
|
@@ -1613,7 +1413,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1613
1413
|
|
|
1614
1414
|
|
|
1615
1415
|
<div class='columns method-parameter'>
|
|
1616
|
-
<div class="column is-2"><label
|
|
1416
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
1617
1417
|
<div class="column is-10">
|
|
1618
1418
|
|
|
1619
1419
|
|
|
@@ -1624,12 +1424,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1624
1424
|
<div class='column is-5 has-text-left'>
|
|
1625
1425
|
<label>类型: </label>
|
|
1626
1426
|
|
|
1627
|
-
<span class="param-type">
|
|
1628
|
-
|
|
1629
|
-
Geometry
|
|
1630
|
-
|
|
1631
|
-
</span>
|
|
1632
|
-
|
|
1427
|
+
<span class="param-type">Geometry</span>
|
|
1633
1428
|
|
|
1634
1429
|
|
|
1635
1430
|
</div>
|
|
@@ -1683,7 +1478,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1683
1478
|
<h4 class="name" id="remove">
|
|
1684
1479
|
<a class="href-link" href="#remove">#</a>
|
|
1685
1480
|
|
|
1686
|
-
<span class="code-name"
|
|
1481
|
+
<span class="code-name" style="font-size:30px">
|
|
1687
1482
|
|
|
1688
1483
|
remove<span class="signature">()</span>
|
|
1689
1484
|
|
|
@@ -1774,7 +1569,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1774
1569
|
<h4 class="name" id="removeVertex">
|
|
1775
1570
|
<a class="href-link" href="#removeVertex">#</a>
|
|
1776
1571
|
|
|
1777
|
-
<span class="code-name"
|
|
1572
|
+
<span class="code-name" style="font-size:30px">
|
|
1778
1573
|
|
|
1779
1574
|
removeVertex<span class="signature">(index)</span>
|
|
1780
1575
|
|
|
@@ -1796,7 +1591,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1796
1591
|
|
|
1797
1592
|
|
|
1798
1593
|
|
|
1799
|
-
<h4
|
|
1594
|
+
<h4>参数:</h4>
|
|
1800
1595
|
|
|
1801
1596
|
<div class="table-container">
|
|
1802
1597
|
<table class="params table">
|
|
@@ -1826,12 +1621,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1826
1621
|
<td class="type">
|
|
1827
1622
|
|
|
1828
1623
|
|
|
1829
|
-
<span class="param-type">
|
|
1830
|
-
|
|
1831
|
-
Number
|
|
1832
|
-
|
|
1833
|
-
</span>
|
|
1834
|
-
|
|
1624
|
+
<span class="param-type">Number</span>
|
|
1835
1625
|
|
|
1836
1626
|
|
|
1837
1627
|
|
|
@@ -1919,7 +1709,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1919
1709
|
<h4 class="name" id="setSketchStyle">
|
|
1920
1710
|
<a class="href-link" href="#setSketchStyle">#</a>
|
|
1921
1711
|
|
|
1922
|
-
<span class="code-name"
|
|
1712
|
+
<span class="code-name" style="font-size:30px">
|
|
1923
1713
|
|
|
1924
1714
|
setSketchStyle<span class="signature">(sketchStyle)</span>
|
|
1925
1715
|
|
|
@@ -1941,7 +1731,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1941
1731
|
|
|
1942
1732
|
|
|
1943
1733
|
|
|
1944
|
-
<h4
|
|
1734
|
+
<h4>参数:</h4>
|
|
1945
1735
|
|
|
1946
1736
|
<div class="table-container">
|
|
1947
1737
|
<table class="params table">
|
|
@@ -1971,12 +1761,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1971
1761
|
<td class="type">
|
|
1972
1762
|
|
|
1973
1763
|
|
|
1974
|
-
<span class="param-type">
|
|
1975
|
-
|
|
1976
|
-
SketchStyle
|
|
1977
|
-
|
|
1978
|
-
</span>
|
|
1979
|
-
|
|
1764
|
+
<span class="param-type">SketchStyle</span>
|
|
1980
1765
|
|
|
1981
1766
|
|
|
1982
1767
|
|
|
@@ -2152,7 +1937,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2152
1937
|
<h4 class="name" id="split">
|
|
2153
1938
|
<a class="href-link" href="#split">#</a>
|
|
2154
1939
|
|
|
2155
|
-
<span class="code-name"
|
|
1940
|
+
<span class="code-name" style="font-size:30px">
|
|
2156
1941
|
|
|
2157
1942
|
split<span class="signature">(target, splitPolyline)</span>
|
|
2158
1943
|
|
|
@@ -2174,7 +1959,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2174
1959
|
|
|
2175
1960
|
|
|
2176
1961
|
|
|
2177
|
-
<h4
|
|
1962
|
+
<h4>参数:</h4>
|
|
2178
1963
|
|
|
2179
1964
|
<div class="table-container">
|
|
2180
1965
|
<table class="params table">
|
|
@@ -2204,19 +1989,10 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2204
1989
|
<td class="type">
|
|
2205
1990
|
|
|
2206
1991
|
|
|
2207
|
-
<span class="param-type">
|
|
2208
|
-
|
|
2209
|
-
Polygon
|
|
2210
|
-
|
|
2211
|
-
</span>
|
|
1992
|
+
<span class="param-type">Polygon</span>
|
|
2212
1993
|
|
|
|
2213
1994
|
|
|
2214
|
-
<span class="param-type">
|
|
2215
|
-
|
|
2216
|
-
SketchEditor
|
|
2217
|
-
|
|
2218
|
-
</span>
|
|
2219
|
-
|
|
1995
|
+
<span class="param-type">SketchEditor</span>
|
|
2220
1996
|
|
|
2221
1997
|
|
|
2222
1998
|
|
|
@@ -2240,12 +2016,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2240
2016
|
<td class="type">
|
|
2241
2017
|
|
|
2242
2018
|
|
|
2243
|
-
<span class="param-type">
|
|
2244
|
-
|
|
2245
|
-
Polyline
|
|
2246
|
-
|
|
2247
|
-
</span>
|
|
2248
|
-
|
|
2019
|
+
<span class="param-type">Polyline</span>
|
|
2249
2020
|
|
|
2250
2021
|
|
|
2251
2022
|
|
|
@@ -2320,7 +2091,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2320
2091
|
|
|
2321
2092
|
|
|
2322
2093
|
<div class='columns method-parameter'>
|
|
2323
|
-
<div class="column is-2"><label
|
|
2094
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2324
2095
|
<div class="column is-10">
|
|
2325
2096
|
|
|
2326
2097
|
|
|
@@ -2333,12 +2104,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2333
2104
|
<div class='column is-5 has-text-left'>
|
|
2334
2105
|
<label>类型: </label>
|
|
2335
2106
|
|
|
2336
|
-
<span class="param-type">
|
|
2337
|
-
|
|
2338
|
-
Array.<Polygon>
|
|
2339
|
-
|
|
2340
|
-
</span>
|
|
2341
|
-
|
|
2107
|
+
<span class="param-type">Array.<Polygon></span>
|
|
2342
2108
|
|
|
2343
2109
|
|
|
2344
2110
|
</div>
|
|
@@ -2405,7 +2171,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2405
2171
|
<h4 class="name" id="start">
|
|
2406
2172
|
<a class="href-link" href="#start">#</a>
|
|
2407
2173
|
|
|
2408
|
-
<span class="code-name"
|
|
2174
|
+
<span class="code-name" style="font-size:30px">
|
|
2409
2175
|
|
|
2410
2176
|
start<span class="signature">(dataType, extensionOptions)</span>
|
|
2411
2177
|
|
|
@@ -2427,7 +2193,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2427
2193
|
|
|
2428
2194
|
|
|
2429
2195
|
|
|
2430
|
-
<h4
|
|
2196
|
+
<h4>参数:</h4>
|
|
2431
2197
|
|
|
2432
2198
|
<div class="table-container">
|
|
2433
2199
|
<table class="params table">
|
|
@@ -2457,12 +2223,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2457
2223
|
<td class="type">
|
|
2458
2224
|
|
|
2459
2225
|
|
|
2460
|
-
<span class="param-type">
|
|
2461
|
-
|
|
2462
|
-
SketchDataType
|
|
2463
|
-
|
|
2464
|
-
</span>
|
|
2465
|
-
|
|
2226
|
+
<span class="param-type">SketchDataType</span>
|
|
2466
2227
|
|
|
2467
2228
|
|
|
2468
2229
|
|
|
@@ -2486,12 +2247,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2486
2247
|
<td class="type">
|
|
2487
2248
|
|
|
2488
2249
|
|
|
2489
|
-
<span class="param-type">
|
|
2490
|
-
|
|
2491
|
-
Object
|
|
2492
|
-
|
|
2493
|
-
</span>
|
|
2494
|
-
|
|
2250
|
+
<span class="param-type">Object</span>
|
|
2495
2251
|
|
|
2496
2252
|
|
|
2497
2253
|
|
|
@@ -2619,7 +2375,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2619
2375
|
<h4 class="name" id="startCustomDrawTool">
|
|
2620
2376
|
<a class="href-link" href="#startCustomDrawTool">#</a>
|
|
2621
2377
|
|
|
2622
|
-
<span class="code-name"
|
|
2378
|
+
<span class="code-name" style="font-size:30px">
|
|
2623
2379
|
|
|
2624
2380
|
startCustomDrawTool<span class="signature">(dataType)</span>
|
|
2625
2381
|
|
|
@@ -2641,7 +2397,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2641
2397
|
|
|
2642
2398
|
|
|
2643
2399
|
|
|
2644
|
-
<h4
|
|
2400
|
+
<h4>参数:</h4>
|
|
2645
2401
|
|
|
2646
2402
|
<div class="table-container">
|
|
2647
2403
|
<table class="params table">
|
|
@@ -2671,12 +2427,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2671
2427
|
<td class="type">
|
|
2672
2428
|
|
|
2673
2429
|
|
|
2674
|
-
<span class="param-type">
|
|
2675
|
-
|
|
2676
|
-
SketchDataType
|
|
2677
|
-
|
|
2678
|
-
</span>
|
|
2679
|
-
|
|
2430
|
+
<span class="param-type">SketchDataType</span>
|
|
2680
2431
|
|
|
2681
2432
|
|
|
2682
2433
|
|
|
@@ -2803,7 +2554,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2803
2554
|
<h4 class="name" id="stop">
|
|
2804
2555
|
<a class="href-link" href="#stop">#</a>
|
|
2805
2556
|
|
|
2806
|
-
<span class="code-name"
|
|
2557
|
+
<span class="code-name" style="font-size:30px">
|
|
2807
2558
|
|
|
2808
2559
|
stop<span class="signature">()</span>
|
|
2809
2560
|
|
|
@@ -2894,7 +2645,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2894
2645
|
<h4 class="name" id="undo">
|
|
2895
2646
|
<a class="href-link" href="#undo">#</a>
|
|
2896
2647
|
|
|
2897
|
-
<span class="code-name"
|
|
2648
|
+
<span class="code-name" style="font-size:30px">
|
|
2898
2649
|
|
|
2899
2650
|
undo<span class="signature">()</span>
|
|
2900
2651
|
|
|
@@ -2972,7 +2723,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2972
2723
|
|
|
2973
2724
|
|
|
2974
2725
|
<div class='columns method-parameter'>
|
|
2975
|
-
<div class="column is-2"><label
|
|
2726
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2976
2727
|
<div class="column is-10">
|
|
2977
2728
|
|
|
2978
2729
|
|
|
@@ -2983,12 +2734,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2983
2734
|
<div class='column is-5 has-text-left'>
|
|
2984
2735
|
<label>类型: </label>
|
|
2985
2736
|
|
|
2986
|
-
<span class="param-type">
|
|
2987
|
-
|
|
2988
|
-
Geometry
|
|
2989
|
-
|
|
2990
|
-
</span>
|
|
2991
|
-
|
|
2737
|
+
<span class="param-type">Geometry</span>
|
|
2992
2738
|
|
|
2993
2739
|
|
|
2994
2740
|
</div>
|
|
@@ -3042,7 +2788,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3042
2788
|
<h4 class="name" id="union">
|
|
3043
2789
|
<a class="href-link" href="#union">#</a>
|
|
3044
2790
|
|
|
3045
|
-
<span class="code-name"
|
|
2791
|
+
<span class="code-name" style="font-size:30px">
|
|
3046
2792
|
|
|
3047
2793
|
union<span class="signature">(polygons)</span>
|
|
3048
2794
|
|
|
@@ -3064,7 +2810,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3064
2810
|
|
|
3065
2811
|
|
|
3066
2812
|
|
|
3067
|
-
<h4
|
|
2813
|
+
<h4>参数:</h4>
|
|
3068
2814
|
|
|
3069
2815
|
<div class="table-container">
|
|
3070
2816
|
<table class="params table">
|
|
@@ -3094,12 +2840,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3094
2840
|
<td class="type">
|
|
3095
2841
|
|
|
3096
2842
|
|
|
3097
|
-
<span class="param-type">
|
|
3098
|
-
|
|
3099
|
-
Polygon
|
|
3100
|
-
|
|
3101
|
-
</span>
|
|
3102
|
-
|
|
2843
|
+
<span class="param-type">Polygon</span>
|
|
3103
2844
|
|
|
3104
2845
|
|
|
3105
2846
|
|
|
@@ -3174,7 +2915,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3174
2915
|
|
|
3175
2916
|
|
|
3176
2917
|
<div class='columns method-parameter'>
|
|
3177
|
-
<div class="column is-2"><label
|
|
2918
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3178
2919
|
<div class="column is-10">
|
|
3179
2920
|
|
|
3180
2921
|
|
|
@@ -3187,12 +2928,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3187
2928
|
<div class='column is-5 has-text-left'>
|
|
3188
2929
|
<label>类型: </label>
|
|
3189
2930
|
|
|
3190
|
-
<span class="param-type">
|
|
3191
|
-
|
|
3192
|
-
Polygon
|
|
3193
|
-
|
|
3194
|
-
</span>
|
|
3195
|
-
|
|
2931
|
+
<span class="param-type">Polygon</span>
|
|
3196
2932
|
|
|
3197
2933
|
|
|
3198
2934
|
</div>
|
|
@@ -3265,7 +3001,7 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3265
3001
|
<h4 class="name" id="updateVertex">
|
|
3266
3002
|
<a class="href-link" href="#updateVertex">#</a>
|
|
3267
3003
|
|
|
3268
|
-
<span class="code-name"
|
|
3004
|
+
<span class="code-name" style="font-size:30px">
|
|
3269
3005
|
|
|
3270
3006
|
updateVertex<span class="signature">(point, index)</span>
|
|
3271
3007
|
|
|
@@ -3287,7 +3023,7 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3287
3023
|
|
|
3288
3024
|
|
|
3289
3025
|
|
|
3290
|
-
<h4
|
|
3026
|
+
<h4>参数:</h4>
|
|
3291
3027
|
|
|
3292
3028
|
<div class="table-container">
|
|
3293
3029
|
<table class="params table">
|
|
@@ -3317,12 +3053,7 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3317
3053
|
<td class="type">
|
|
3318
3054
|
|
|
3319
3055
|
|
|
3320
|
-
<span class="param-type">
|
|
3321
|
-
|
|
3322
|
-
Point
|
|
3323
|
-
|
|
3324
|
-
</span>
|
|
3325
|
-
|
|
3056
|
+
<span class="param-type">Point</span>
|
|
3326
3057
|
|
|
3327
3058
|
|
|
3328
3059
|
|
|
@@ -3346,12 +3077,7 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3346
3077
|
<td class="type">
|
|
3347
3078
|
|
|
3348
3079
|
|
|
3349
|
-
<span class="param-type">
|
|
3350
|
-
|
|
3351
|
-
Number
|
|
3352
|
-
|
|
3353
|
-
</span>
|
|
3354
|
-
|
|
3080
|
+
<span class="param-type">Number</span>
|
|
3355
3081
|
|
|
3356
3082
|
|
|
3357
3083
|
|
|
@@ -3441,4 +3167,42 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3441
3167
|
|
|
3442
3168
|
</article>
|
|
3443
3169
|
|
|
3444
|
-
</section>
|
|
3170
|
+
</section>
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
</div>
|
|
3176
|
+
|
|
3177
|
+
<footer class="footer">
|
|
3178
|
+
<div class="content has-text-centered">
|
|
3179
|
+
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
|
|
3180
|
+
<p class="sidebar-created-by">
|
|
3181
|
+
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
3182
|
+
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|
|
3183
|
+
</p>
|
|
3184
|
+
</div>
|
|
3185
|
+
</footer>
|
|
3186
|
+
|
|
3187
|
+
</div>
|
|
3188
|
+
<div id="side-nav" class="side-nav">
|
|
3189
|
+
<div style="margin-bottom: 10px;">
|
|
3190
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
|
|
3191
|
+
</div>
|
|
3192
|
+
<div style="margin-bottom: 10px;">
|
|
3193
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
|
|
3194
|
+
</div>
|
|
3195
|
+
<div style="margin-bottom: 10px;">
|
|
3196
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
|
|
3197
|
+
</div>
|
|
3198
|
+
<div>
|
|
3199
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
|
|
3200
|
+
</div>
|
|
3201
|
+
</div>
|
|
3202
|
+
</div>
|
|
3203
|
+
<script src="scripts/linenumber.js"> </script>
|
|
3204
|
+
|
|
3205
|
+
<script src="scripts/search.js"> </script>
|
|
3206
|
+
|
|
3207
|
+
</body>
|
|
3208
|
+
</html>
|