@mapgis/webclient-mapboxgl-plugin 17.2.8 → 17.4.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 +12 -0
- package/dist/es5/webclient-common.min.js +5 -5
- package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
- package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
- package/documention/EchartsLayer.html +178 -20
- package/documention/MapView.html +1704 -0
- package/documention/MapViewMapboxgl.html +283 -931
- package/documention/Popup.html +198 -284
- package/documention/Screenshot.html +181 -134
- package/documention/SketchEditorMapboxgl.html +241 -477
- package/documention/global.html +4968 -6
- package/documention/index.html +11 -14
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapvLayer.html +180 -27
- 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/package.json +4 -5
|
@@ -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>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>
|
|
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="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
|
+
|
|
8
138
|
|
|
9
139
|
|
|
10
140
|
|
|
@@ -25,7 +155,7 @@
|
|
|
25
155
|
<h4 class="name" id="SketchEditorMapboxgl">
|
|
26
156
|
<a class="href-link" href="#SketchEditorMapboxgl">#</a>
|
|
27
157
|
|
|
28
|
-
<span class="code-name"
|
|
158
|
+
<span class="code-name" style="font-size:30px">
|
|
29
159
|
|
|
30
160
|
new SketchEditorMapboxgl<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>
|
|
@@ -1682,7 +1477,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1682
1477
|
<h4 class="name" id="remove">
|
|
1683
1478
|
<a class="href-link" href="#remove">#</a>
|
|
1684
1479
|
|
|
1685
|
-
<span class="code-name"
|
|
1480
|
+
<span class="code-name" style="font-size:30px">
|
|
1686
1481
|
|
|
1687
1482
|
remove<span class="signature">()</span>
|
|
1688
1483
|
|
|
@@ -1773,7 +1568,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1773
1568
|
<h4 class="name" id="removeVertex">
|
|
1774
1569
|
<a class="href-link" href="#removeVertex">#</a>
|
|
1775
1570
|
|
|
1776
|
-
<span class="code-name"
|
|
1571
|
+
<span class="code-name" style="font-size:30px">
|
|
1777
1572
|
|
|
1778
1573
|
removeVertex<span class="signature">(index)</span>
|
|
1779
1574
|
|
|
@@ -1795,7 +1590,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1795
1590
|
|
|
1796
1591
|
|
|
1797
1592
|
|
|
1798
|
-
<h4
|
|
1593
|
+
<h4>参数:</h4>
|
|
1799
1594
|
|
|
1800
1595
|
<div class="table-container">
|
|
1801
1596
|
<table class="params table">
|
|
@@ -1825,12 +1620,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1825
1620
|
<td class="type">
|
|
1826
1621
|
|
|
1827
1622
|
|
|
1828
|
-
<span class="param-type">
|
|
1829
|
-
|
|
1830
|
-
Number
|
|
1831
|
-
|
|
1832
|
-
</span>
|
|
1833
|
-
|
|
1623
|
+
<span class="param-type">Number</span>
|
|
1834
1624
|
|
|
1835
1625
|
|
|
1836
1626
|
|
|
@@ -1918,7 +1708,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1918
1708
|
<h4 class="name" id="setSketchStyle">
|
|
1919
1709
|
<a class="href-link" href="#setSketchStyle">#</a>
|
|
1920
1710
|
|
|
1921
|
-
<span class="code-name"
|
|
1711
|
+
<span class="code-name" style="font-size:30px">
|
|
1922
1712
|
|
|
1923
1713
|
setSketchStyle<span class="signature">(sketchStyle)</span>
|
|
1924
1714
|
|
|
@@ -1940,7 +1730,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1940
1730
|
|
|
1941
1731
|
|
|
1942
1732
|
|
|
1943
|
-
<h4
|
|
1733
|
+
<h4>参数:</h4>
|
|
1944
1734
|
|
|
1945
1735
|
<div class="table-container">
|
|
1946
1736
|
<table class="params table">
|
|
@@ -1970,12 +1760,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1970
1760
|
<td class="type">
|
|
1971
1761
|
|
|
1972
1762
|
|
|
1973
|
-
<span class="param-type">
|
|
1974
|
-
|
|
1975
|
-
SketchStyle
|
|
1976
|
-
|
|
1977
|
-
</span>
|
|
1978
|
-
|
|
1763
|
+
<span class="param-type">SketchStyle</span>
|
|
1979
1764
|
|
|
1980
1765
|
|
|
1981
1766
|
|
|
@@ -2151,7 +1936,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2151
1936
|
<h4 class="name" id="split">
|
|
2152
1937
|
<a class="href-link" href="#split">#</a>
|
|
2153
1938
|
|
|
2154
|
-
<span class="code-name"
|
|
1939
|
+
<span class="code-name" style="font-size:30px">
|
|
2155
1940
|
|
|
2156
1941
|
split<span class="signature">(target, splitPolyline)</span>
|
|
2157
1942
|
|
|
@@ -2173,7 +1958,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2173
1958
|
|
|
2174
1959
|
|
|
2175
1960
|
|
|
2176
|
-
<h4
|
|
1961
|
+
<h4>参数:</h4>
|
|
2177
1962
|
|
|
2178
1963
|
<div class="table-container">
|
|
2179
1964
|
<table class="params table">
|
|
@@ -2203,19 +1988,10 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2203
1988
|
<td class="type">
|
|
2204
1989
|
|
|
2205
1990
|
|
|
2206
|
-
<span class="param-type">
|
|
2207
|
-
|
|
2208
|
-
Polygon
|
|
2209
|
-
|
|
2210
|
-
</span>
|
|
1991
|
+
<span class="param-type">Polygon</span>
|
|
2211
1992
|
|
|
|
2212
1993
|
|
|
2213
|
-
<span class="param-type">
|
|
2214
|
-
|
|
2215
|
-
SketchEditor
|
|
2216
|
-
|
|
2217
|
-
</span>
|
|
2218
|
-
|
|
1994
|
+
<span class="param-type">SketchEditor</span>
|
|
2219
1995
|
|
|
2220
1996
|
|
|
2221
1997
|
|
|
@@ -2239,12 +2015,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2239
2015
|
<td class="type">
|
|
2240
2016
|
|
|
2241
2017
|
|
|
2242
|
-
<span class="param-type">
|
|
2243
|
-
|
|
2244
|
-
Polyline
|
|
2245
|
-
|
|
2246
|
-
</span>
|
|
2247
|
-
|
|
2018
|
+
<span class="param-type">Polyline</span>
|
|
2248
2019
|
|
|
2249
2020
|
|
|
2250
2021
|
|
|
@@ -2319,7 +2090,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2319
2090
|
|
|
2320
2091
|
|
|
2321
2092
|
<div class='columns method-parameter'>
|
|
2322
|
-
<div class="column is-2"><label
|
|
2093
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2323
2094
|
<div class="column is-10">
|
|
2324
2095
|
|
|
2325
2096
|
|
|
@@ -2332,12 +2103,7 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2332
2103
|
<div class='column is-5 has-text-left'>
|
|
2333
2104
|
<label>类型: </label>
|
|
2334
2105
|
|
|
2335
|
-
<span class="param-type">
|
|
2336
|
-
|
|
2337
|
-
Array.<Polygon>
|
|
2338
|
-
|
|
2339
|
-
</span>
|
|
2340
|
-
|
|
2106
|
+
<span class="param-type">Array.<Polygon></span>
|
|
2341
2107
|
|
|
2342
2108
|
|
|
2343
2109
|
</div>
|
|
@@ -2404,7 +2170,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2404
2170
|
<h4 class="name" id="start">
|
|
2405
2171
|
<a class="href-link" href="#start">#</a>
|
|
2406
2172
|
|
|
2407
|
-
<span class="code-name"
|
|
2173
|
+
<span class="code-name" style="font-size:30px">
|
|
2408
2174
|
|
|
2409
2175
|
start<span class="signature">(dataType, extensionOptions)</span>
|
|
2410
2176
|
|
|
@@ -2426,7 +2192,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2426
2192
|
|
|
2427
2193
|
|
|
2428
2194
|
|
|
2429
|
-
<h4
|
|
2195
|
+
<h4>参数:</h4>
|
|
2430
2196
|
|
|
2431
2197
|
<div class="table-container">
|
|
2432
2198
|
<table class="params table">
|
|
@@ -2456,12 +2222,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2456
2222
|
<td class="type">
|
|
2457
2223
|
|
|
2458
2224
|
|
|
2459
|
-
<span class="param-type">
|
|
2460
|
-
|
|
2461
|
-
SketchDataType
|
|
2462
|
-
|
|
2463
|
-
</span>
|
|
2464
|
-
|
|
2225
|
+
<span class="param-type">SketchDataType</span>
|
|
2465
2226
|
|
|
2466
2227
|
|
|
2467
2228
|
|
|
@@ -2485,12 +2246,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2485
2246
|
<td class="type">
|
|
2486
2247
|
|
|
2487
2248
|
|
|
2488
|
-
<span class="param-type">
|
|
2489
|
-
|
|
2490
|
-
Object
|
|
2491
|
-
|
|
2492
|
-
</span>
|
|
2493
|
-
|
|
2249
|
+
<span class="param-type">Object</span>
|
|
2494
2250
|
|
|
2495
2251
|
|
|
2496
2252
|
|
|
@@ -2618,7 +2374,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2618
2374
|
<h4 class="name" id="startCustomDrawTool">
|
|
2619
2375
|
<a class="href-link" href="#startCustomDrawTool">#</a>
|
|
2620
2376
|
|
|
2621
|
-
<span class="code-name"
|
|
2377
|
+
<span class="code-name" style="font-size:30px">
|
|
2622
2378
|
|
|
2623
2379
|
startCustomDrawTool<span class="signature">(dataType)</span>
|
|
2624
2380
|
|
|
@@ -2640,7 +2396,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2640
2396
|
|
|
2641
2397
|
|
|
2642
2398
|
|
|
2643
|
-
<h4
|
|
2399
|
+
<h4>参数:</h4>
|
|
2644
2400
|
|
|
2645
2401
|
<div class="table-container">
|
|
2646
2402
|
<table class="params table">
|
|
@@ -2670,12 +2426,7 @@ sketchEditor.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2670
2426
|
<td class="type">
|
|
2671
2427
|
|
|
2672
2428
|
|
|
2673
|
-
<span class="param-type">
|
|
2674
|
-
|
|
2675
|
-
SketchDataType
|
|
2676
|
-
|
|
2677
|
-
</span>
|
|
2678
|
-
|
|
2429
|
+
<span class="param-type">SketchDataType</span>
|
|
2679
2430
|
|
|
2680
2431
|
|
|
2681
2432
|
|
|
@@ -2802,7 +2553,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2802
2553
|
<h4 class="name" id="stop">
|
|
2803
2554
|
<a class="href-link" href="#stop">#</a>
|
|
2804
2555
|
|
|
2805
|
-
<span class="code-name"
|
|
2556
|
+
<span class="code-name" style="font-size:30px">
|
|
2806
2557
|
|
|
2807
2558
|
stop<span class="signature">()</span>
|
|
2808
2559
|
|
|
@@ -2893,7 +2644,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2893
2644
|
<h4 class="name" id="undo">
|
|
2894
2645
|
<a class="href-link" href="#undo">#</a>
|
|
2895
2646
|
|
|
2896
|
-
<span class="code-name"
|
|
2647
|
+
<span class="code-name" style="font-size:30px">
|
|
2897
2648
|
|
|
2898
2649
|
undo<span class="signature">()</span>
|
|
2899
2650
|
|
|
@@ -2971,7 +2722,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2971
2722
|
|
|
2972
2723
|
|
|
2973
2724
|
<div class='columns method-parameter'>
|
|
2974
|
-
<div class="column is-2"><label
|
|
2725
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2975
2726
|
<div class="column is-10">
|
|
2976
2727
|
|
|
2977
2728
|
|
|
@@ -2982,12 +2733,7 @@ sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭
|
|
|
2982
2733
|
<div class='column is-5 has-text-left'>
|
|
2983
2734
|
<label>类型: </label>
|
|
2984
2735
|
|
|
2985
|
-
<span class="param-type">
|
|
2986
|
-
|
|
2987
|
-
Geometry
|
|
2988
|
-
|
|
2989
|
-
</span>
|
|
2990
|
-
|
|
2736
|
+
<span class="param-type">Geometry</span>
|
|
2991
2737
|
|
|
2992
2738
|
|
|
2993
2739
|
</div>
|
|
@@ -3041,7 +2787,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3041
2787
|
<h4 class="name" id="union">
|
|
3042
2788
|
<a class="href-link" href="#union">#</a>
|
|
3043
2789
|
|
|
3044
|
-
<span class="code-name"
|
|
2790
|
+
<span class="code-name" style="font-size:30px">
|
|
3045
2791
|
|
|
3046
2792
|
union<span class="signature">(polygons)</span>
|
|
3047
2793
|
|
|
@@ -3063,7 +2809,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3063
2809
|
|
|
3064
2810
|
|
|
3065
2811
|
|
|
3066
|
-
<h4
|
|
2812
|
+
<h4>参数:</h4>
|
|
3067
2813
|
|
|
3068
2814
|
<div class="table-container">
|
|
3069
2815
|
<table class="params table">
|
|
@@ -3093,12 +2839,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3093
2839
|
<td class="type">
|
|
3094
2840
|
|
|
3095
2841
|
|
|
3096
|
-
<span class="param-type">
|
|
3097
|
-
|
|
3098
|
-
Polygon
|
|
3099
|
-
|
|
3100
|
-
</span>
|
|
3101
|
-
|
|
2842
|
+
<span class="param-type">Polygon</span>
|
|
3102
2843
|
|
|
3103
2844
|
|
|
3104
2845
|
|
|
@@ -3173,7 +2914,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3173
2914
|
|
|
3174
2915
|
|
|
3175
2916
|
<div class='columns method-parameter'>
|
|
3176
|
-
<div class="column is-2"><label
|
|
2917
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3177
2918
|
<div class="column is-10">
|
|
3178
2919
|
|
|
3179
2920
|
|
|
@@ -3186,12 +2927,7 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3186
2927
|
<div class='column is-5 has-text-left'>
|
|
3187
2928
|
<label>类型: </label>
|
|
3188
2929
|
|
|
3189
|
-
<span class="param-type">
|
|
3190
|
-
|
|
3191
|
-
Polygon
|
|
3192
|
-
|
|
3193
|
-
</span>
|
|
3194
|
-
|
|
2930
|
+
<span class="param-type">Polygon</span>
|
|
3195
2931
|
|
|
3196
2932
|
|
|
3197
2933
|
</div>
|
|
@@ -3264,7 +3000,7 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3264
3000
|
<h4 class="name" id="updateVertex">
|
|
3265
3001
|
<a class="href-link" href="#updateVertex">#</a>
|
|
3266
3002
|
|
|
3267
|
-
<span class="code-name"
|
|
3003
|
+
<span class="code-name" style="font-size:30px">
|
|
3268
3004
|
|
|
3269
3005
|
updateVertex<span class="signature">(point, index)</span>
|
|
3270
3006
|
|
|
@@ -3286,7 +3022,7 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3286
3022
|
|
|
3287
3023
|
|
|
3288
3024
|
|
|
3289
|
-
<h4
|
|
3025
|
+
<h4>参数:</h4>
|
|
3290
3026
|
|
|
3291
3027
|
<div class="table-container">
|
|
3292
3028
|
<table class="params table">
|
|
@@ -3316,12 +3052,7 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3316
3052
|
<td class="type">
|
|
3317
3053
|
|
|
3318
3054
|
|
|
3319
|
-
<span class="param-type">
|
|
3320
|
-
|
|
3321
|
-
Point
|
|
3322
|
-
|
|
3323
|
-
</span>
|
|
3324
|
-
|
|
3055
|
+
<span class="param-type">Point</span>
|
|
3325
3056
|
|
|
3326
3057
|
|
|
3327
3058
|
|
|
@@ -3345,12 +3076,7 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3345
3076
|
<td class="type">
|
|
3346
3077
|
|
|
3347
3078
|
|
|
3348
|
-
<span class="param-type">
|
|
3349
|
-
|
|
3350
|
-
Number
|
|
3351
|
-
|
|
3352
|
-
</span>
|
|
3353
|
-
|
|
3079
|
+
<span class="param-type">Number</span>
|
|
3354
3080
|
|
|
3355
3081
|
|
|
3356
3082
|
|
|
@@ -3440,4 +3166,42 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3440
3166
|
|
|
3441
3167
|
</article>
|
|
3442
3168
|
|
|
3443
|
-
</section>
|
|
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>
|