@mapgis/webclient-leaflet-plugin 17.4.0 → 17.4.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 +60 -2
- package/dist/es5/webclient-common.min.js +37 -5
- package/dist/es5/webclient-leaflet-plugin.min.js +3 -3
- package/dist/webclient-leaflet-plugin-es6.min.js +7 -7
- package/documention/ArcGISMapImageLayer.html +5 -3
- package/documention/ArcGISTileLayer.html +5 -3
- package/documention/EchartsLayer.html +14 -4
- package/documention/FeatureLayer.html +5 -3
- package/documention/FeatureLayerUtil.html +5 -3
- package/documention/IGSImageryLayer.html +851 -0
- package/documention/IGSImageryTileLayer.html +741 -0
- package/documention/IGSMapImageLayer.html +5 -3
- package/documention/IGSTileLayer.html +5 -3
- package/documention/L.zondy.MapvBaseLayer.html +9 -3
- package/documention/MapLayer.html +5 -3
- package/documention/MapVLayer.html +14 -4
- package/documention/MapView.html +3752 -9
- package/documention/MapViewLeaflet.html +1413 -369
- package/documention/Popup.html +6 -4
- package/documention/Screenshot.html +5 -3
- package/documention/SketchEditor.html +3211 -0
- package/documention/SketchEditorLeaflet.html +477 -241
- package/documention/TileLayer.html +79 -3
- package/documention/TileLayerWMS.html +5 -3
- package/documention/VectorTileLayer.html +5 -3
- package/documention/WMSLayerView.html +5 -3
- package/documention/WebMapServiceLayer.html +5 -3
- package/documention/WebMapTileServiceLayer.html +5 -3
- package/documention/WebTileLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +9 -3
- package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.ThemeLayer.html +9 -3
- package/documention/Zondy.ThemeLayer.ThemeStyle.html +9 -3
- package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +5 -3
- package/documention/Zondy.Widget.html +5 -3
- package/documention/Zondy.view.UI.html +9 -3
- package/documention/global.html +194 -334
- package/documention/index.html +5 -3
- package/documention/initializeOptions.html +384 -0
- package/package.json +1 -1
|
@@ -1,140 +1,10 @@
|
|
|
1
|
-
|
|
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>
|
|
1
|
+
<header id="page-title" class="page-title">
|
|
23
2
|
|
|
3
|
+
<span class="page-title-main">类名</span>
|
|
4
|
+
<span class="page-title-sub">SketchEditorLeaflet</span>
|
|
5
|
+
|
|
6
|
+
</header>
|
|
24
7
|
|
|
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
|
-
|
|
138
8
|
|
|
139
9
|
|
|
140
10
|
|
|
@@ -155,7 +25,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
155
25
|
<h4 class="name" id="SketchEditorLeaflet">
|
|
156
26
|
<a class="href-link" href="#SketchEditorLeaflet">#</a>
|
|
157
27
|
|
|
158
|
-
<span class="code-name" style="font-size:30px">
|
|
28
|
+
<span class="code-name" id="SketchEditorLeaflet" style="font-size:30px">
|
|
159
29
|
|
|
160
30
|
new SketchEditorLeaflet<span class="signature">(options)</span>
|
|
161
31
|
|
|
@@ -181,7 +51,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
181
51
|
|
|
182
52
|
|
|
183
53
|
|
|
184
|
-
<h4
|
|
54
|
+
<h4>参数</h4>
|
|
185
55
|
|
|
186
56
|
<div class="table-container">
|
|
187
57
|
<table class="params table">
|
|
@@ -211,7 +81,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
211
81
|
<td class="type">
|
|
212
82
|
|
|
213
83
|
|
|
214
|
-
<span class="param-type">
|
|
84
|
+
<span class="param-type">
|
|
85
|
+
|
|
86
|
+
Object
|
|
87
|
+
|
|
88
|
+
</span>
|
|
89
|
+
|
|
215
90
|
|
|
216
91
|
|
|
217
92
|
|
|
@@ -233,10 +108,19 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
233
108
|
<td class="type">
|
|
234
109
|
|
|
235
110
|
|
|
236
|
-
<span class="param-type"
|
|
111
|
+
<span class="param-type">
|
|
112
|
+
|
|
113
|
+
MapView
|
|
114
|
+
|
|
115
|
+
</span>
|
|
237
116
|
|
|
|
238
117
|
|
|
239
|
-
<span class="param-type">
|
|
118
|
+
<span class="param-type">
|
|
119
|
+
|
|
120
|
+
SceneView
|
|
121
|
+
|
|
122
|
+
</span>
|
|
123
|
+
|
|
240
124
|
|
|
241
125
|
|
|
242
126
|
|
|
@@ -258,7 +142,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
258
142
|
<td class="type">
|
|
259
143
|
|
|
260
144
|
|
|
261
|
-
<span class="param-type">
|
|
145
|
+
<span class="param-type">
|
|
146
|
+
|
|
147
|
+
GraphicsLayer
|
|
148
|
+
|
|
149
|
+
</span>
|
|
150
|
+
|
|
262
151
|
|
|
263
152
|
|
|
264
153
|
|
|
@@ -280,7 +169,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
280
169
|
<td class="type">
|
|
281
170
|
|
|
282
171
|
|
|
283
|
-
<span class="param-type">
|
|
172
|
+
<span class="param-type">
|
|
173
|
+
|
|
174
|
+
SketchStyle
|
|
175
|
+
|
|
176
|
+
</span>
|
|
177
|
+
|
|
284
178
|
|
|
285
179
|
|
|
286
180
|
|
|
@@ -302,7 +196,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
302
196
|
<td class="type">
|
|
303
197
|
|
|
304
198
|
|
|
305
|
-
<span class="param-type">
|
|
199
|
+
<span class="param-type">
|
|
200
|
+
|
|
201
|
+
Object
|
|
202
|
+
|
|
203
|
+
</span>
|
|
204
|
+
|
|
306
205
|
|
|
307
206
|
|
|
308
207
|
|
|
@@ -367,12 +266,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
367
266
|
|
|
368
267
|
|
|
369
268
|
<div class="method-parameter columns">
|
|
370
|
-
<div class="column is-2"><label
|
|
269
|
+
<div class="column is-2"><label>绑定事件</label></div>
|
|
371
270
|
<div class="column is-10">
|
|
372
271
|
<ul>
|
|
373
|
-
<li
|
|
272
|
+
<li><a href="#草图绘制完成事件">草图绘制完成事件</a></li>
|
|
374
273
|
|
|
375
|
-
<li
|
|
274
|
+
<li><a href="#草图被选中事件">草图被选中事件</a></li>
|
|
376
275
|
</ul>
|
|
377
276
|
</div>
|
|
378
277
|
</div>
|
|
@@ -489,7 +388,273 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
489
388
|
|
|
490
389
|
<div class='vertical-section'>
|
|
491
390
|
<h3 id='function'>方法</h3>
|
|
391
|
+
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
|
|
492
392
|
<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>
|
|
493
658
|
|
|
494
659
|
<div class="member">
|
|
495
660
|
|
|
@@ -498,7 +663,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
498
663
|
<h4 class="name" id="addVertex">
|
|
499
664
|
<a class="href-link" href="#addVertex">#</a>
|
|
500
665
|
|
|
501
|
-
<span class="code-name" style="font-size:30px">
|
|
666
|
+
<span class="code-name" id="addVertex" style="font-size:30px">
|
|
502
667
|
|
|
503
668
|
addVertex<span class="signature">(point, index)</span>
|
|
504
669
|
|
|
@@ -520,7 +685,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
520
685
|
|
|
521
686
|
|
|
522
687
|
|
|
523
|
-
<h4
|
|
688
|
+
<h4>参数</h4>
|
|
524
689
|
|
|
525
690
|
<div class="table-container">
|
|
526
691
|
<table class="params table">
|
|
@@ -550,7 +715,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
550
715
|
<td class="type">
|
|
551
716
|
|
|
552
717
|
|
|
553
|
-
<span class="param-type">
|
|
718
|
+
<span class="param-type">
|
|
719
|
+
|
|
720
|
+
Point
|
|
721
|
+
|
|
722
|
+
</span>
|
|
723
|
+
|
|
554
724
|
|
|
555
725
|
|
|
556
726
|
|
|
@@ -574,7 +744,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
574
744
|
<td class="type">
|
|
575
745
|
|
|
576
746
|
|
|
577
|
-
<span class="param-type">
|
|
747
|
+
<span class="param-type">
|
|
748
|
+
|
|
749
|
+
Number
|
|
750
|
+
|
|
751
|
+
</span>
|
|
752
|
+
|
|
578
753
|
|
|
579
754
|
|
|
580
755
|
|
|
@@ -662,7 +837,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
662
837
|
<h4 class="name" id="canRedo">
|
|
663
838
|
<a class="href-link" href="#canRedo">#</a>
|
|
664
839
|
|
|
665
|
-
<span class="code-name" style="font-size:30px">
|
|
840
|
+
<span class="code-name" id="canRedo" style="font-size:30px">
|
|
666
841
|
|
|
667
842
|
canRedo<span class="signature">()</span>
|
|
668
843
|
|
|
@@ -740,7 +915,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
740
915
|
|
|
741
916
|
|
|
742
917
|
<div class='columns method-parameter'>
|
|
743
|
-
<div class="column is-2"><label
|
|
918
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
744
919
|
<div class="column is-10">
|
|
745
920
|
|
|
746
921
|
|
|
@@ -751,7 +926,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
751
926
|
<div class='column is-5 has-text-left'>
|
|
752
927
|
<label>类型: </label>
|
|
753
928
|
|
|
754
|
-
<span class="param-type">
|
|
929
|
+
<span class="param-type">
|
|
930
|
+
|
|
931
|
+
Boolean
|
|
932
|
+
|
|
933
|
+
</span>
|
|
934
|
+
|
|
755
935
|
|
|
756
936
|
|
|
757
937
|
</div>
|
|
@@ -776,7 +956,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
776
956
|
<h4 class="name" id="canUndo">
|
|
777
957
|
<a class="href-link" href="#canUndo">#</a>
|
|
778
958
|
|
|
779
|
-
<span class="code-name" style="font-size:30px">
|
|
959
|
+
<span class="code-name" id="canUndo" style="font-size:30px">
|
|
780
960
|
|
|
781
961
|
canUndo<span class="signature">()</span>
|
|
782
962
|
|
|
@@ -854,7 +1034,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
854
1034
|
|
|
855
1035
|
|
|
856
1036
|
<div class='columns method-parameter'>
|
|
857
|
-
<div class="column is-2"><label
|
|
1037
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
858
1038
|
<div class="column is-10">
|
|
859
1039
|
|
|
860
1040
|
|
|
@@ -865,7 +1045,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
865
1045
|
<div class='column is-5 has-text-left'>
|
|
866
1046
|
<label>类型: </label>
|
|
867
1047
|
|
|
868
|
-
<span class="param-type">
|
|
1048
|
+
<span class="param-type">
|
|
1049
|
+
|
|
1050
|
+
Boolean
|
|
1051
|
+
|
|
1052
|
+
</span>
|
|
1053
|
+
|
|
869
1054
|
|
|
870
1055
|
|
|
871
1056
|
</div>
|
|
@@ -890,7 +1075,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
890
1075
|
<h4 class="name" id="drawPolylineToPolygon">
|
|
891
1076
|
<a class="href-link" href="#drawPolylineToPolygon">#</a>
|
|
892
1077
|
|
|
893
|
-
<span class="code-name" style="font-size:30px">
|
|
1078
|
+
<span class="code-name" id="drawPolylineToPolygon" style="font-size:30px">
|
|
894
1079
|
|
|
895
1080
|
drawPolylineToPolygon<span class="signature">(snapAndReferGeometries)</span>
|
|
896
1081
|
|
|
@@ -912,7 +1097,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
912
1097
|
|
|
913
1098
|
|
|
914
1099
|
|
|
915
|
-
<h4
|
|
1100
|
+
<h4>参数</h4>
|
|
916
1101
|
|
|
917
1102
|
<div class="table-container">
|
|
918
1103
|
<table class="params table">
|
|
@@ -942,7 +1127,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区
|
|
|
942
1127
|
<td class="type">
|
|
943
1128
|
|
|
944
1129
|
|
|
945
|
-
<span class="param-type">
|
|
1130
|
+
<span class="param-type">
|
|
1131
|
+
|
|
1132
|
+
Array.<Polygon>
|
|
1133
|
+
|
|
1134
|
+
</span>
|
|
1135
|
+
|
|
946
1136
|
|
|
947
1137
|
|
|
948
1138
|
|
|
@@ -1107,7 +1297,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1107
1297
|
<h4 class="name" id="getGeometry">
|
|
1108
1298
|
<a class="href-link" href="#getGeometry">#</a>
|
|
1109
1299
|
|
|
1110
|
-
<span class="code-name" style="font-size:30px">
|
|
1300
|
+
<span class="code-name" id="getGeometry" style="font-size:30px">
|
|
1111
1301
|
|
|
1112
1302
|
getGeometry<span class="signature">()</span>
|
|
1113
1303
|
|
|
@@ -1185,7 +1375,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1185
1375
|
|
|
1186
1376
|
|
|
1187
1377
|
<div class='columns method-parameter'>
|
|
1188
|
-
<div class="column is-2"><label
|
|
1378
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
1189
1379
|
<div class="column is-10">
|
|
1190
1380
|
|
|
1191
1381
|
|
|
@@ -1196,7 +1386,12 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1196
1386
|
<div class='column is-5 has-text-left'>
|
|
1197
1387
|
<label>类型: </label>
|
|
1198
1388
|
|
|
1199
|
-
<span class="param-type">
|
|
1389
|
+
<span class="param-type">
|
|
1390
|
+
|
|
1391
|
+
Geometry
|
|
1392
|
+
|
|
1393
|
+
</span>
|
|
1394
|
+
|
|
1200
1395
|
|
|
1201
1396
|
|
|
1202
1397
|
</div>
|
|
@@ -1221,7 +1416,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1221
1416
|
<h4 class="name" id="getSketchStyle">
|
|
1222
1417
|
<a class="href-link" href="#getSketchStyle">#</a>
|
|
1223
1418
|
|
|
1224
|
-
<span class="code-name" style="font-size:30px">
|
|
1419
|
+
<span class="code-name" id="getSketchStyle" style="font-size:30px">
|
|
1225
1420
|
|
|
1226
1421
|
getSketchStyle<span class="signature">()</span>
|
|
1227
1422
|
|
|
@@ -1299,7 +1494,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1299
1494
|
|
|
1300
1495
|
|
|
1301
1496
|
<div class='columns method-parameter'>
|
|
1302
|
-
<div class="column is-2"><label
|
|
1497
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
1303
1498
|
<div class="column is-10">
|
|
1304
1499
|
|
|
1305
1500
|
|
|
@@ -1310,7 +1505,12 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1310
1505
|
<div class='column is-5 has-text-left'>
|
|
1311
1506
|
<label>类型: </label>
|
|
1312
1507
|
|
|
1313
|
-
<span class="param-type">
|
|
1508
|
+
<span class="param-type">
|
|
1509
|
+
|
|
1510
|
+
SketchStyle
|
|
1511
|
+
|
|
1512
|
+
</span>
|
|
1513
|
+
|
|
1314
1514
|
|
|
1315
1515
|
|
|
1316
1516
|
</div>
|
|
@@ -1335,7 +1535,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1335
1535
|
<h4 class="name" id="redo">
|
|
1336
1536
|
<a class="href-link" href="#redo">#</a>
|
|
1337
1537
|
|
|
1338
|
-
<span class="code-name" style="font-size:30px">
|
|
1538
|
+
<span class="code-name" id="redo" style="font-size:30px">
|
|
1339
1539
|
|
|
1340
1540
|
redo<span class="signature">()</span>
|
|
1341
1541
|
|
|
@@ -1413,7 +1613,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1413
1613
|
|
|
1414
1614
|
|
|
1415
1615
|
<div class='columns method-parameter'>
|
|
1416
|
-
<div class="column is-2"><label
|
|
1616
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
1417
1617
|
<div class="column is-10">
|
|
1418
1618
|
|
|
1419
1619
|
|
|
@@ -1424,7 +1624,12 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1424
1624
|
<div class='column is-5 has-text-left'>
|
|
1425
1625
|
<label>类型: </label>
|
|
1426
1626
|
|
|
1427
|
-
<span class="param-type">
|
|
1627
|
+
<span class="param-type">
|
|
1628
|
+
|
|
1629
|
+
Geometry
|
|
1630
|
+
|
|
1631
|
+
</span>
|
|
1632
|
+
|
|
1428
1633
|
|
|
1429
1634
|
|
|
1430
1635
|
</div>
|
|
@@ -1478,7 +1683,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1478
1683
|
<h4 class="name" id="remove">
|
|
1479
1684
|
<a class="href-link" href="#remove">#</a>
|
|
1480
1685
|
|
|
1481
|
-
<span class="code-name" style="font-size:30px">
|
|
1686
|
+
<span class="code-name" id="remove" style="font-size:30px">
|
|
1482
1687
|
|
|
1483
1688
|
remove<span class="signature">()</span>
|
|
1484
1689
|
|
|
@@ -1569,7 +1774,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1569
1774
|
<h4 class="name" id="removeVertex">
|
|
1570
1775
|
<a class="href-link" href="#removeVertex">#</a>
|
|
1571
1776
|
|
|
1572
|
-
<span class="code-name" style="font-size:30px">
|
|
1777
|
+
<span class="code-name" id="removeVertex" style="font-size:30px">
|
|
1573
1778
|
|
|
1574
1779
|
removeVertex<span class="signature">(index)</span>
|
|
1575
1780
|
|
|
@@ -1591,7 +1796,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1591
1796
|
|
|
1592
1797
|
|
|
1593
1798
|
|
|
1594
|
-
<h4
|
|
1799
|
+
<h4>参数</h4>
|
|
1595
1800
|
|
|
1596
1801
|
<div class="table-container">
|
|
1597
1802
|
<table class="params table">
|
|
@@ -1621,7 +1826,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1621
1826
|
<td class="type">
|
|
1622
1827
|
|
|
1623
1828
|
|
|
1624
|
-
<span class="param-type">
|
|
1829
|
+
<span class="param-type">
|
|
1830
|
+
|
|
1831
|
+
Number
|
|
1832
|
+
|
|
1833
|
+
</span>
|
|
1834
|
+
|
|
1625
1835
|
|
|
1626
1836
|
|
|
1627
1837
|
|
|
@@ -1709,7 +1919,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1709
1919
|
<h4 class="name" id="setSketchStyle">
|
|
1710
1920
|
<a class="href-link" href="#setSketchStyle">#</a>
|
|
1711
1921
|
|
|
1712
|
-
<span class="code-name" style="font-size:30px">
|
|
1922
|
+
<span class="code-name" id="setSketchStyle" style="font-size:30px">
|
|
1713
1923
|
|
|
1714
1924
|
setSketchStyle<span class="signature">(sketchStyle)</span>
|
|
1715
1925
|
|
|
@@ -1731,7 +1941,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1731
1941
|
|
|
1732
1942
|
|
|
1733
1943
|
|
|
1734
|
-
<h4
|
|
1944
|
+
<h4>参数</h4>
|
|
1735
1945
|
|
|
1736
1946
|
<div class="table-container">
|
|
1737
1947
|
<table class="params table">
|
|
@@ -1761,7 +1971,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1761
1971
|
<td class="type">
|
|
1762
1972
|
|
|
1763
1973
|
|
|
1764
|
-
<span class="param-type">
|
|
1974
|
+
<span class="param-type">
|
|
1975
|
+
|
|
1976
|
+
SketchStyle
|
|
1977
|
+
|
|
1978
|
+
</span>
|
|
1979
|
+
|
|
1765
1980
|
|
|
1766
1981
|
|
|
1767
1982
|
|
|
@@ -1937,7 +2152,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
1937
2152
|
<h4 class="name" id="split">
|
|
1938
2153
|
<a class="href-link" href="#split">#</a>
|
|
1939
2154
|
|
|
1940
|
-
<span class="code-name" style="font-size:30px">
|
|
2155
|
+
<span class="code-name" id="split" style="font-size:30px">
|
|
1941
2156
|
|
|
1942
2157
|
split<span class="signature">(target, splitPolyline)</span>
|
|
1943
2158
|
|
|
@@ -1959,7 +2174,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
1959
2174
|
|
|
1960
2175
|
|
|
1961
2176
|
|
|
1962
|
-
<h4
|
|
2177
|
+
<h4>参数</h4>
|
|
1963
2178
|
|
|
1964
2179
|
<div class="table-container">
|
|
1965
2180
|
<table class="params table">
|
|
@@ -1989,10 +2204,19 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
1989
2204
|
<td class="type">
|
|
1990
2205
|
|
|
1991
2206
|
|
|
1992
|
-
<span class="param-type">
|
|
2207
|
+
<span class="param-type">
|
|
2208
|
+
|
|
2209
|
+
Polygon
|
|
2210
|
+
|
|
2211
|
+
</span>
|
|
1993
2212
|
|
|
|
1994
2213
|
|
|
1995
|
-
<span class="param-type">
|
|
2214
|
+
<span class="param-type">
|
|
2215
|
+
|
|
2216
|
+
SketchEditor
|
|
2217
|
+
|
|
2218
|
+
</span>
|
|
2219
|
+
|
|
1996
2220
|
|
|
1997
2221
|
|
|
1998
2222
|
|
|
@@ -2016,7 +2240,12 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2016
2240
|
<td class="type">
|
|
2017
2241
|
|
|
2018
2242
|
|
|
2019
|
-
<span class="param-type">
|
|
2243
|
+
<span class="param-type">
|
|
2244
|
+
|
|
2245
|
+
Polyline
|
|
2246
|
+
|
|
2247
|
+
</span>
|
|
2248
|
+
|
|
2020
2249
|
|
|
2021
2250
|
|
|
2022
2251
|
|
|
@@ -2091,7 +2320,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2091
2320
|
|
|
2092
2321
|
|
|
2093
2322
|
<div class='columns method-parameter'>
|
|
2094
|
-
<div class="column is-2"><label
|
|
2323
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
2095
2324
|
<div class="column is-10">
|
|
2096
2325
|
|
|
2097
2326
|
|
|
@@ -2104,7 +2333,12 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2104
2333
|
<div class='column is-5 has-text-left'>
|
|
2105
2334
|
<label>类型: </label>
|
|
2106
2335
|
|
|
2107
|
-
<span class="param-type">
|
|
2336
|
+
<span class="param-type">
|
|
2337
|
+
|
|
2338
|
+
Array.<Polygon>
|
|
2339
|
+
|
|
2340
|
+
</span>
|
|
2341
|
+
|
|
2108
2342
|
|
|
2109
2343
|
|
|
2110
2344
|
</div>
|
|
@@ -2171,7 +2405,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2171
2405
|
<h4 class="name" id="start">
|
|
2172
2406
|
<a class="href-link" href="#start">#</a>
|
|
2173
2407
|
|
|
2174
|
-
<span class="code-name" style="font-size:30px">
|
|
2408
|
+
<span class="code-name" id="start" style="font-size:30px">
|
|
2175
2409
|
|
|
2176
2410
|
start<span class="signature">(dataType, extensionOptions)</span>
|
|
2177
2411
|
|
|
@@ -2193,7 +2427,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2193
2427
|
|
|
2194
2428
|
|
|
2195
2429
|
|
|
2196
|
-
<h4
|
|
2430
|
+
<h4>参数</h4>
|
|
2197
2431
|
|
|
2198
2432
|
<div class="table-container">
|
|
2199
2433
|
<table class="params table">
|
|
@@ -2223,7 +2457,12 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2223
2457
|
<td class="type">
|
|
2224
2458
|
|
|
2225
2459
|
|
|
2226
|
-
<span class="param-type">
|
|
2460
|
+
<span class="param-type">
|
|
2461
|
+
|
|
2462
|
+
SketchDataType
|
|
2463
|
+
|
|
2464
|
+
</span>
|
|
2465
|
+
|
|
2227
2466
|
|
|
2228
2467
|
|
|
2229
2468
|
|
|
@@ -2247,7 +2486,12 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
2247
2486
|
<td class="type">
|
|
2248
2487
|
|
|
2249
2488
|
|
|
2250
|
-
<span class="param-type">
|
|
2489
|
+
<span class="param-type">
|
|
2490
|
+
|
|
2491
|
+
Object
|
|
2492
|
+
|
|
2493
|
+
</span>
|
|
2494
|
+
|
|
2251
2495
|
|
|
2252
2496
|
|
|
2253
2497
|
|
|
@@ -2375,7 +2619,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2375
2619
|
<h4 class="name" id="startCustomDrawTool">
|
|
2376
2620
|
<a class="href-link" href="#startCustomDrawTool">#</a>
|
|
2377
2621
|
|
|
2378
|
-
<span class="code-name" style="font-size:30px">
|
|
2622
|
+
<span class="code-name" id="startCustomDrawTool" style="font-size:30px">
|
|
2379
2623
|
|
|
2380
2624
|
startCustomDrawTool<span class="signature">(dataType)</span>
|
|
2381
2625
|
|
|
@@ -2397,7 +2641,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2397
2641
|
|
|
2398
2642
|
|
|
2399
2643
|
|
|
2400
|
-
<h4
|
|
2644
|
+
<h4>参数</h4>
|
|
2401
2645
|
|
|
2402
2646
|
<div class="table-container">
|
|
2403
2647
|
<table class="params table">
|
|
@@ -2427,7 +2671,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2427
2671
|
<td class="type">
|
|
2428
2672
|
|
|
2429
2673
|
|
|
2430
|
-
<span class="param-type">
|
|
2674
|
+
<span class="param-type">
|
|
2675
|
+
|
|
2676
|
+
SketchDataType
|
|
2677
|
+
|
|
2678
|
+
</span>
|
|
2679
|
+
|
|
2431
2680
|
|
|
2432
2681
|
|
|
2433
2682
|
|
|
@@ -2554,7 +2803,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2554
2803
|
<h4 class="name" id="stop">
|
|
2555
2804
|
<a class="href-link" href="#stop">#</a>
|
|
2556
2805
|
|
|
2557
|
-
<span class="code-name" style="font-size:30px">
|
|
2806
|
+
<span class="code-name" id="stop" style="font-size:30px">
|
|
2558
2807
|
|
|
2559
2808
|
stop<span class="signature">()</span>
|
|
2560
2809
|
|
|
@@ -2645,7 +2894,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2645
2894
|
<h4 class="name" id="undo">
|
|
2646
2895
|
<a class="href-link" href="#undo">#</a>
|
|
2647
2896
|
|
|
2648
|
-
<span class="code-name" style="font-size:30px">
|
|
2897
|
+
<span class="code-name" id="undo" style="font-size:30px">
|
|
2649
2898
|
|
|
2650
2899
|
undo<span class="signature">()</span>
|
|
2651
2900
|
|
|
@@ -2723,7 +2972,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2723
2972
|
|
|
2724
2973
|
|
|
2725
2974
|
<div class='columns method-parameter'>
|
|
2726
|
-
<div class="column is-2"><label
|
|
2975
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
2727
2976
|
<div class="column is-10">
|
|
2728
2977
|
|
|
2729
2978
|
|
|
@@ -2734,7 +2983,12 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2734
2983
|
<div class='column is-5 has-text-left'>
|
|
2735
2984
|
<label>类型: </label>
|
|
2736
2985
|
|
|
2737
|
-
<span class="param-type">
|
|
2986
|
+
<span class="param-type">
|
|
2987
|
+
|
|
2988
|
+
Geometry
|
|
2989
|
+
|
|
2990
|
+
</span>
|
|
2991
|
+
|
|
2738
2992
|
|
|
2739
2993
|
|
|
2740
2994
|
</div>
|
|
@@ -2788,7 +3042,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2788
3042
|
<h4 class="name" id="union">
|
|
2789
3043
|
<a class="href-link" href="#union">#</a>
|
|
2790
3044
|
|
|
2791
|
-
<span class="code-name" style="font-size:30px">
|
|
3045
|
+
<span class="code-name" id="union" style="font-size:30px">
|
|
2792
3046
|
|
|
2793
3047
|
union<span class="signature">(polygons)</span>
|
|
2794
3048
|
|
|
@@ -2810,7 +3064,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2810
3064
|
|
|
2811
3065
|
|
|
2812
3066
|
|
|
2813
|
-
<h4
|
|
3067
|
+
<h4>参数</h4>
|
|
2814
3068
|
|
|
2815
3069
|
<div class="table-container">
|
|
2816
3070
|
<table class="params table">
|
|
@@ -2840,7 +3094,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2840
3094
|
<td class="type">
|
|
2841
3095
|
|
|
2842
3096
|
|
|
2843
|
-
<span class="param-type">
|
|
3097
|
+
<span class="param-type">
|
|
3098
|
+
|
|
3099
|
+
Polygon
|
|
3100
|
+
|
|
3101
|
+
</span>
|
|
3102
|
+
|
|
2844
3103
|
|
|
2845
3104
|
|
|
2846
3105
|
|
|
@@ -2915,7 +3174,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2915
3174
|
|
|
2916
3175
|
|
|
2917
3176
|
<div class='columns method-parameter'>
|
|
2918
|
-
<div class="column is-2"><label
|
|
3177
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
2919
3178
|
<div class="column is-10">
|
|
2920
3179
|
|
|
2921
3180
|
|
|
@@ -2928,7 +3187,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2928
3187
|
<div class='column is-5 has-text-left'>
|
|
2929
3188
|
<label>类型: </label>
|
|
2930
3189
|
|
|
2931
|
-
<span class="param-type">
|
|
3190
|
+
<span class="param-type">
|
|
3191
|
+
|
|
3192
|
+
Polygon
|
|
3193
|
+
|
|
3194
|
+
</span>
|
|
3195
|
+
|
|
2932
3196
|
|
|
2933
3197
|
|
|
2934
3198
|
</div>
|
|
@@ -3001,7 +3265,7 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3001
3265
|
<h4 class="name" id="updateVertex">
|
|
3002
3266
|
<a class="href-link" href="#updateVertex">#</a>
|
|
3003
3267
|
|
|
3004
|
-
<span class="code-name" style="font-size:30px">
|
|
3268
|
+
<span class="code-name" id="updateVertex" style="font-size:30px">
|
|
3005
3269
|
|
|
3006
3270
|
updateVertex<span class="signature">(point, index)</span>
|
|
3007
3271
|
|
|
@@ -3023,7 +3287,7 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3023
3287
|
|
|
3024
3288
|
|
|
3025
3289
|
|
|
3026
|
-
<h4
|
|
3290
|
+
<h4>参数</h4>
|
|
3027
3291
|
|
|
3028
3292
|
<div class="table-container">
|
|
3029
3293
|
<table class="params table">
|
|
@@ -3053,7 +3317,12 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3053
3317
|
<td class="type">
|
|
3054
3318
|
|
|
3055
3319
|
|
|
3056
|
-
<span class="param-type">
|
|
3320
|
+
<span class="param-type">
|
|
3321
|
+
|
|
3322
|
+
Point
|
|
3323
|
+
|
|
3324
|
+
</span>
|
|
3325
|
+
|
|
3057
3326
|
|
|
3058
3327
|
|
|
3059
3328
|
|
|
@@ -3077,7 +3346,12 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3077
3346
|
<td class="type">
|
|
3078
3347
|
|
|
3079
3348
|
|
|
3080
|
-
<span class="param-type">
|
|
3349
|
+
<span class="param-type">
|
|
3350
|
+
|
|
3351
|
+
Number
|
|
3352
|
+
|
|
3353
|
+
</span>
|
|
3354
|
+
|
|
3081
3355
|
|
|
3082
3356
|
|
|
3083
3357
|
|
|
@@ -3167,42 +3441,4 @@ sketchEditor.union(polygons)</code></pre>
|
|
|
3167
3441
|
|
|
3168
3442
|
</article>
|
|
3169
3443
|
|
|
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>
|
|
3444
|
+
</section>
|