@mapgis/webclient-mapboxgl-plugin 17.4.1 → 17.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -1
- package/dist/es5/webclient-common.min.js +32 -6
- package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
- package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
- package/documention/EchartsLayer.html +2 -2
- package/documention/MapView.html +176 -87
- package/documention/MapViewMapboxgl.html +935 -287
- package/documention/Popup.html +3 -3
- package/documention/Screenshot.html +2 -2
- package/documention/SketchEditor.html +12 -12
- package/documention/SketchEditorMapboxgl.html +477 -241
- package/documention/global.html +607 -394
- package/documention/index.html +2 -2
- package/documention/initializeOptions.html +454 -0
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapvLayer.html +6 -2
- package/package.json +4 -4
|
@@ -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>Client for JavaScript SketchEditorMapboxgl</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">SketchEditorMapboxgl</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="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>二维场景视图(mapboxgl引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
|
|
108
|
-
参考示例:
|
|
109
|
-
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
110
|
-
<br>[ES5引入方式]:<br/>
|
|
111
|
-
zondy.mapboxgl.MapView() <br/>
|
|
112
|
-
[ES6引入方式]:<br/>
|
|
113
|
-
import { MapView } from '@mapgis/webclient-mapboxgl-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>二维场景信息弹窗(mapboxgl引擎)
|
|
114
|
-
参考示例:
|
|
115
|
-
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
116
|
-
[ES6引入方式]:<br/>
|
|
117
|
-
import { Popup } from '@mapgis/webclient-mapboxgl-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="SketchEditorMapboxgl"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorMapboxgl.html">SketchEditorMapboxgl</a><span style="display: none;"><p>二维Mapboxgl引擎草图编辑类<br/>
|
|
124
|
-
<br>[ES5引入方式]:<br/>
|
|
125
|
-
const { SketchEditor } = zondy.mapboxgl.tool.sketch <br/>
|
|
126
|
-
[ES6引入方式]:<br/>
|
|
127
|
-
import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/></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">SketchEditorMapboxgl</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="SketchEditorMapboxgl">
|
|
156
26
|
<a class="href-link" href="#SketchEditorMapboxgl">#</a>
|
|
157
27
|
|
|
158
|
-
<span class="code-name" style="font-size:30px">
|
|
28
|
+
<span class="code-name" id="SketchEditorMapboxgl" style="font-size:30px">
|
|
159
29
|
|
|
160
30
|
new SketchEditorMapboxgl<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>
|
|
@@ -1477,7 +1682,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1477
1682
|
<h4 class="name" id="remove">
|
|
1478
1683
|
<a class="href-link" href="#remove">#</a>
|
|
1479
1684
|
|
|
1480
|
-
<span class="code-name" style="font-size:30px">
|
|
1685
|
+
<span class="code-name" id="remove" style="font-size:30px">
|
|
1481
1686
|
|
|
1482
1687
|
remove<span class="signature">()</span>
|
|
1483
1688
|
|
|
@@ -1568,7 +1773,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1568
1773
|
<h4 class="name" id="removeVertex">
|
|
1569
1774
|
<a class="href-link" href="#removeVertex">#</a>
|
|
1570
1775
|
|
|
1571
|
-
<span class="code-name" style="font-size:30px">
|
|
1776
|
+
<span class="code-name" id="removeVertex" style="font-size:30px">
|
|
1572
1777
|
|
|
1573
1778
|
removeVertex<span class="signature">(index)</span>
|
|
1574
1779
|
|
|
@@ -1590,7 +1795,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1590
1795
|
|
|
1591
1796
|
|
|
1592
1797
|
|
|
1593
|
-
<h4
|
|
1798
|
+
<h4>参数</h4>
|
|
1594
1799
|
|
|
1595
1800
|
<div class="table-container">
|
|
1596
1801
|
<table class="params table">
|
|
@@ -1620,7 +1825,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1620
1825
|
<td class="type">
|
|
1621
1826
|
|
|
1622
1827
|
|
|
1623
|
-
<span class="param-type">
|
|
1828
|
+
<span class="param-type">
|
|
1829
|
+
|
|
1830
|
+
Number
|
|
1831
|
+
|
|
1832
|
+
</span>
|
|
1833
|
+
|
|
1624
1834
|
|
|
1625
1835
|
|
|
1626
1836
|
|
|
@@ -1708,7 +1918,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1708
1918
|
<h4 class="name" id="setSketchStyle">
|
|
1709
1919
|
<a class="href-link" href="#setSketchStyle">#</a>
|
|
1710
1920
|
|
|
1711
|
-
<span class="code-name" style="font-size:30px">
|
|
1921
|
+
<span class="code-name" id="setSketchStyle" style="font-size:30px">
|
|
1712
1922
|
|
|
1713
1923
|
setSketchStyle<span class="signature">(sketchStyle)</span>
|
|
1714
1924
|
|
|
@@ -1730,7 +1940,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1730
1940
|
|
|
1731
1941
|
|
|
1732
1942
|
|
|
1733
|
-
<h4
|
|
1943
|
+
<h4>参数</h4>
|
|
1734
1944
|
|
|
1735
1945
|
<div class="table-container">
|
|
1736
1946
|
<table class="params table">
|
|
@@ -1760,7 +1970,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1760
1970
|
<td class="type">
|
|
1761
1971
|
|
|
1762
1972
|
|
|
1763
|
-
<span class="param-type">
|
|
1973
|
+
<span class="param-type">
|
|
1974
|
+
|
|
1975
|
+
SketchStyle
|
|
1976
|
+
|
|
1977
|
+
</span>
|
|
1978
|
+
|
|
1764
1979
|
|
|
1765
1980
|
|
|
1766
1981
|
|
|
@@ -1936,7 +2151,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
1936
2151
|
<h4 class="name" id="split">
|
|
1937
2152
|
<a class="href-link" href="#split">#</a>
|
|
1938
2153
|
|
|
1939
|
-
<span class="code-name" style="font-size:30px">
|
|
2154
|
+
<span class="code-name" id="split" style="font-size:30px">
|
|
1940
2155
|
|
|
1941
2156
|
split<span class="signature">(target, splitPolyline)</span>
|
|
1942
2157
|
|
|
@@ -1958,7 +2173,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
1958
2173
|
|
|
1959
2174
|
|
|
1960
2175
|
|
|
1961
|
-
<h4
|
|
2176
|
+
<h4>参数</h4>
|
|
1962
2177
|
|
|
1963
2178
|
<div class="table-container">
|
|
1964
2179
|
<table class="params table">
|
|
@@ -1988,10 +2203,19 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
1988
2203
|
<td class="type">
|
|
1989
2204
|
|
|
1990
2205
|
|
|
1991
|
-
<span class="param-type">
|
|
2206
|
+
<span class="param-type">
|
|
2207
|
+
|
|
2208
|
+
Polygon
|
|
2209
|
+
|
|
2210
|
+
</span>
|
|
1992
2211
|
|
|
|
1993
2212
|
|
|
1994
|
-
<span class="param-type">
|
|
2213
|
+
<span class="param-type">
|
|
2214
|
+
|
|
2215
|
+
SketchEditor
|
|
2216
|
+
|
|
2217
|
+
</span>
|
|
2218
|
+
|
|
1995
2219
|
|
|
1996
2220
|
|
|
1997
2221
|
|
|
@@ -2015,7 +2239,12 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2015
2239
|
<td class="type">
|
|
2016
2240
|
|
|
2017
2241
|
|
|
2018
|
-
<span class="param-type">
|
|
2242
|
+
<span class="param-type">
|
|
2243
|
+
|
|
2244
|
+
Polyline
|
|
2245
|
+
|
|
2246
|
+
</span>
|
|
2247
|
+
|
|
2019
2248
|
|
|
2020
2249
|
|
|
2021
2250
|
|
|
@@ -2090,7 +2319,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2090
2319
|
|
|
2091
2320
|
|
|
2092
2321
|
<div class='columns method-parameter'>
|
|
2093
|
-
<div class="column is-2"><label
|
|
2322
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
2094
2323
|
<div class="column is-10">
|
|
2095
2324
|
|
|
2096
2325
|
|
|
@@ -2103,7 +2332,12 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2103
2332
|
<div class='column is-5 has-text-left'>
|
|
2104
2333
|
<label>类型: </label>
|
|
2105
2334
|
|
|
2106
|
-
<span class="param-type">
|
|
2335
|
+
<span class="param-type">
|
|
2336
|
+
|
|
2337
|
+
Array.<Polygon>
|
|
2338
|
+
|
|
2339
|
+
</span>
|
|
2340
|
+
|
|
2107
2341
|
|
|
2108
2342
|
|
|
2109
2343
|
</div>
|
|
@@ -2170,7 +2404,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2170
2404
|
<h4 class="name" id="start">
|
|
2171
2405
|
<a class="href-link" href="#start">#</a>
|
|
2172
2406
|
|
|
2173
|
-
<span class="code-name" style="font-size:30px">
|
|
2407
|
+
<span class="code-name" id="start" style="font-size:30px">
|
|
2174
2408
|
|
|
2175
2409
|
start<span class="signature">(dataType, extensionOptions)</span>
|
|
2176
2410
|
|
|
@@ -2192,7 +2426,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2192
2426
|
|
|
2193
2427
|
|
|
2194
2428
|
|
|
2195
|
-
<h4
|
|
2429
|
+
<h4>参数</h4>
|
|
2196
2430
|
|
|
2197
2431
|
<div class="table-container">
|
|
2198
2432
|
<table class="params table">
|
|
@@ -2222,7 +2456,12 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2222
2456
|
<td class="type">
|
|
2223
2457
|
|
|
2224
2458
|
|
|
2225
|
-
<span class="param-type">
|
|
2459
|
+
<span class="param-type">
|
|
2460
|
+
|
|
2461
|
+
SketchDataType
|
|
2462
|
+
|
|
2463
|
+
</span>
|
|
2464
|
+
|
|
2226
2465
|
|
|
2227
2466
|
|
|
2228
2467
|
|
|
@@ -2246,7 +2485,12 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2246
2485
|
<td class="type">
|
|
2247
2486
|
|
|
2248
2487
|
|
|
2249
|
-
<span class="param-type">
|
|
2488
|
+
<span class="param-type">
|
|
2489
|
+
|
|
2490
|
+
Object
|
|
2491
|
+
|
|
2492
|
+
</span>
|
|
2493
|
+
|
|
2250
2494
|
|
|
2251
2495
|
|
|
2252
2496
|
|
|
@@ -2374,7 +2618,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2374
2618
|
<h4 class="name" id="startCustomDrawTool">
|
|
2375
2619
|
<a class="href-link" href="#startCustomDrawTool">#</a>
|
|
2376
2620
|
|
|
2377
|
-
<span class="code-name" style="font-size:30px">
|
|
2621
|
+
<span class="code-name" id="startCustomDrawTool" style="font-size:30px">
|
|
2378
2622
|
|
|
2379
2623
|
startCustomDrawTool<span class="signature">(dataType)</span>
|
|
2380
2624
|
|
|
@@ -2396,7 +2640,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2396
2640
|
|
|
2397
2641
|
|
|
2398
2642
|
|
|
2399
|
-
<h4
|
|
2643
|
+
<h4>参数</h4>
|
|
2400
2644
|
|
|
2401
2645
|
<div class="table-container">
|
|
2402
2646
|
<table class="params table">
|
|
@@ -2426,7 +2670,12 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2426
2670
|
<td class="type">
|
|
2427
2671
|
|
|
2428
2672
|
|
|
2429
|
-
<span class="param-type">
|
|
2673
|
+
<span class="param-type">
|
|
2674
|
+
|
|
2675
|
+
SketchDataType
|
|
2676
|
+
|
|
2677
|
+
</span>
|
|
2678
|
+
|
|
2430
2679
|
|
|
2431
2680
|
|
|
2432
2681
|
|
|
@@ -2553,7 +2802,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2553
2802
|
<h4 class="name" id="stop">
|
|
2554
2803
|
<a class="href-link" href="#stop">#</a>
|
|
2555
2804
|
|
|
2556
|
-
<span class="code-name" style="font-size:30px">
|
|
2805
|
+
<span class="code-name" id="stop" style="font-size:30px">
|
|
2557
2806
|
|
|
2558
2807
|
stop<span class="signature">()</span>
|
|
2559
2808
|
|
|
@@ -2644,7 +2893,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2644
2893
|
<h4 class="name" id="undo">
|
|
2645
2894
|
<a class="href-link" href="#undo">#</a>
|
|
2646
2895
|
|
|
2647
|
-
<span class="code-name" style="font-size:30px">
|
|
2896
|
+
<span class="code-name" id="undo" style="font-size:30px">
|
|
2648
2897
|
|
|
2649
2898
|
undo<span class="signature">()</span>
|
|
2650
2899
|
|
|
@@ -2722,7 +2971,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2722
2971
|
|
|
2723
2972
|
|
|
2724
2973
|
<div class='columns method-parameter'>
|
|
2725
|
-
<div class="column is-2"><label
|
|
2974
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
2726
2975
|
<div class="column is-10">
|
|
2727
2976
|
|
|
2728
2977
|
|
|
@@ -2733,7 +2982,12 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2733
2982
|
<div class='column is-5 has-text-left'>
|
|
2734
2983
|
<label>类型: </label>
|
|
2735
2984
|
|
|
2736
|
-
<span class="param-type">
|
|
2985
|
+
<span class="param-type">
|
|
2986
|
+
|
|
2987
|
+
Geometry
|
|
2988
|
+
|
|
2989
|
+
</span>
|
|
2990
|
+
|
|
2737
2991
|
|
|
2738
2992
|
|
|
2739
2993
|
</div>
|
|
@@ -2787,7 +3041,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2787
3041
|
<h4 class="name" id="union">
|
|
2788
3042
|
<a class="href-link" href="#union">#</a>
|
|
2789
3043
|
|
|
2790
|
-
<span class="code-name" style="font-size:30px">
|
|
3044
|
+
<span class="code-name" id="union" style="font-size:30px">
|
|
2791
3045
|
|
|
2792
3046
|
union<span class="signature">(polygons)</span>
|
|
2793
3047
|
|
|
@@ -2809,7 +3063,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2809
3063
|
|
|
2810
3064
|
|
|
2811
3065
|
|
|
2812
|
-
<h4
|
|
3066
|
+
<h4>参数</h4>
|
|
2813
3067
|
|
|
2814
3068
|
<div class="table-container">
|
|
2815
3069
|
<table class="params table">
|
|
@@ -2839,7 +3093,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2839
3093
|
<td class="type">
|
|
2840
3094
|
|
|
2841
3095
|
|
|
2842
|
-
<span class="param-type">
|
|
3096
|
+
<span class="param-type">
|
|
3097
|
+
|
|
3098
|
+
Polygon
|
|
3099
|
+
|
|
3100
|
+
</span>
|
|
3101
|
+
|
|
2843
3102
|
|
|
2844
3103
|
|
|
2845
3104
|
|
|
@@ -2914,7 +3173,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2914
3173
|
|
|
2915
3174
|
|
|
2916
3175
|
<div class='columns method-parameter'>
|
|
2917
|
-
<div class="column is-2"><label
|
|
3176
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
2918
3177
|
<div class="column is-10">
|
|
2919
3178
|
|
|
2920
3179
|
|
|
@@ -2927,7 +3186,12 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2927
3186
|
<div class='column is-5 has-text-left'>
|
|
2928
3187
|
<label>类型: </label>
|
|
2929
3188
|
|
|
2930
|
-
<span class="param-type">
|
|
3189
|
+
<span class="param-type">
|
|
3190
|
+
|
|
3191
|
+
Polygon
|
|
3192
|
+
|
|
3193
|
+
</span>
|
|
3194
|
+
|
|
2931
3195
|
|
|
2932
3196
|
|
|
2933
3197
|
</div>
|
|
@@ -3000,7 +3264,7 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3000
3264
|
<h4 class="name" id="updateVertex">
|
|
3001
3265
|
<a class="href-link" href="#updateVertex">#</a>
|
|
3002
3266
|
|
|
3003
|
-
<span class="code-name" style="font-size:30px">
|
|
3267
|
+
<span class="code-name" id="updateVertex" style="font-size:30px">
|
|
3004
3268
|
|
|
3005
3269
|
updateVertex<span class="signature">(point, index)</span>
|
|
3006
3270
|
|
|
@@ -3022,7 +3286,7 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3022
3286
|
|
|
3023
3287
|
|
|
3024
3288
|
|
|
3025
|
-
<h4
|
|
3289
|
+
<h4>参数</h4>
|
|
3026
3290
|
|
|
3027
3291
|
<div class="table-container">
|
|
3028
3292
|
<table class="params table">
|
|
@@ -3052,7 +3316,12 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3052
3316
|
<td class="type">
|
|
3053
3317
|
|
|
3054
3318
|
|
|
3055
|
-
<span class="param-type">
|
|
3319
|
+
<span class="param-type">
|
|
3320
|
+
|
|
3321
|
+
Point
|
|
3322
|
+
|
|
3323
|
+
</span>
|
|
3324
|
+
|
|
3056
3325
|
|
|
3057
3326
|
|
|
3058
3327
|
|
|
@@ -3076,7 +3345,12 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3076
3345
|
<td class="type">
|
|
3077
3346
|
|
|
3078
3347
|
|
|
3079
|
-
<span class="param-type">
|
|
3348
|
+
<span class="param-type">
|
|
3349
|
+
|
|
3350
|
+
Number
|
|
3351
|
+
|
|
3352
|
+
</span>
|
|
3353
|
+
|
|
3080
3354
|
|
|
3081
3355
|
|
|
3082
3356
|
|
|
@@ -3166,42 +3440,4 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3166
3440
|
|
|
3167
3441
|
</article>
|
|
3168
3442
|
|
|
3169
|
-
</section>
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
</div>
|
|
3175
|
-
|
|
3176
|
-
<footer class="footer">
|
|
3177
|
-
<div class="content has-text-centered">
|
|
3178
|
-
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
|
|
3179
|
-
<p class="sidebar-created-by">
|
|
3180
|
-
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
3181
|
-
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|
|
3182
|
-
</p>
|
|
3183
|
-
</div>
|
|
3184
|
-
</footer>
|
|
3185
|
-
|
|
3186
|
-
</div>
|
|
3187
|
-
<div id="side-nav" class="side-nav">
|
|
3188
|
-
<div style="margin-bottom: 10px;">
|
|
3189
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
|
|
3190
|
-
</div>
|
|
3191
|
-
<div style="margin-bottom: 10px;">
|
|
3192
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
|
|
3193
|
-
</div>
|
|
3194
|
-
<div style="margin-bottom: 10px;">
|
|
3195
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
|
|
3196
|
-
</div>
|
|
3197
|
-
<div>
|
|
3198
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
|
|
3199
|
-
</div>
|
|
3200
|
-
</div>
|
|
3201
|
-
</div>
|
|
3202
|
-
<script src="scripts/linenumber.js"> </script>
|
|
3203
|
-
|
|
3204
|
-
<script src="scripts/search.js"> </script>
|
|
3205
|
-
|
|
3206
|
-
</body>
|
|
3207
|
-
</html>
|
|
3443
|
+
</section>
|