@mapgis/webclient-leaflet-plugin 17.6.21 → 17.8.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 +38 -0
- package/dist/es5/webclient-common.min.js +11 -11
- package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
- package/dist/webclient-leaflet-plugin-es6.min.js +6 -6
- package/documention/ArcGISMapImageLayer.html +794 -763
- package/documention/ArcGISTileLayer.html +464 -513
- package/documention/EchartsLayer.html +177 -300
- package/documention/FeatureLayer.html +123 -242
- package/documention/FeatureLayerUtil.html +142 -284
- package/documention/GraphThemeLayer.html +769 -0
- package/documention/IGSImageryLayer.html +756 -733
- package/documention/IGSImageryTileLayer.html +615 -624
- package/documention/IGSMapImageLayer.html +891 -836
- package/documention/IGSTileLayer.html +563 -588
- package/documention/L.zondy.MapvBaseLayer.html +407 -601
- package/documention/MapLayer.html +357 -429
- package/documention/MapVLayer.html +215 -340
- package/documention/MapView.html +3947 -4390
- package/documention/Popup.html +684 -955
- package/documention/Screenshot.html +455 -665
- package/documention/SketchEditor.html +1584 -1990
- package/documention/SwipeControl.html +817 -1069
- package/documention/SwipeTool.html +451 -565
- package/documention/TileLayer.html +423 -479
- package/documention/TileLayerWMS.html +170 -294
- package/documention/VectorTileLayer.html +497 -538
- package/documention/WMSLayerView.html +467 -612
- package/documention/WebMapServiceLayer.html +710 -703
- package/documention/WebMapTileServiceLayer.html +710 -703
- package/documention/WebTileLayer.html +637 -646
- package/documention/fonts/fontawesome-webfont.woff2 +0 -0
- package/documention/fonts/glyphicons-halflings-regular.eot +0 -0
- package/documention/fonts/glyphicons-halflings-regular.svg +288 -0
- package/documention/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/documention/fonts/glyphicons-halflings-regular.woff +0 -0
- package/documention/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/documention/global.html +7646 -8405
- package/documention/index.html +98 -245
- package/documention/initializeOptions.html +171 -290
- package/documention/nav.html +692 -0
- package/documention/scripts/adminlte/app.min.js +472 -0
- package/documention/scripts/bootstrap.min.js +7 -0
- package/documention/scripts/jquery.min.js +4 -0
- package/documention/scripts/jquery.min.map +1 -0
- package/documention/scripts/linenumber.js +22 -19
- package/documention/scripts/main.js +95 -0
- package/documention/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/documention/scripts/prettify/lang-css.js +2 -0
- package/documention/scripts/prettify/prettify.js +28 -0
- package/documention/scripts/underscore-min.js +6 -0
- package/documention/scripts/underscore-min.map +1 -0
- package/documention/styles/adminlte/AdminLTE.min.css +7 -0
- package/documention/styles/adminlte/font-awesome.min.css +4 -0
- package/documention/styles/adminlte/skin-blue.min.css +1 -0
- package/documention/styles/bootstrap.min.css +6 -0
- package/documention/styles/common.css +175 -0
- package/documention/styles/examples.css +116 -0
- package/documention/styles/font-awesome.css +2337 -0
- package/documention/styles/header.css +556 -0
- package/documention/styles/jaguar.css +553 -0
- package/documention/styles/prettify-tomorrow.css +1 -1
- package/documention/styles/style.customize.css +631 -0
- package/documention/zondy.themelayer.GeoFeatureThemeLayer.html +2536 -3284
- package/documention/zondy.themelayer.GraphThemeLayer.html +3478 -4343
- package/documention/zondy.themelayer.RandomThemeLayer.html +2708 -3533
- package/documention/zondy.themelayer.ThemeLayer.html +1798 -2337
- package/documention/zondy.themelayer.ThemeStyle.html +1645 -2334
- package/documention/zondy.themelayer.rangeThemeLayer.html +2735 -3591
- package/documention/zondy.themelayer.rankSymbolThemeLayer.html +2226 -5113
- package/documention/zondy.themelayer.simpleThemeLayer.html +2642 -3436
- package/documention/zondy.themelayer.uniqueThemeLayer.html +2684 -3520
- package/documention/zondy.view.UI.html +236 -324
- package/documention/zondy.widget.html +290 -362
- package/package.json +5 -5
|
@@ -1,174 +1,123 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html
|
|
3
|
-
|
|
2
|
+
<html>
|
|
4
3
|
<head>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
6
|
+
<script src="scripts/prettify/prettify.js"></script>
|
|
7
|
+
<script src="scripts/prettify/lang-css.js"></script>
|
|
8
|
+
<title> MapGIS Client for JavaScript API </title>
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
|
|
11
|
+
</script>
|
|
12
|
+
<!--[if lt IE 9]>
|
|
13
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
14
|
+
<![endif]-->
|
|
15
|
+
<script src="scripts/jquery.min.js"></script>
|
|
16
|
+
<script src="scripts/adminlte/app.min.js"></script>
|
|
17
|
+
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
|
|
18
|
+
<link type="text/css" rel="stylesheet" href="styles/adminlte/AdminLTE.min.css">
|
|
19
|
+
<link type="text/css" rel="stylesheet" href="styles/adminlte/skin-blue.min.css">
|
|
20
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
21
|
+
<link type="text/css" rel="stylesheet" href="styles/common.css">
|
|
22
|
+
<link type="text/css" rel="stylesheet" href="styles/header.css">
|
|
23
|
+
<link type="text/css" rel="stylesheet" href="styles/examples.css">
|
|
24
|
+
<link type="text/css" rel="stylesheet" href="styles/style.customize.css">
|
|
25
|
+
<link type="text/css" rel="stylesheet" href="styles/font-awesome.css">
|
|
26
|
+
<link type="text/css" rel="stylesheet" href="styles/jaguar.css">
|
|
27
|
+
<script src="scripts/bootstrap.min.js"></script>
|
|
17
28
|
</head>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<div class="
|
|
26
|
-
|
|
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
|
|
29
|
+
<body class='sidebar-mini'>
|
|
30
|
+
|
|
31
|
+
<div id="wrap" class="clearfix">
|
|
32
|
+
<header class="header-wrapper main-header mapgis-header">
|
|
33
|
+
<nav class="navbar navbar-static-top lite">
|
|
34
|
+
<div class="nav-header">
|
|
35
|
+
<div class="navbar-header">
|
|
36
|
+
<div class="navbar-title" style="display: flex;align-items: center; ">
|
|
37
|
+
<a href="index.html">
|
|
38
|
+
<img class="mapgis-webclient-logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR42u2de3gb5Z3vv+/Yjp2rFF8Sx5atsRMgpbRWC7Q9tF2rfbYtpZQYKBRoS4a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ChBIC8TUdGFa0A/G5FP3XeAy77AJYEJSsuVFkeDMW8UAAACwSURBVJvlTfGWDKGANt+KA+1gTD31wFd85l01AUxaiq97PlRfjpwiqhFI02LVbbvAmDz94EUe8y6aAKYtRd/pmlVfBvj33GkUaW69YEwKPNJi+nkmgAZDeM1zs+vLwW8cD/l5itZxiWreKRPAjIpw9TOivsaMtknnT599pj1+qennmQBm8eZ94+krQPQe7by8x7wbJoCmFKI1MW+BKSaAppgAmmKKCaApJoCmmJJN+f8yRATGNXIUUAAAAABJRU5ErkJggg==">
|
|
62
39
|
</a>
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
40
|
+
<a class="navbar-brand">
|
|
41
|
+
<span class="mapgis-webclient-text"> MapGIS Client for JavaScript(Leaflet) </span>
|
|
83
42
|
</a>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
43
|
+
<div id="suffix-title">for MapboxGL</div>
|
|
44
|
+
</div>
|
|
45
|
+
<button
|
|
46
|
+
type="button"
|
|
47
|
+
class="navbar-toggle collapsed"
|
|
48
|
+
data-toggle="collapse"
|
|
49
|
+
data-target="#navbar-collapse"
|
|
50
|
+
aria-expanded="false"
|
|
51
|
+
>
|
|
52
|
+
<i class="fa fa-bars"></i>
|
|
53
|
+
</button>
|
|
54
|
+
</div>
|
|
87
55
|
</div>
|
|
88
|
-
</
|
|
56
|
+
</nav>
|
|
57
|
+
</header>
|
|
58
|
+
<div class="navigationDiv">
|
|
89
59
|
</div>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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地图服务接入类</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瓦片服务接入类</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="IGSImageryLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSImageryLayer.html">IGSImageryLayer</a><span style="display: none;"><p>IGS影像图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSImageryTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSImageryTileLayer.html">IGSImageryTileLayer</a><span style="display: none;"><p>IGS影像瓦片图层(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>IGS地图服务接入类</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瓦片服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="initializeOptions"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="initializeOptions.html">initializeOptions</a><span style="display: none;"><p>通过Common的图层对象构建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="SwipeControl"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SwipeControl.html">SwipeControl</a><span style="display: none;">undefined</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>矢量瓦片服务接入类</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服务接入类</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服务接入类</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>网络瓦片服务接入类</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
|
-
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
|
|
109
|
-
参考示例:
|
|
110
|
-
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
111
|
-
<br>[ES5引入方式]:<br/>
|
|
112
|
-
zondy.leaflet.MapView() <br/>
|
|
113
|
-
[ES6引入方式]:<br/>
|
|
114
|
-
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引擎)
|
|
115
|
-
参考示例:
|
|
116
|
-
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
117
|
-
[ES6引入方式]:<br/>
|
|
118
|
-
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
|
|
119
|
-
自定义样式说明:<br/>
|
|
120
|
-
zondy-popup__container 弹窗容器样式<br/>
|
|
121
|
-
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
122
|
-
zondy-popup__header 弹窗头部样式<br/>
|
|
123
|
-
zondy-popup__content 弹窗主体样式<br/>
|
|
124
|
-
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="SketchEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>二维Leaflet引擎草图编辑类<br/>
|
|
125
|
-
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SketchEditor.html' target='_blank'>zondy.SketchEditor</a><br/>
|
|
126
|
-
<br>[ES5引入方式]:<br/>
|
|
127
|
-
const { SketchEditor } = zondy.leaflet.tool.sketch <br/>
|
|
128
|
-
[ES6引入方式]:<br/>
|
|
129
|
-
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="SwipeTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SwipeTool.html">SwipeTool</a><span style="display: none;"><p>卷帘工具,继承自<a href='http://10.10.130.72:8086/static/modules/common/api/common-mapgis/BaseSwipeTool.html' target='_blank'>zondy.tool.BaseSwipeTool</a><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>
|
|
130
|
-
|
|
131
|
-
</nav>
|
|
132
|
-
</div>
|
|
133
|
-
<div class="core" id="main-content-wrapper">
|
|
134
|
-
<div class="content">
|
|
135
|
-
<header id="page-title" class="page-title">
|
|
136
|
-
<span class="page-title-main">类名</span>
|
|
137
|
-
<span class="page-title-sub">SketchEditor</span>
|
|
138
|
-
</header>
|
|
139
|
-
|
|
140
|
-
|
|
60
|
+
<div class="main content-wrapper examples-container">
|
|
61
|
+
<h1 class="page-title" data-filename="SketchEditor.html">Class: SketchEditor</h1>
|
|
62
|
+
|
|
141
63
|
|
|
142
64
|
|
|
143
65
|
|
|
144
66
|
<section>
|
|
67
|
+
|
|
68
|
+
<header>
|
|
69
|
+
<h2></span>SketchEditor
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
</h2>
|
|
73
|
+
|
|
74
|
+
</header>
|
|
145
75
|
|
|
146
76
|
<article>
|
|
147
77
|
<div class="container-overview">
|
|
148
78
|
|
|
149
|
-
|
|
150
|
-
<div class='vertical-section'>
|
|
151
|
-
<div class="members">
|
|
152
|
-
<div class="member">
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
79
|
|
|
157
|
-
|
|
158
|
-
<a class="href-link" href="#SketchEditor">#</a>
|
|
80
|
+
|
|
159
81
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
82
|
+
<dt>
|
|
83
|
+
<div class="nameContainer">
|
|
84
|
+
<h4 class="name" id="SketchEditor">
|
|
163
85
|
|
|
164
|
-
|
|
165
|
-
|
|
86
|
+
new SketchEditor<span class="signature">(options)</span>
|
|
87
|
+
</h4>
|
|
166
88
|
|
|
89
|
+
|
|
90
|
+
<div class="tag-source">
|
|
91
|
+
sketchEditor/SketchEditor.js, line 14
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
</div>
|
|
167
95
|
|
|
168
96
|
|
|
97
|
+
<p class="summary"><h5>支持如下方法:</h5>
|
|
98
|
+
<a href='#start'>[1、开始绘制草图]</a><br/>
|
|
99
|
+
<a href='#stop'>[2、停止绘制]</a><br/>
|
|
100
|
+
<a href='#remove'>[3、移除当前草图]</a><br/>
|
|
101
|
+
<a href='#addVertex'>[4、向草线或面草图中插入新的顶点]</a><br/>
|
|
102
|
+
<a href='#updateVertex'>[5、更新草图图形的某个顶点]</a><br/>
|
|
103
|
+
<a href='#removeVertex'>[6、移除草图图形的某个顶点]</a><br/>
|
|
104
|
+
<a href='#getSketchDataType'>[7、获取草图图形类型]</a><br/>
|
|
105
|
+
<a href='#setSketchStyle'>[8、设置草图样式]</a><br/>
|
|
106
|
+
<a href='#getSketchStyle'>[9、获取草图样式]</a><br/>
|
|
107
|
+
<a href='#getGeometry'>[10、获取草图几何对象]</a><br/>
|
|
108
|
+
<a href='#union'>[11、合并多个区几何]</a><br/>
|
|
109
|
+
<a href='#split'>[12、分割草图对象或区几何对象]</a><br/>
|
|
110
|
+
<a href='#undo'>[13、撤销当前编辑操作]</a><br/>
|
|
111
|
+
<a href='#redo'>[14、恢复被撤销的草图]</a><br/>
|
|
112
|
+
<a href='#drawPolylineToPolygon'>[15、拓扑线造区]</a><br/></p>
|
|
113
|
+
|
|
114
|
+
</dt>
|
|
115
|
+
<dd>
|
|
116
|
+
|
|
117
|
+
|
|
169
118
|
<div class="description">
|
|
170
119
|
<p>二维Leaflet引擎草图编辑类<br/>
|
|
171
|
-
继承自<a href='http://
|
|
120
|
+
继承自<a href='http://10.10.130.72:8086/static/modules/common/api/common-mapgis/SketchEditor.html' target='_blank'>zondy.SketchEditor</a><br/>
|
|
172
121
|
<br>[ES5引入方式]:<br/>
|
|
173
122
|
const { SketchEditor } = zondy.leaflet.tool.sketch <br/>
|
|
174
123
|
[ES6引入方式]:<br/>
|
|
@@ -176,251 +125,253 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
176
125
|
</div>
|
|
177
126
|
|
|
178
127
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
<h4>参数:</h4>
|
|
188
128
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<table class="params">
|
|
136
|
+
<thead>
|
|
137
|
+
<tr>
|
|
138
|
+
|
|
139
|
+
<th>Name</th>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<th>Type</th>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
<th class="last">Description</th>
|
|
147
|
+
</tr>
|
|
148
|
+
</thead>
|
|
149
|
+
|
|
150
|
+
<tbody>
|
|
151
|
+
|
|
152
|
+
|
|
192
153
|
<tr>
|
|
193
154
|
|
|
194
|
-
|
|
155
|
+
<td class="name"><code>options</code></td>
|
|
195
156
|
|
|
196
|
-
|
|
197
|
-
<th>类型</th>
|
|
198
|
-
|
|
199
157
|
|
|
200
|
-
|
|
201
|
-
<th class="last">描述</th>
|
|
202
|
-
</tr>
|
|
203
|
-
</thead>
|
|
204
|
-
|
|
205
|
-
<tbody>
|
|
206
|
-
|
|
207
|
-
|
|
158
|
+
<td class="type">
|
|
208
159
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<td class="name"><code>options</code></td>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<td class="type">
|
|
215
|
-
|
|
216
|
-
|
|
160
|
+
|
|
217
161
|
<span class="param-type">Object</span>
|
|
218
162
|
|
|
219
163
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
<tr class="deep-level-1">
|
|
232
|
-
|
|
233
|
-
<td class="name"><code>view</code></td>
|
|
234
|
-
|
|
164
|
+
|
|
165
|
+
</td>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
<td class="description last">
|
|
170
|
+
|
|
171
|
+
<p>构造参数</p>
|
|
172
|
+
|
|
235
173
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
174
|
+
<table class="params">
|
|
175
|
+
<thead>
|
|
176
|
+
<tr>
|
|
177
|
+
|
|
178
|
+
<th>Name</th>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
<th>Type</th>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
<th class="last">Description</th>
|
|
186
|
+
</tr>
|
|
187
|
+
</thead>
|
|
188
|
+
|
|
189
|
+
<tbody>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<tr>
|
|
193
|
+
|
|
194
|
+
<td class="name"><code>view</code></td>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<td class="type">
|
|
198
|
+
|
|
199
|
+
|
|
239
200
|
<span class="param-type"><a href="MapView.html">MapView</a></span>
|
|
240
201
|
|
|
|
241
202
|
|
|
242
203
|
<span class="param-type"><a href="SceneView.html">SceneView</a></span>
|
|
243
204
|
|
|
244
205
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
206
|
+
|
|
207
|
+
</td>
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<td class="description last">
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<span class="optional"> 可选</span>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
<p>地图视图对象</p></td>
|
|
221
|
+
</tr>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
<tr>
|
|
226
|
+
|
|
227
|
+
<td class="name"><code>layer</code></td>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<td class="type">
|
|
231
|
+
|
|
232
|
+
|
|
264
233
|
<span class="param-type">GraphicsLayer</span>
|
|
265
234
|
|
|
266
235
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
236
|
+
|
|
237
|
+
</td>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<td class="description last">
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
<span class="optional"> 可选</span>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<p>草图图层管对象</p></td>
|
|
251
|
+
</tr>
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<tr>
|
|
256
|
+
|
|
257
|
+
<td class="name"><code>sketchStyle</code></td>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
<td class="type">
|
|
261
|
+
|
|
262
|
+
|
|
286
263
|
<span class="param-type">SketchStyle</span>
|
|
287
264
|
|
|
288
265
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
266
|
+
|
|
267
|
+
</td>
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
<td class="description last">
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
<span class="optional"> 可选</span>
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
<p>草图符号</p></td>
|
|
281
|
+
</tr>
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
<tr>
|
|
286
|
+
|
|
287
|
+
<td class="name"><code>snapOption</code></td>
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<td class="type">
|
|
291
|
+
|
|
292
|
+
|
|
308
293
|
<span class="param-type">Object</span>
|
|
309
294
|
|
|
310
295
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
296
|
+
|
|
297
|
+
</td>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
<td class="description last">
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<span class="optional"> 可选</span>
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
<p>草图捕获配置项</p></td>
|
|
311
|
+
</tr>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
</tbody>
|
|
315
|
+
</table>
|
|
316
|
+
</td>
|
|
317
|
+
</tr>
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
</tbody>
|
|
321
|
+
</table>
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
334
325
|
<dl class="details">
|
|
335
|
-
|
|
336
326
|
|
|
337
|
-
|
|
327
|
+
|
|
338
328
|
|
|
339
|
-
|
|
340
329
|
|
|
341
|
-
|
|
342
330
|
|
|
343
331
|
|
|
344
332
|
|
|
345
|
-
|
|
346
333
|
|
|
347
|
-
|
|
348
334
|
|
|
349
|
-
|
|
350
335
|
|
|
351
|
-
|
|
352
336
|
|
|
353
|
-
|
|
354
337
|
|
|
355
|
-
|
|
356
338
|
|
|
357
|
-
|
|
358
339
|
|
|
359
340
|
|
|
360
|
-
|
|
361
341
|
|
|
362
|
-
|
|
363
342
|
|
|
364
|
-
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
365
346
|
|
|
366
347
|
</dl>
|
|
367
348
|
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<h5>Fires</h5>
|
|
352
|
+
<ul>
|
|
353
|
+
<li>SketchEditor#event:草图绘制完成事件</li>
|
|
354
|
+
|
|
355
|
+
<li>SketchEditor#event:草图被选中事件</li>
|
|
356
|
+
</ul>
|
|
357
|
+
|
|
368
358
|
|
|
359
|
+
|
|
369
360
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
<div class="method-parameter columns">
|
|
373
|
-
<div class="column is-2"><label>绑定事件:</label></div>
|
|
374
|
-
<div class="column is-10">
|
|
375
|
-
<ul>
|
|
376
|
-
<li>SketchEditor#event:草图绘制完成事件</li>
|
|
377
|
-
|
|
378
|
-
<li>SketchEditor#event:草图被选中事件</li>
|
|
379
|
-
</ul>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
<p class="summary"><h5>支持如下方法:</h5>
|
|
400
|
-
<a href='#start'>[1、开始绘制草图]</a><br/>
|
|
401
|
-
<a href='#stop'>[2、停止绘制]</a><br/>
|
|
402
|
-
<a href='#remove'>[3、移除当前草图]</a><br/>
|
|
403
|
-
<a href='#addVertex'>[4、向草线或面草图中插入新的顶点]</a><br/>
|
|
404
|
-
<a href='#updateVertex'>[5、更新草图图形的某个顶点]</a><br/>
|
|
405
|
-
<a href='#removeVertex'>[6、移除草图图形的某个顶点]</a><br/>
|
|
406
|
-
<a href='#getSketchDataType'>[7、获取草图图形类型]</a><br/>
|
|
407
|
-
<a href='#setSketchStyle'>[8、设置草图样式]</a><br/>
|
|
408
|
-
<a href='#getSketchStyle'>[9、获取草图样式]</a><br/>
|
|
409
|
-
<a href='#getGeometry'>[10、获取草图几何对象]</a><br/>
|
|
410
|
-
<a href='#union'>[11、合并多个区几何]</a><br/>
|
|
411
|
-
<a href='#split'>[12、分割草图对象或区几何对象]</a><br/>
|
|
412
|
-
<a href='#undo'>[13、撤销当前编辑操作]</a><br/>
|
|
413
|
-
<a href='#redo'>[14、恢复被撤销的草图]</a><br/>
|
|
414
|
-
<a href='#drawPolylineToPolygon'>[15、拓扑线造区]</a><br/></p>
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
<h5>示例</h5>
|
|
419
361
|
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
<h5>Example</h5>
|
|
369
|
+
|
|
420
370
|
<p class="code-caption"><h7>初始化一个二维场景草图编辑类</h7></p>
|
|
421
371
|
|
|
372
|
+
|
|
422
373
|
|
|
423
|
-
|
|
374
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
424
375
|
const { Color } = zondy
|
|
425
376
|
const { SketchDataType } = zondy.enum
|
|
426
377
|
const { SimpleMarkerSymbol } = zondy.symbol
|
|
@@ -428,8 +379,8 @@ const { SketchStyle } = zondy.tool.sketch
|
|
|
428
379
|
const { MapView } = zondy.leaflet
|
|
429
380
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
430
381
|
[ES6引入方式]:
|
|
431
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
432
|
-
import { SketchStyle, SimpleMarkerSymbol, Color, SketchDataType} from "@mapgis/webclient-common"
|
|
382
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
383
|
+
import { SketchStyle, SimpleMarkerSymbol, Color, SketchDataType} from "@mapgis/webclient-common" <br/>
|
|
433
384
|
var map = new Map()
|
|
434
385
|
var mapView = new MapView({
|
|
435
386
|
viewId: "mapgis-2d-viewer",
|
|
@@ -455,587 +406,506 @@ sketchEditor.start(SketchDataType.polygon) // 绘制区
|
|
|
455
406
|
*</code></pre>
|
|
456
407
|
|
|
457
408
|
|
|
409
|
+
|
|
410
|
+
</dd>
|
|
458
411
|
|
|
459
|
-
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
</div>
|
|
463
|
-
|
|
464
412
|
|
|
465
413
|
</div>
|
|
466
414
|
|
|
467
415
|
|
|
468
|
-
<h3 class="subsection-title"
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
416
|
+
<h3 class="subsection-title">Extends</h3>
|
|
417
|
+
<ul>
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
<li>zondy.SketchEditor</li>
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
</ul>
|
|
478
426
|
|
|
479
427
|
|
|
480
428
|
|
|
481
|
-
|
|
482
429
|
|
|
483
|
-
|
|
484
430
|
|
|
485
|
-
|
|
486
431
|
|
|
487
|
-
|
|
488
432
|
|
|
489
|
-
|
|
490
433
|
|
|
491
|
-
|
|
492
434
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
<div class="members">
|
|
496
|
-
|
|
497
|
-
<div class="member">
|
|
435
|
+
|
|
436
|
+
|
|
498
437
|
|
|
438
|
+
|
|
499
439
|
|
|
500
440
|
|
|
501
|
-
|
|
502
|
-
<a class="href-link" href="#addVertex">#</a>
|
|
441
|
+
<h3 class="subsection-title">Methods</h3>
|
|
503
442
|
|
|
504
|
-
<
|
|
443
|
+
<dl>
|
|
505
444
|
|
|
506
|
-
|
|
445
|
+
<dt>
|
|
446
|
+
<div class="nameContainer">
|
|
447
|
+
<h4 class="name" id="addVertex">
|
|
507
448
|
|
|
508
|
-
|
|
509
|
-
|
|
449
|
+
addVertex<span class="signature">(point, index)</span>
|
|
450
|
+
</h4>
|
|
510
451
|
|
|
452
|
+
|
|
453
|
+
<div class="tag-source">
|
|
454
|
+
sketchEditor/SketchEditor.js, line 199
|
|
455
|
+
</div>
|
|
456
|
+
|
|
457
|
+
</div>
|
|
511
458
|
|
|
512
459
|
|
|
460
|
+
</dt>
|
|
461
|
+
<dd>
|
|
462
|
+
|
|
463
|
+
|
|
513
464
|
<div class="description">
|
|
514
465
|
<p>向当前线或区草图中插入新的顶点<a id='addVertex'></a></p>
|
|
515
466
|
</div>
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
467
|
+
|
|
525
468
|
|
|
526
|
-
<h4>参数:</h4>
|
|
527
469
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
<table class="params">
|
|
477
|
+
<thead>
|
|
478
|
+
<tr>
|
|
479
|
+
|
|
480
|
+
<th>Name</th>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
<th>Type</th>
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
<th class="last">Description</th>
|
|
488
|
+
</tr>
|
|
489
|
+
</thead>
|
|
490
|
+
|
|
491
|
+
<tbody>
|
|
492
|
+
|
|
493
|
+
|
|
531
494
|
<tr>
|
|
532
495
|
|
|
533
|
-
|
|
496
|
+
<td class="name"><code>point</code></td>
|
|
534
497
|
|
|
535
|
-
|
|
536
|
-
<th>类型</th>
|
|
537
|
-
|
|
538
498
|
|
|
539
|
-
|
|
540
|
-
<th class="last">描述</th>
|
|
541
|
-
</tr>
|
|
542
|
-
</thead>
|
|
543
|
-
|
|
544
|
-
<tbody>
|
|
545
|
-
|
|
546
|
-
|
|
499
|
+
<td class="type">
|
|
547
500
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
<td class="name"><code>point</code></td>
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
<td class="type">
|
|
554
|
-
|
|
555
|
-
|
|
501
|
+
|
|
556
502
|
<span class="param-type">Point</span>
|
|
557
503
|
|
|
558
504
|
|
|
559
|
-
|
|
560
|
-
</td>
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
<td class="description last"><p>新增/插入顶点</p></td>
|
|
565
|
-
</tr>
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
505
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
506
|
+
</td>
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
<td class="description last">
|
|
511
|
+
|
|
512
|
+
<p>新增/插入顶点</p></td>
|
|
513
|
+
</tr>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
<tr>
|
|
518
|
+
|
|
519
|
+
<td class="name"><code>index</code></td>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
<td class="type">
|
|
523
|
+
|
|
524
|
+
|
|
580
525
|
<span class="param-type">Number</span>
|
|
581
526
|
|
|
582
527
|
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
528
|
+
|
|
529
|
+
</td>
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
<td class="description last">
|
|
534
|
+
|
|
535
|
+
<p>新增点的索引值,索引值从0开始</p></td>
|
|
536
|
+
</tr>
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
</tbody>
|
|
540
|
+
</table>
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
603
544
|
<dl class="details">
|
|
604
|
-
|
|
605
545
|
|
|
606
|
-
|
|
546
|
+
|
|
607
547
|
|
|
608
|
-
|
|
609
548
|
|
|
610
|
-
|
|
611
549
|
|
|
612
550
|
|
|
613
551
|
|
|
614
|
-
|
|
615
552
|
|
|
616
|
-
|
|
617
553
|
|
|
618
|
-
|
|
619
554
|
|
|
620
|
-
|
|
621
555
|
|
|
622
|
-
|
|
623
556
|
|
|
624
|
-
|
|
625
557
|
|
|
626
|
-
|
|
627
558
|
|
|
628
559
|
|
|
629
|
-
|
|
630
560
|
|
|
631
|
-
|
|
632
561
|
|
|
633
|
-
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
634
565
|
|
|
635
566
|
</dl>
|
|
636
567
|
|
|
568
|
+
|
|
569
|
+
|
|
637
570
|
|
|
571
|
+
|
|
638
572
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
</div>
|
|
660
|
-
|
|
661
|
-
<div class="member">
|
|
662
|
-
|
|
663
|
-
|
|
664
573
|
|
|
665
|
-
|
|
666
|
-
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
</dd>
|
|
581
|
+
|
|
667
582
|
|
|
668
|
-
<span class="code-name" style="font-size:30px">
|
|
669
583
|
|
|
670
|
-
|
|
584
|
+
<dt>
|
|
585
|
+
<div class="nameContainer">
|
|
586
|
+
<h4 class="name" id="canRedo">
|
|
671
587
|
|
|
672
|
-
|
|
673
|
-
|
|
588
|
+
canRedo<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Boolean}</span>
|
|
589
|
+
</h4>
|
|
674
590
|
|
|
591
|
+
|
|
592
|
+
<div class="tag-source">
|
|
593
|
+
sketchEditor/SketchEditor.js, line 580
|
|
594
|
+
</div>
|
|
595
|
+
|
|
596
|
+
</div>
|
|
675
597
|
|
|
676
598
|
|
|
599
|
+
</dt>
|
|
600
|
+
<dd>
|
|
601
|
+
|
|
602
|
+
|
|
677
603
|
<div class="description">
|
|
678
604
|
<p>草图是否可执行恢复操作<a id='canRedo'></a></p>
|
|
679
605
|
</div>
|
|
680
606
|
|
|
681
607
|
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
694
615
|
<dl class="details">
|
|
695
|
-
|
|
696
616
|
|
|
697
|
-
|
|
617
|
+
|
|
698
618
|
|
|
699
|
-
|
|
700
619
|
|
|
701
|
-
|
|
702
620
|
|
|
703
621
|
|
|
704
622
|
|
|
705
|
-
|
|
706
623
|
|
|
707
|
-
|
|
708
624
|
|
|
709
|
-
|
|
710
625
|
|
|
711
|
-
|
|
712
626
|
|
|
713
|
-
|
|
714
627
|
|
|
715
|
-
|
|
716
628
|
|
|
717
|
-
|
|
718
629
|
|
|
719
630
|
|
|
720
|
-
|
|
721
631
|
|
|
722
|
-
|
|
723
632
|
|
|
724
|
-
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
725
636
|
|
|
726
637
|
</dl>
|
|
727
638
|
|
|
639
|
+
|
|
640
|
+
|
|
728
641
|
|
|
642
|
+
|
|
729
643
|
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
<h5>Returns:</h5>
|
|
650
|
+
|
|
730
651
|
|
|
731
652
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
<div class='columns method-parameter'>
|
|
746
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
747
|
-
<div class="column is-10">
|
|
653
|
+
<table class="params">
|
|
654
|
+
<thead>
|
|
655
|
+
<tr>
|
|
656
|
+
|
|
657
|
+
<th>Type</th>
|
|
658
|
+
<th class="last">Description</th>
|
|
659
|
+
</tr>
|
|
660
|
+
</thead>
|
|
661
|
+
<tbody>
|
|
662
|
+
|
|
663
|
+
<tr>
|
|
664
|
+
|
|
665
|
+
<td class="type">
|
|
748
666
|
|
|
667
|
+
Boolean
|
|
668
|
+
|
|
749
669
|
|
|
670
|
+
</td>
|
|
671
|
+
<td class="description last"></td>
|
|
672
|
+
</tr>
|
|
673
|
+
|
|
674
|
+
</tbody>
|
|
675
|
+
</table>
|
|
750
676
|
|
|
751
|
-
<div class="columns">
|
|
752
677
|
|
|
753
678
|
|
|
754
|
-
<div class='column is-5 has-text-left'>
|
|
755
|
-
<label>类型: </label>
|
|
756
|
-
|
|
757
|
-
<span class="param-type">Boolean</span>
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
</div>
|
|
761
679
|
|
|
762
|
-
</
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
</div>
|
|
766
|
-
</div>
|
|
767
|
-
|
|
768
|
-
|
|
680
|
+
</dd>
|
|
769
681
|
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
</div>
|
|
774
|
-
|
|
775
|
-
<div class="member">
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
<h4 class="name" id="canUndo">
|
|
780
|
-
<a class="href-link" href="#canUndo">#</a>
|
|
781
682
|
|
|
782
|
-
<span class="code-name" style="font-size:30px">
|
|
783
683
|
|
|
784
|
-
|
|
684
|
+
<dt>
|
|
685
|
+
<div class="nameContainer">
|
|
686
|
+
<h4 class="name" id="canUndo">
|
|
785
687
|
|
|
786
|
-
|
|
787
|
-
|
|
688
|
+
canUndo<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Boolean}</span>
|
|
689
|
+
</h4>
|
|
788
690
|
|
|
691
|
+
|
|
692
|
+
<div class="tag-source">
|
|
693
|
+
sketchEditor/SketchEditor.js, line 572
|
|
694
|
+
</div>
|
|
695
|
+
|
|
696
|
+
</div>
|
|
789
697
|
|
|
790
698
|
|
|
699
|
+
</dt>
|
|
700
|
+
<dd>
|
|
701
|
+
|
|
702
|
+
|
|
791
703
|
<div class="description">
|
|
792
704
|
<p>草图是否可执行撤销操作<a id='canUndo'></a></p>
|
|
793
705
|
</div>
|
|
794
706
|
|
|
795
707
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
808
715
|
<dl class="details">
|
|
809
|
-
|
|
810
716
|
|
|
811
|
-
|
|
717
|
+
|
|
812
718
|
|
|
813
|
-
|
|
814
719
|
|
|
815
|
-
|
|
816
720
|
|
|
817
721
|
|
|
818
722
|
|
|
819
|
-
|
|
820
723
|
|
|
821
|
-
|
|
822
724
|
|
|
823
|
-
|
|
824
725
|
|
|
825
|
-
|
|
826
726
|
|
|
827
|
-
|
|
828
727
|
|
|
829
|
-
|
|
830
728
|
|
|
831
|
-
|
|
832
729
|
|
|
833
730
|
|
|
834
|
-
|
|
835
731
|
|
|
836
|
-
|
|
837
732
|
|
|
838
|
-
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
839
736
|
|
|
840
737
|
</dl>
|
|
841
738
|
|
|
739
|
+
|
|
740
|
+
|
|
842
741
|
|
|
742
|
+
|
|
843
743
|
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
<h5>Returns:</h5>
|
|
750
|
+
|
|
844
751
|
|
|
845
752
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
<div class='columns method-parameter'>
|
|
860
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
861
|
-
<div class="column is-10">
|
|
753
|
+
<table class="params">
|
|
754
|
+
<thead>
|
|
755
|
+
<tr>
|
|
756
|
+
|
|
757
|
+
<th>Type</th>
|
|
758
|
+
<th class="last">Description</th>
|
|
759
|
+
</tr>
|
|
760
|
+
</thead>
|
|
761
|
+
<tbody>
|
|
762
|
+
|
|
763
|
+
<tr>
|
|
862
764
|
|
|
765
|
+
<td class="type">
|
|
766
|
+
|
|
767
|
+
Boolean
|
|
768
|
+
|
|
863
769
|
|
|
770
|
+
</td>
|
|
771
|
+
<td class="description last"></td>
|
|
772
|
+
</tr>
|
|
773
|
+
|
|
774
|
+
</tbody>
|
|
775
|
+
</table>
|
|
864
776
|
|
|
865
|
-
<div class="columns">
|
|
866
777
|
|
|
867
778
|
|
|
868
|
-
<div class='column is-5 has-text-left'>
|
|
869
|
-
<label>类型: </label>
|
|
870
|
-
|
|
871
|
-
<span class="param-type">Boolean</span>
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
</div>
|
|
875
779
|
|
|
876
|
-
</
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
</div>
|
|
880
|
-
</div>
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
</div>
|
|
888
|
-
|
|
889
|
-
<div class="member">
|
|
890
|
-
|
|
780
|
+
</dd>
|
|
891
781
|
|
|
892
|
-
|
|
893
|
-
<h4 class="name" id="drawPolylineToPolygon">
|
|
894
|
-
<a class="href-link" href="#drawPolylineToPolygon">#</a>
|
|
895
782
|
|
|
896
|
-
<span class="code-name" style="font-size:30px">
|
|
897
783
|
|
|
898
|
-
|
|
784
|
+
<dt>
|
|
785
|
+
<div class="nameContainer">
|
|
786
|
+
<h4 class="name" id="drawPolylineToPolygon">
|
|
899
787
|
|
|
900
|
-
|
|
901
|
-
|
|
788
|
+
drawPolylineToPolygon<span class="signature">(snapAndReferGeometries)</span>
|
|
789
|
+
</h4>
|
|
902
790
|
|
|
791
|
+
|
|
792
|
+
<div class="tag-source">
|
|
793
|
+
sketchEditor/SketchEditor.js, line 504
|
|
794
|
+
</div>
|
|
795
|
+
|
|
796
|
+
</div>
|
|
903
797
|
|
|
904
798
|
|
|
799
|
+
</dt>
|
|
800
|
+
<dd>
|
|
801
|
+
|
|
802
|
+
|
|
905
803
|
<div class="description">
|
|
906
804
|
<p>线拓扑造区<a id='drawPolylineToPolygon'></a></p>
|
|
907
805
|
</div>
|
|
908
806
|
|
|
909
807
|
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
<h4>参数:</h4>
|
|
919
808
|
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
<table class="params">
|
|
816
|
+
<thead>
|
|
817
|
+
<tr>
|
|
818
|
+
|
|
819
|
+
<th>Name</th>
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
<th>Type</th>
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
<th class="last">Description</th>
|
|
827
|
+
</tr>
|
|
828
|
+
</thead>
|
|
829
|
+
|
|
830
|
+
<tbody>
|
|
831
|
+
|
|
832
|
+
|
|
923
833
|
<tr>
|
|
924
834
|
|
|
925
|
-
|
|
835
|
+
<td class="name"><code>snapAndReferGeometries</code></td>
|
|
926
836
|
|
|
927
|
-
|
|
928
|
-
<th>类型</th>
|
|
929
|
-
|
|
930
837
|
|
|
931
|
-
|
|
932
|
-
<th class="last">描述</th>
|
|
933
|
-
</tr>
|
|
934
|
-
</thead>
|
|
935
|
-
|
|
936
|
-
<tbody>
|
|
937
|
-
|
|
938
|
-
|
|
838
|
+
<td class="type">
|
|
939
839
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
<td class="name"><code>snapAndReferGeometries</code></td>
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
<td class="type">
|
|
946
|
-
|
|
947
|
-
|
|
840
|
+
|
|
948
841
|
<span class="param-type">Array.<Polygon></span>
|
|
949
842
|
|
|
950
843
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
844
|
+
|
|
845
|
+
</td>
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
<td class="description last">
|
|
850
|
+
|
|
851
|
+
<p>捕获参考几何对象数组</p></td>
|
|
852
|
+
</tr>
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
</tbody>
|
|
856
|
+
</table>
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
971
860
|
<dl class="details">
|
|
972
|
-
|
|
973
861
|
|
|
974
|
-
|
|
862
|
+
|
|
975
863
|
|
|
976
|
-
|
|
977
864
|
|
|
978
|
-
|
|
979
865
|
|
|
980
866
|
|
|
981
867
|
|
|
982
|
-
|
|
983
868
|
|
|
984
|
-
|
|
985
869
|
|
|
986
|
-
|
|
987
870
|
|
|
988
|
-
|
|
989
871
|
|
|
990
|
-
|
|
991
872
|
|
|
992
|
-
|
|
993
873
|
|
|
994
|
-
|
|
995
874
|
|
|
996
875
|
|
|
997
|
-
|
|
998
876
|
|
|
999
|
-
|
|
1000
877
|
|
|
1001
|
-
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
1002
881
|
|
|
1003
882
|
</dl>
|
|
1004
883
|
|
|
884
|
+
|
|
885
|
+
|
|
1005
886
|
|
|
887
|
+
|
|
1006
888
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
<h5>示例</h5>
|
|
1028
889
|
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
<h5>Example</h5>
|
|
897
|
+
|
|
1029
898
|
<p class="code-caption"><h7>二维草图线拓扑造区</h7></p>
|
|
1030
899
|
|
|
900
|
+
|
|
1031
901
|
|
|
1032
|
-
|
|
902
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
1033
903
|
const { Polygon, LineString } = zondy.geometry
|
|
1034
904
|
const { MapView } = zondy.leaflet
|
|
1035
905
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
1036
906
|
[ES6引入方式]:
|
|
1037
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
1038
|
-
import { Polygon, LineString } from "@mapgis/webclient-common"
|
|
907
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
908
|
+
import { Polygon, LineString } from "@mapgis/webclient-common" <br/>
|
|
1039
909
|
var map = new Map()
|
|
1040
910
|
var mapView = new MapView({
|
|
1041
911
|
viewId: "mapgis-2d-viewer",
|
|
@@ -1100,362 +970,321 @@ var sketchEditor = new SketchEditor({
|
|
|
1100
970
|
sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
1101
971
|
|
|
1102
972
|
|
|
1103
|
-
|
|
1104
|
-
</div>
|
|
1105
|
-
|
|
1106
|
-
<div class="member">
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
973
|
|
|
1110
|
-
|
|
1111
|
-
|
|
974
|
+
</dd>
|
|
975
|
+
|
|
1112
976
|
|
|
1113
|
-
<span class="code-name" style="font-size:30px">
|
|
1114
977
|
|
|
1115
|
-
|
|
978
|
+
<dt>
|
|
979
|
+
<div class="nameContainer">
|
|
980
|
+
<h4 class="name" id="getGeometry">
|
|
1116
981
|
|
|
1117
|
-
|
|
1118
|
-
|
|
982
|
+
getGeometry<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Geometry}</span>
|
|
983
|
+
</h4>
|
|
1119
984
|
|
|
985
|
+
|
|
986
|
+
<div class="tag-source">
|
|
987
|
+
sketchEditor/SketchEditor.js, line 331
|
|
988
|
+
</div>
|
|
989
|
+
|
|
990
|
+
</div>
|
|
1120
991
|
|
|
1121
992
|
|
|
993
|
+
</dt>
|
|
994
|
+
<dd>
|
|
995
|
+
|
|
996
|
+
|
|
1122
997
|
<div class="description">
|
|
1123
998
|
<p>获取草图几何对象<a id='getGeometry'></a></p>
|
|
1124
999
|
</div>
|
|
1125
1000
|
|
|
1126
1001
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1139
1009
|
<dl class="details">
|
|
1140
|
-
|
|
1141
1010
|
|
|
1142
|
-
|
|
1011
|
+
|
|
1143
1012
|
|
|
1144
|
-
|
|
1145
1013
|
|
|
1146
|
-
|
|
1147
1014
|
|
|
1148
1015
|
|
|
1149
1016
|
|
|
1150
|
-
|
|
1151
1017
|
|
|
1152
|
-
|
|
1153
1018
|
|
|
1154
|
-
|
|
1155
1019
|
|
|
1156
|
-
|
|
1157
1020
|
|
|
1158
|
-
|
|
1159
1021
|
|
|
1160
|
-
|
|
1161
1022
|
|
|
1162
|
-
|
|
1163
1023
|
|
|
1164
1024
|
|
|
1165
|
-
|
|
1166
1025
|
|
|
1167
|
-
|
|
1168
1026
|
|
|
1169
|
-
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1170
1030
|
|
|
1171
1031
|
</dl>
|
|
1172
1032
|
|
|
1033
|
+
|
|
1034
|
+
|
|
1173
1035
|
|
|
1036
|
+
|
|
1174
1037
|
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
<h5>Returns:</h5>
|
|
1044
|
+
|
|
1175
1045
|
|
|
1176
1046
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
<div class='columns method-parameter'>
|
|
1191
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
1192
|
-
<div class="column is-10">
|
|
1047
|
+
<table class="params">
|
|
1048
|
+
<thead>
|
|
1049
|
+
<tr>
|
|
1050
|
+
|
|
1051
|
+
<th>Type</th>
|
|
1052
|
+
<th class="last">Description</th>
|
|
1053
|
+
</tr>
|
|
1054
|
+
</thead>
|
|
1055
|
+
<tbody>
|
|
1056
|
+
|
|
1057
|
+
<tr>
|
|
1058
|
+
|
|
1059
|
+
<td class="type">
|
|
1193
1060
|
|
|
1061
|
+
Geometry
|
|
1062
|
+
|
|
1194
1063
|
|
|
1064
|
+
</td>
|
|
1065
|
+
<td class="description last"></td>
|
|
1066
|
+
</tr>
|
|
1067
|
+
|
|
1068
|
+
</tbody>
|
|
1069
|
+
</table>
|
|
1195
1070
|
|
|
1196
|
-
<div class="columns">
|
|
1197
1071
|
|
|
1198
1072
|
|
|
1199
|
-
<div class='column is-5 has-text-left'>
|
|
1200
|
-
<label>类型: </label>
|
|
1201
|
-
|
|
1202
|
-
<span class="param-type">Geometry</span>
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
</div>
|
|
1206
1073
|
|
|
1207
|
-
</
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
</div>
|
|
1211
|
-
</div>
|
|
1212
|
-
|
|
1213
|
-
|
|
1074
|
+
</dd>
|
|
1214
1075
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
</div>
|
|
1219
|
-
|
|
1220
|
-
<div class="member">
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
<h4 class="name" id="getSketchStyle">
|
|
1225
|
-
<a class="href-link" href="#getSketchStyle">#</a>
|
|
1226
1076
|
|
|
1227
|
-
<span class="code-name" style="font-size:30px">
|
|
1228
1077
|
|
|
1229
|
-
|
|
1078
|
+
<dt>
|
|
1079
|
+
<div class="nameContainer">
|
|
1080
|
+
<h4 class="name" id="getSketchStyle">
|
|
1230
1081
|
|
|
1231
|
-
|
|
1232
|
-
|
|
1082
|
+
getSketchStyle<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{SketchStyle}</span>
|
|
1083
|
+
</h4>
|
|
1233
1084
|
|
|
1085
|
+
|
|
1086
|
+
<div class="tag-source">
|
|
1087
|
+
sketchEditor/SketchEditor.js, line 323
|
|
1088
|
+
</div>
|
|
1089
|
+
|
|
1090
|
+
</div>
|
|
1234
1091
|
|
|
1235
1092
|
|
|
1093
|
+
</dt>
|
|
1094
|
+
<dd>
|
|
1095
|
+
|
|
1096
|
+
|
|
1236
1097
|
<div class="description">
|
|
1237
1098
|
<p>获取草图样式<a id='getSketchStyle'></a></p>
|
|
1238
1099
|
</div>
|
|
1239
1100
|
|
|
1240
1101
|
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1253
1109
|
<dl class="details">
|
|
1254
|
-
|
|
1255
1110
|
|
|
1256
|
-
|
|
1111
|
+
|
|
1257
1112
|
|
|
1258
|
-
|
|
1259
1113
|
|
|
1260
|
-
|
|
1261
1114
|
|
|
1262
1115
|
|
|
1263
1116
|
|
|
1264
|
-
|
|
1265
1117
|
|
|
1266
|
-
|
|
1267
1118
|
|
|
1268
|
-
|
|
1269
1119
|
|
|
1270
|
-
|
|
1271
1120
|
|
|
1272
|
-
|
|
1273
1121
|
|
|
1274
|
-
|
|
1275
1122
|
|
|
1276
|
-
|
|
1277
1123
|
|
|
1278
1124
|
|
|
1279
|
-
|
|
1280
1125
|
|
|
1281
|
-
|
|
1282
1126
|
|
|
1283
|
-
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1284
1130
|
|
|
1285
1131
|
</dl>
|
|
1286
1132
|
|
|
1133
|
+
|
|
1134
|
+
|
|
1287
1135
|
|
|
1136
|
+
|
|
1288
1137
|
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
<h5>Returns:</h5>
|
|
1144
|
+
|
|
1289
1145
|
|
|
1290
1146
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
<div class='columns method-parameter'>
|
|
1305
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
1306
|
-
<div class="column is-10">
|
|
1147
|
+
<table class="params">
|
|
1148
|
+
<thead>
|
|
1149
|
+
<tr>
|
|
1150
|
+
|
|
1151
|
+
<th>Type</th>
|
|
1152
|
+
<th class="last">Description</th>
|
|
1153
|
+
</tr>
|
|
1154
|
+
</thead>
|
|
1155
|
+
<tbody>
|
|
1156
|
+
|
|
1157
|
+
<tr>
|
|
1307
1158
|
|
|
1159
|
+
<td class="type">
|
|
1160
|
+
|
|
1161
|
+
SketchStyle
|
|
1162
|
+
|
|
1308
1163
|
|
|
1164
|
+
</td>
|
|
1165
|
+
<td class="description last"></td>
|
|
1166
|
+
</tr>
|
|
1167
|
+
|
|
1168
|
+
</tbody>
|
|
1169
|
+
</table>
|
|
1309
1170
|
|
|
1310
|
-
<div class="columns">
|
|
1311
1171
|
|
|
1312
1172
|
|
|
1313
|
-
<div class='column is-5 has-text-left'>
|
|
1314
|
-
<label>类型: </label>
|
|
1315
|
-
|
|
1316
|
-
<span class="param-type">SketchStyle</span>
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
</div>
|
|
1320
1173
|
|
|
1321
|
-
</
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
</div>
|
|
1325
|
-
</div>
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
</div>
|
|
1333
|
-
|
|
1334
|
-
<div class="member">
|
|
1174
|
+
</dd>
|
|
1335
1175
|
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
<h4 class="name" id="redo">
|
|
1339
|
-
<a class="href-link" href="#redo">#</a>
|
|
1340
1176
|
|
|
1341
|
-
<span class="code-name" style="font-size:30px">
|
|
1342
1177
|
|
|
1343
|
-
|
|
1178
|
+
<dt>
|
|
1179
|
+
<div class="nameContainer">
|
|
1180
|
+
<h4 class="name" id="redo">
|
|
1344
1181
|
|
|
1345
|
-
|
|
1346
|
-
|
|
1182
|
+
redo<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Geometry}</span>
|
|
1183
|
+
</h4>
|
|
1347
1184
|
|
|
1185
|
+
|
|
1186
|
+
<div class="tag-source">
|
|
1187
|
+
sketchEditor/SketchEditor.js, line 564
|
|
1188
|
+
</div>
|
|
1189
|
+
|
|
1190
|
+
</div>
|
|
1348
1191
|
|
|
1349
1192
|
|
|
1193
|
+
</dt>
|
|
1194
|
+
<dd>
|
|
1195
|
+
|
|
1196
|
+
|
|
1350
1197
|
<div class="description">
|
|
1351
1198
|
<p>恢复被撤销的草图<a id='redo'></a></p>
|
|
1352
1199
|
</div>
|
|
1353
1200
|
|
|
1354
1201
|
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1367
1209
|
<dl class="details">
|
|
1368
|
-
|
|
1369
1210
|
|
|
1370
|
-
|
|
1211
|
+
|
|
1371
1212
|
|
|
1372
|
-
|
|
1373
1213
|
|
|
1374
|
-
|
|
1375
1214
|
|
|
1376
1215
|
|
|
1377
1216
|
|
|
1378
|
-
|
|
1379
1217
|
|
|
1380
|
-
|
|
1381
1218
|
|
|
1382
|
-
|
|
1383
1219
|
|
|
1384
|
-
|
|
1385
1220
|
|
|
1386
|
-
|
|
1387
1221
|
|
|
1388
|
-
|
|
1389
1222
|
|
|
1390
|
-
|
|
1391
1223
|
|
|
1392
1224
|
|
|
1393
|
-
|
|
1394
1225
|
|
|
1395
|
-
|
|
1396
1226
|
|
|
1397
|
-
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1398
1230
|
|
|
1399
1231
|
</dl>
|
|
1400
1232
|
|
|
1233
|
+
|
|
1234
|
+
|
|
1401
1235
|
|
|
1236
|
+
|
|
1402
1237
|
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
<h5>Returns:</h5>
|
|
1244
|
+
|
|
1403
1245
|
|
|
1404
1246
|
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
<div class='columns method-parameter'>
|
|
1419
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
1420
|
-
<div class="column is-10">
|
|
1247
|
+
<table class="params">
|
|
1248
|
+
<thead>
|
|
1249
|
+
<tr>
|
|
1250
|
+
|
|
1251
|
+
<th>Type</th>
|
|
1252
|
+
<th class="last">Description</th>
|
|
1253
|
+
</tr>
|
|
1254
|
+
</thead>
|
|
1255
|
+
<tbody>
|
|
1256
|
+
|
|
1257
|
+
<tr>
|
|
1421
1258
|
|
|
1259
|
+
<td class="type">
|
|
1260
|
+
|
|
1261
|
+
Geometry
|
|
1262
|
+
|
|
1422
1263
|
|
|
1423
|
-
|
|
1424
|
-
<
|
|
1425
|
-
|
|
1264
|
+
</td>
|
|
1265
|
+
<td class="description last"></td>
|
|
1266
|
+
</tr>
|
|
1426
1267
|
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
<span class="param-type">Geometry</span>
|
|
1268
|
+
</tbody>
|
|
1269
|
+
</table>
|
|
1431
1270
|
|
|
1432
|
-
|
|
1433
|
-
</div>
|
|
1434
1271
|
|
|
1435
|
-
</div>
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
</div>
|
|
1439
|
-
</div>
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
<h5>示例</h5>
|
|
1447
1272
|
|
|
1273
|
+
|
|
1274
|
+
<h5>Example</h5>
|
|
1275
|
+
|
|
1448
1276
|
<p class="code-caption"><h7>二维草图几何分割</h7></p>
|
|
1449
1277
|
|
|
1278
|
+
|
|
1450
1279
|
|
|
1451
|
-
|
|
1280
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
1452
1281
|
const { Polygon, LineString } = zondy.geometry
|
|
1453
1282
|
const { SketchDataType } = zondy.enum
|
|
1454
1283
|
const { MapView } = zondy.leaflet
|
|
1455
1284
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
1456
1285
|
[ES6引入方式]:
|
|
1457
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
1458
|
-
import { Polygon, LineString, SketchDataType } from "@mapgis/webclient-common"
|
|
1286
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
1287
|
+
import { Polygon, LineString, SketchDataType } from "@mapgis/webclient-common" <br/>
|
|
1459
1288
|
var map = new Map()
|
|
1460
1289
|
var mapView = new MapView({
|
|
1461
1290
|
viewId: "mapgis-2d-viewer",
|
|
@@ -1471,382 +1300,315 @@ const geometry = sketchEditor.redo()
|
|
|
1471
1300
|
console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
1472
1301
|
|
|
1473
1302
|
|
|
1474
|
-
|
|
1475
|
-
</div>
|
|
1476
|
-
|
|
1477
|
-
<div class="member">
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
1303
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1304
|
+
</dd>
|
|
1305
|
+
|
|
1483
1306
|
|
|
1484
|
-
<span class="code-name" style="font-size:30px">
|
|
1485
1307
|
|
|
1486
|
-
|
|
1308
|
+
<dt>
|
|
1309
|
+
<div class="nameContainer">
|
|
1310
|
+
<h4 class="name" id="remove">
|
|
1487
1311
|
|
|
1488
|
-
|
|
1489
|
-
|
|
1312
|
+
remove<span class="signature">()</span>
|
|
1313
|
+
</h4>
|
|
1490
1314
|
|
|
1315
|
+
|
|
1316
|
+
<div class="tag-source">
|
|
1317
|
+
sketchEditor/SketchEditor.js, line 182
|
|
1318
|
+
</div>
|
|
1319
|
+
|
|
1320
|
+
</div>
|
|
1491
1321
|
|
|
1492
1322
|
|
|
1323
|
+
</dt>
|
|
1324
|
+
<dd>
|
|
1325
|
+
|
|
1326
|
+
|
|
1493
1327
|
<div class="description">
|
|
1494
1328
|
<p>移除当前草图<a id='remove'></a></p>
|
|
1495
1329
|
</div>
|
|
1496
1330
|
|
|
1497
1331
|
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1510
1339
|
<dl class="details">
|
|
1511
|
-
|
|
1512
1340
|
|
|
1513
|
-
|
|
1341
|
+
|
|
1514
1342
|
|
|
1515
|
-
|
|
1516
1343
|
|
|
1517
|
-
|
|
1518
1344
|
|
|
1519
1345
|
|
|
1520
1346
|
|
|
1521
|
-
|
|
1522
1347
|
|
|
1523
|
-
|
|
1524
1348
|
|
|
1525
|
-
|
|
1526
1349
|
|
|
1527
|
-
|
|
1528
1350
|
|
|
1529
|
-
|
|
1530
1351
|
|
|
1531
|
-
|
|
1532
1352
|
|
|
1533
|
-
|
|
1534
1353
|
|
|
1535
1354
|
|
|
1536
|
-
|
|
1537
1355
|
|
|
1538
|
-
|
|
1539
1356
|
|
|
1540
|
-
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1541
1360
|
|
|
1542
1361
|
</dl>
|
|
1543
1362
|
|
|
1363
|
+
|
|
1364
|
+
|
|
1544
1365
|
|
|
1366
|
+
|
|
1545
1367
|
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
</div>
|
|
1567
|
-
|
|
1568
|
-
<div class="member">
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
1368
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
</dd>
|
|
1376
|
+
|
|
1574
1377
|
|
|
1575
|
-
<span class="code-name" style="font-size:30px">
|
|
1576
1378
|
|
|
1577
|
-
|
|
1379
|
+
<dt>
|
|
1380
|
+
<div class="nameContainer">
|
|
1381
|
+
<h4 class="name" id="removeVertex">
|
|
1578
1382
|
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1383
|
+
removeVertex<span class="signature">(index)</span>
|
|
1384
|
+
</h4>
|
|
1583
1385
|
|
|
1584
|
-
|
|
1585
|
-
<
|
|
1386
|
+
|
|
1387
|
+
<div class="tag-source">
|
|
1388
|
+
sketchEditor/SketchEditor.js, line 216
|
|
1389
|
+
</div>
|
|
1390
|
+
|
|
1586
1391
|
</div>
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
1392
|
|
|
1393
|
+
|
|
1394
|
+
</dt>
|
|
1395
|
+
<dd>
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
<div class="description">
|
|
1399
|
+
<p>移除草图图形的某个顶点<a id='removeVertex'></a></p>
|
|
1400
|
+
</div>
|
|
1401
|
+
|
|
1596
1402
|
|
|
1597
|
-
<h4>参数:</h4>
|
|
1598
1403
|
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
<table class="params">
|
|
1411
|
+
<thead>
|
|
1412
|
+
<tr>
|
|
1413
|
+
|
|
1414
|
+
<th>Name</th>
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
<th>Type</th>
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
<th class="last">Description</th>
|
|
1422
|
+
</tr>
|
|
1423
|
+
</thead>
|
|
1424
|
+
|
|
1425
|
+
<tbody>
|
|
1426
|
+
|
|
1427
|
+
|
|
1602
1428
|
<tr>
|
|
1603
1429
|
|
|
1604
|
-
|
|
1430
|
+
<td class="name"><code>index</code></td>
|
|
1605
1431
|
|
|
1606
|
-
|
|
1607
|
-
<th>类型</th>
|
|
1608
|
-
|
|
1609
1432
|
|
|
1610
|
-
|
|
1611
|
-
<th class="last">描述</th>
|
|
1612
|
-
</tr>
|
|
1613
|
-
</thead>
|
|
1614
|
-
|
|
1615
|
-
<tbody>
|
|
1616
|
-
|
|
1617
|
-
|
|
1433
|
+
<td class="type">
|
|
1618
1434
|
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
<td class="name"><code>index</code></td>
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
<td class="type">
|
|
1625
|
-
|
|
1626
|
-
|
|
1435
|
+
|
|
1627
1436
|
<span class="param-type">Number</span>
|
|
1628
1437
|
|
|
1629
1438
|
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1439
|
+
|
|
1440
|
+
</td>
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
<td class="description last">
|
|
1445
|
+
|
|
1446
|
+
<p>需移除的顶点的索引值,索引值从0开始</p></td>
|
|
1447
|
+
</tr>
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
</tbody>
|
|
1451
|
+
</table>
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1650
1455
|
<dl class="details">
|
|
1651
|
-
|
|
1652
1456
|
|
|
1653
|
-
|
|
1457
|
+
|
|
1654
1458
|
|
|
1655
|
-
|
|
1656
1459
|
|
|
1657
|
-
|
|
1658
1460
|
|
|
1659
1461
|
|
|
1660
1462
|
|
|
1661
|
-
|
|
1662
1463
|
|
|
1663
|
-
|
|
1664
1464
|
|
|
1665
|
-
|
|
1666
1465
|
|
|
1667
|
-
|
|
1668
1466
|
|
|
1669
|
-
|
|
1670
1467
|
|
|
1671
|
-
|
|
1672
1468
|
|
|
1673
|
-
|
|
1674
1469
|
|
|
1675
1470
|
|
|
1676
|
-
|
|
1677
1471
|
|
|
1678
|
-
|
|
1679
1472
|
|
|
1680
|
-
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1681
1476
|
|
|
1682
1477
|
</dl>
|
|
1683
1478
|
|
|
1479
|
+
|
|
1480
|
+
|
|
1684
1481
|
|
|
1482
|
+
|
|
1685
1483
|
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
</div>
|
|
1707
|
-
|
|
1708
|
-
<div class="member">
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
1484
|
|
|
1712
|
-
|
|
1713
|
-
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
</dd>
|
|
1492
|
+
|
|
1714
1493
|
|
|
1715
|
-
<span class="code-name" style="font-size:30px">
|
|
1716
1494
|
|
|
1717
|
-
|
|
1495
|
+
<dt>
|
|
1496
|
+
<div class="nameContainer">
|
|
1497
|
+
<h4 class="name" id="setSketchStyle">
|
|
1718
1498
|
|
|
1719
|
-
|
|
1720
|
-
|
|
1499
|
+
setSketchStyle<span class="signature">(sketchStyle)</span>
|
|
1500
|
+
</h4>
|
|
1721
1501
|
|
|
1502
|
+
|
|
1503
|
+
<div class="tag-source">
|
|
1504
|
+
sketchEditor/SketchEditor.js, line 315
|
|
1505
|
+
</div>
|
|
1506
|
+
|
|
1507
|
+
</div>
|
|
1722
1508
|
|
|
1723
1509
|
|
|
1510
|
+
</dt>
|
|
1511
|
+
<dd>
|
|
1512
|
+
|
|
1513
|
+
|
|
1724
1514
|
<div class="description">
|
|
1725
1515
|
<p>设置草图样式<a id='setSketchStyle'></a></p>
|
|
1726
1516
|
</div>
|
|
1727
1517
|
|
|
1728
1518
|
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
<h4>参数:</h4>
|
|
1738
1519
|
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
<table class="params">
|
|
1527
|
+
<thead>
|
|
1528
|
+
<tr>
|
|
1529
|
+
|
|
1530
|
+
<th>Name</th>
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
<th>Type</th>
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
<th class="last">Description</th>
|
|
1538
|
+
</tr>
|
|
1539
|
+
</thead>
|
|
1540
|
+
|
|
1541
|
+
<tbody>
|
|
1542
|
+
|
|
1543
|
+
|
|
1742
1544
|
<tr>
|
|
1743
1545
|
|
|
1744
|
-
|
|
1546
|
+
<td class="name"><code>sketchStyle</code></td>
|
|
1745
1547
|
|
|
1746
|
-
|
|
1747
|
-
<th>类型</th>
|
|
1748
|
-
|
|
1749
1548
|
|
|
1750
|
-
|
|
1751
|
-
<th class="last">描述</th>
|
|
1752
|
-
</tr>
|
|
1753
|
-
</thead>
|
|
1754
|
-
|
|
1755
|
-
<tbody>
|
|
1756
|
-
|
|
1757
|
-
|
|
1549
|
+
<td class="type">
|
|
1758
1550
|
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
<td class="name"><code>sketchStyle</code></td>
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
<td class="type">
|
|
1765
|
-
|
|
1766
|
-
|
|
1551
|
+
|
|
1767
1552
|
<span class="param-type">SketchStyle</span>
|
|
1768
1553
|
|
|
1769
1554
|
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1555
|
+
|
|
1556
|
+
</td>
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
<td class="description last">
|
|
1561
|
+
|
|
1562
|
+
</td>
|
|
1563
|
+
</tr>
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
</tbody>
|
|
1567
|
+
</table>
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
|
|
1790
1571
|
<dl class="details">
|
|
1791
|
-
|
|
1792
1572
|
|
|
1793
|
-
|
|
1573
|
+
|
|
1794
1574
|
|
|
1795
|
-
|
|
1796
1575
|
|
|
1797
|
-
|
|
1798
1576
|
|
|
1799
1577
|
|
|
1800
1578
|
|
|
1801
|
-
|
|
1802
1579
|
|
|
1803
|
-
|
|
1804
1580
|
|
|
1805
|
-
|
|
1806
1581
|
|
|
1807
|
-
|
|
1808
1582
|
|
|
1809
|
-
|
|
1810
1583
|
|
|
1811
|
-
|
|
1812
1584
|
|
|
1813
|
-
|
|
1814
1585
|
|
|
1815
1586
|
|
|
1816
|
-
|
|
1817
1587
|
|
|
1818
|
-
|
|
1819
1588
|
|
|
1820
|
-
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
|
|
1821
1592
|
|
|
1822
1593
|
</dl>
|
|
1823
1594
|
|
|
1595
|
+
|
|
1596
|
+
|
|
1824
1597
|
|
|
1598
|
+
|
|
1825
1599
|
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
<h5>示例</h5>
|
|
1847
1600
|
|
|
1848
1601
|
|
|
1849
|
-
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
<h5>Example</h5>
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
1850
1612
|
const { SimpleMarkerSymbol, SimpleFillSymbol, SimpleLineSymbol } = zondy.Symbol
|
|
1851
1613
|
const { Map, Color } = zondy
|
|
1852
1614
|
const { MapView } = zondy.leaflet
|
|
@@ -1855,7 +1617,7 @@ const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
|
1855
1617
|
const { SketchDataType } = zondy.Enum
|
|
1856
1618
|
// ES6引入方式
|
|
1857
1619
|
import { Map, SimpleMarkerSymbol, SimpleFillSymbol, SimpleLineSymbol, Color, SketchStyle, SketchDataType } from "@mapgis/webclient-common"
|
|
1858
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
1620
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
1859
1621
|
var map = new Map()
|
|
1860
1622
|
var mapView = new MapView({
|
|
1861
1623
|
viewId: "mapgis-2d-viewer",
|
|
@@ -1930,211 +1692,191 @@ sketchEditor.setSketchStyle(sketchStyle)
|
|
|
1930
1692
|
sketchEditor.start(SketchDataType.polygon)</code></pre>
|
|
1931
1693
|
|
|
1932
1694
|
|
|
1933
|
-
|
|
1934
|
-
</div>
|
|
1935
|
-
|
|
1936
|
-
<div class="member">
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
1695
|
|
|
1940
|
-
|
|
1941
|
-
|
|
1696
|
+
</dd>
|
|
1697
|
+
|
|
1942
1698
|
|
|
1943
|
-
<span class="code-name" style="font-size:30px">
|
|
1944
1699
|
|
|
1945
|
-
|
|
1700
|
+
<dt>
|
|
1701
|
+
<div class="nameContainer">
|
|
1702
|
+
<h4 class="name" id="split">
|
|
1946
1703
|
|
|
1947
|
-
|
|
1948
|
-
|
|
1704
|
+
split<span class="signature">(target, splitPolyline)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<Polygon>}</span>
|
|
1705
|
+
</h4>
|
|
1949
1706
|
|
|
1707
|
+
|
|
1708
|
+
<div class="tag-source">
|
|
1709
|
+
sketchEditor/SketchEditor.js, line 426
|
|
1710
|
+
</div>
|
|
1711
|
+
|
|
1712
|
+
</div>
|
|
1950
1713
|
|
|
1951
1714
|
|
|
1715
|
+
</dt>
|
|
1716
|
+
<dd>
|
|
1717
|
+
|
|
1718
|
+
|
|
1952
1719
|
<div class="description">
|
|
1953
1720
|
<p>分割草图对象或区几何对象<a id='split'></a></p>
|
|
1954
1721
|
</div>
|
|
1955
1722
|
|
|
1956
1723
|
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
<h4>参数:</h4>
|
|
1966
1724
|
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
<table class="params">
|
|
1732
|
+
<thead>
|
|
1733
|
+
<tr>
|
|
1734
|
+
|
|
1735
|
+
<th>Name</th>
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
<th>Type</th>
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
<th class="last">Description</th>
|
|
1743
|
+
</tr>
|
|
1744
|
+
</thead>
|
|
1745
|
+
|
|
1746
|
+
<tbody>
|
|
1747
|
+
|
|
1748
|
+
|
|
1970
1749
|
<tr>
|
|
1971
1750
|
|
|
1972
|
-
|
|
1751
|
+
<td class="name"><code>target</code></td>
|
|
1973
1752
|
|
|
1974
|
-
|
|
1975
|
-
<th>类型</th>
|
|
1976
|
-
|
|
1977
1753
|
|
|
1978
|
-
|
|
1979
|
-
<th class="last">描述</th>
|
|
1980
|
-
</tr>
|
|
1981
|
-
</thead>
|
|
1982
|
-
|
|
1983
|
-
<tbody>
|
|
1984
|
-
|
|
1985
|
-
|
|
1754
|
+
<td class="type">
|
|
1986
1755
|
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
<td class="name"><code>target</code></td>
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
<td class="type">
|
|
1993
|
-
|
|
1994
|
-
|
|
1756
|
+
|
|
1995
1757
|
<span class="param-type">Polygon</span>
|
|
1996
|
-
|
|
|
1997
|
-
|
|
1998
|
-
<span class="param-type"><a href="SketchEditor.html">SketchEditor</a></span>
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
</td>
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
<td class="description last"><p>被分割的几何/草图对象</p></td>
|
|
2007
|
-
</tr>
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
<tr class="deep-level-0">
|
|
2015
|
-
|
|
2016
|
-
<td class="name"><code>splitPolyline</code></td>
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
<td class="type">
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
<span class="param-type">Polyline</span>
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
</td>
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
<td class="description last"><p>线几何对象</p></td>
|
|
2031
|
-
</tr>
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
</tbody>
|
|
2037
|
-
</table>
|
|
2038
|
-
</div>
|
|
2039
|
-
|
|
1758
|
+
|
|
|
2040
1759
|
|
|
1760
|
+
<span class="param-type"><a href="SketchEditor.html">SketchEditor</a></span>
|
|
2041
1761
|
|
|
2042
1762
|
|
|
1763
|
+
|
|
1764
|
+
</td>
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
<td class="description last">
|
|
1769
|
+
|
|
1770
|
+
<p>被分割的几何/草图对象</p></td>
|
|
1771
|
+
</tr>
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
<tr>
|
|
1776
|
+
|
|
1777
|
+
<td class="name"><code>splitPolyline</code></td>
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
<td class="type">
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
<span class="param-type">Polyline</span>
|
|
2043
1784
|
|
|
2044
1785
|
|
|
1786
|
+
|
|
1787
|
+
</td>
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
<td class="description last">
|
|
1792
|
+
|
|
1793
|
+
<p>线几何对象</p></td>
|
|
1794
|
+
</tr>
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
</tbody>
|
|
1798
|
+
</table>
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
|
|
2045
1802
|
<dl class="details">
|
|
2046
|
-
|
|
2047
1803
|
|
|
2048
|
-
|
|
1804
|
+
|
|
2049
1805
|
|
|
2050
|
-
|
|
2051
1806
|
|
|
2052
|
-
|
|
2053
1807
|
|
|
2054
1808
|
|
|
2055
1809
|
|
|
2056
|
-
|
|
2057
1810
|
|
|
2058
|
-
|
|
2059
1811
|
|
|
2060
|
-
|
|
2061
1812
|
|
|
2062
|
-
|
|
2063
1813
|
|
|
2064
|
-
|
|
2065
1814
|
|
|
2066
|
-
|
|
2067
1815
|
|
|
2068
|
-
|
|
2069
1816
|
|
|
2070
1817
|
|
|
2071
|
-
|
|
2072
1818
|
|
|
2073
|
-
|
|
2074
1819
|
|
|
2075
|
-
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
|
|
2076
1823
|
|
|
2077
1824
|
</dl>
|
|
2078
1825
|
|
|
1826
|
+
|
|
1827
|
+
|
|
2079
1828
|
|
|
1829
|
+
|
|
2080
1830
|
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
<h5>Returns:</h5>
|
|
1837
|
+
|
|
2081
1838
|
|
|
2082
1839
|
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
<div class='columns method-parameter'>
|
|
2097
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
2098
|
-
<div class="column is-10">
|
|
1840
|
+
<table class="params">
|
|
1841
|
+
<thead>
|
|
1842
|
+
<tr>
|
|
1843
|
+
|
|
1844
|
+
<th>Type</th>
|
|
1845
|
+
<th class="last">Description</th>
|
|
1846
|
+
</tr>
|
|
1847
|
+
</thead>
|
|
1848
|
+
<tbody>
|
|
1849
|
+
|
|
1850
|
+
<tr>
|
|
1851
|
+
|
|
1852
|
+
<td class="type">
|
|
2099
1853
|
|
|
1854
|
+
Array.<Polygon>
|
|
1855
|
+
|
|
2100
1856
|
|
|
1857
|
+
</td>
|
|
1858
|
+
<td class="description last">分割后的几何对象</td>
|
|
1859
|
+
</tr>
|
|
1860
|
+
|
|
1861
|
+
</tbody>
|
|
1862
|
+
</table>
|
|
2101
1863
|
|
|
2102
|
-
<div class="columns">
|
|
2103
1864
|
|
|
2104
|
-
<div class='param-desc column is-7'><p>分割后的几何对象</p></div>
|
|
2105
1865
|
|
|
2106
1866
|
|
|
2107
|
-
|
|
2108
|
-
<label>类型: </label>
|
|
1867
|
+
<h5>Example</h5>
|
|
2109
1868
|
|
|
2110
|
-
<span class="param-type">Array.<Polygon></span>
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
</div>
|
|
2114
|
-
|
|
2115
|
-
</div>
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
</div>
|
|
2119
|
-
</div>
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
<h5>示例</h5>
|
|
2127
|
-
|
|
2128
1869
|
<p class="code-caption"><h7>二维草图几何分割</h7></p>
|
|
2129
1870
|
|
|
1871
|
+
|
|
2130
1872
|
|
|
2131
|
-
|
|
1873
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
2132
1874
|
const { Polygon, LineString } = zondy.geometry
|
|
2133
1875
|
const { MapView } = zondy.leaflet
|
|
2134
1876
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
2135
1877
|
[ES6引入方式]:
|
|
2136
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
2137
|
-
import { Polygon, LineString } from "@mapgis/webclient-common"
|
|
1878
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
1879
|
+
import { Polygon, LineString } from "@mapgis/webclient-common" <br/>
|
|
2138
1880
|
var map = new Map()
|
|
2139
1881
|
var mapView = new MapView({
|
|
2140
1882
|
viewId: "mapgis-2d-viewer",
|
|
@@ -2164,177 +1906,153 @@ const polyline = new LineString({
|
|
|
2164
1906
|
const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
2165
1907
|
|
|
2166
1908
|
|
|
2167
|
-
|
|
2168
|
-
</div>
|
|
2169
|
-
|
|
2170
|
-
<div class="member">
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
1909
|
|
|
2174
|
-
|
|
2175
|
-
|
|
1910
|
+
</dd>
|
|
1911
|
+
|
|
2176
1912
|
|
|
2177
|
-
<span class="code-name" style="font-size:30px">
|
|
2178
1913
|
|
|
2179
|
-
|
|
1914
|
+
<dt>
|
|
1915
|
+
<div class="nameContainer">
|
|
1916
|
+
<h4 class="name" id="start">
|
|
2180
1917
|
|
|
2181
|
-
|
|
2182
|
-
|
|
1918
|
+
start<span class="signature">(dataType, extensionOptions)</span>
|
|
1919
|
+
</h4>
|
|
2183
1920
|
|
|
1921
|
+
|
|
1922
|
+
<div class="tag-source">
|
|
1923
|
+
sketchEditor/SketchEditor.js, line 128
|
|
1924
|
+
</div>
|
|
1925
|
+
|
|
1926
|
+
</div>
|
|
2184
1927
|
|
|
2185
1928
|
|
|
1929
|
+
</dt>
|
|
1930
|
+
<dd>
|
|
1931
|
+
|
|
1932
|
+
|
|
2186
1933
|
<div class="description">
|
|
2187
1934
|
<p>开始绘制草图<a id='start'></a></p>
|
|
2188
1935
|
</div>
|
|
2189
1936
|
|
|
2190
1937
|
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
<h4>参数:</h4>
|
|
2200
1938
|
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
<table class="params">
|
|
1946
|
+
<thead>
|
|
1947
|
+
<tr>
|
|
1948
|
+
|
|
1949
|
+
<th>Name</th>
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
<th>Type</th>
|
|
1953
|
+
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
<th class="last">Description</th>
|
|
1957
|
+
</tr>
|
|
1958
|
+
</thead>
|
|
1959
|
+
|
|
1960
|
+
<tbody>
|
|
1961
|
+
|
|
1962
|
+
|
|
2204
1963
|
<tr>
|
|
2205
1964
|
|
|
2206
|
-
|
|
1965
|
+
<td class="name"><code>dataType</code></td>
|
|
2207
1966
|
|
|
2208
|
-
|
|
2209
|
-
<th>类型</th>
|
|
2210
|
-
|
|
2211
1967
|
|
|
2212
|
-
|
|
2213
|
-
<th class="last">描述</th>
|
|
2214
|
-
</tr>
|
|
2215
|
-
</thead>
|
|
2216
|
-
|
|
2217
|
-
<tbody>
|
|
2218
|
-
|
|
2219
|
-
|
|
1968
|
+
<td class="type">
|
|
2220
1969
|
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
<td class="name"><code>dataType</code></td>
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
<td class="type">
|
|
2227
|
-
|
|
2228
|
-
|
|
1970
|
+
|
|
2229
1971
|
<span class="param-type">SketchDataType</span>
|
|
2230
1972
|
|
|
2231
1973
|
|
|
2232
|
-
|
|
2233
|
-
</td>
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
<td class="description last"><p>草图编辑类型</p></td>
|
|
2238
|
-
</tr>
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
1974
|
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
1975
|
+
</td>
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
<td class="description last">
|
|
1980
|
+
|
|
1981
|
+
<p>草图编辑类型</p></td>
|
|
1982
|
+
</tr>
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
<tr>
|
|
1987
|
+
|
|
1988
|
+
<td class="name"><code>extensionOptions</code></td>
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
<td class="type">
|
|
1992
|
+
|
|
1993
|
+
|
|
2253
1994
|
<span class="param-type">Object</span>
|
|
2254
1995
|
|
|
2255
1996
|
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
1997
|
+
|
|
1998
|
+
</td>
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
<td class="description last">
|
|
2003
|
+
|
|
2004
|
+
<p>草图编辑的扩展属性,可以通过该属性传入草图编辑额外需要的参数</p></td>
|
|
2005
|
+
</tr>
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
</tbody>
|
|
2009
|
+
</table>
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
|
|
2276
2013
|
<dl class="details">
|
|
2277
|
-
|
|
2278
2014
|
|
|
2279
|
-
|
|
2015
|
+
|
|
2280
2016
|
|
|
2281
|
-
|
|
2282
2017
|
|
|
2283
|
-
|
|
2284
2018
|
|
|
2285
2019
|
|
|
2286
2020
|
|
|
2287
|
-
|
|
2288
2021
|
|
|
2289
|
-
|
|
2290
2022
|
|
|
2291
|
-
|
|
2292
2023
|
|
|
2293
|
-
|
|
2294
2024
|
|
|
2295
|
-
|
|
2296
2025
|
|
|
2297
|
-
|
|
2298
2026
|
|
|
2299
|
-
|
|
2300
2027
|
|
|
2301
2028
|
|
|
2302
|
-
|
|
2303
2029
|
|
|
2304
|
-
|
|
2305
2030
|
|
|
2306
|
-
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
|
|
2307
2034
|
|
|
2308
2035
|
</dl>
|
|
2309
2036
|
|
|
2037
|
+
|
|
2038
|
+
|
|
2310
2039
|
|
|
2040
|
+
|
|
2311
2041
|
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
<h5>示例</h5>
|
|
2333
2042
|
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
<h5>Example</h5>
|
|
2050
|
+
|
|
2334
2051
|
<p class="code-caption"><h7>初始化一个二维场景草图编辑类</h7></p>
|
|
2335
2052
|
|
|
2053
|
+
|
|
2336
2054
|
|
|
2337
|
-
|
|
2055
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
2338
2056
|
const { Color } = zondy
|
|
2339
2057
|
const { SketchDataType } = zondy.enum
|
|
2340
2058
|
const { SimpleMarkerSymbol } = zondy.symbol
|
|
@@ -2342,8 +2060,8 @@ const { SketchStyle } = zondy.tool.sketch
|
|
|
2342
2060
|
const { MapView } = zondy.leaflet
|
|
2343
2061
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
2344
2062
|
[ES6引入方式]:
|
|
2345
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
2346
|
-
import { SketchStyle, SimpleMarkerSymbol, Color, SketchDataType} from "@mapgis/webclient-common"
|
|
2063
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
2064
|
+
import { SketchStyle, SimpleMarkerSymbol, Color, SketchDataType} from "@mapgis/webclient-common" <br/>
|
|
2347
2065
|
var map = new Map()
|
|
2348
2066
|
var mapView = new MapView({
|
|
2349
2067
|
viewId: "mapgis-2d-viewer",
|
|
@@ -2368,153 +2086,130 @@ sketchEditor.start(SketchDataType.polyline) // 绘制线
|
|
|
2368
2086
|
sketchEditor.start(SketchDataType.polygon) // 绘制区</code></pre>
|
|
2369
2087
|
|
|
2370
2088
|
|
|
2371
|
-
|
|
2372
|
-
</div>
|
|
2373
|
-
|
|
2374
|
-
<div class="member">
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
2089
|
|
|
2378
|
-
|
|
2379
|
-
|
|
2090
|
+
</dd>
|
|
2091
|
+
|
|
2380
2092
|
|
|
2381
|
-
<span class="code-name" style="font-size:30px">
|
|
2382
2093
|
|
|
2383
|
-
|
|
2094
|
+
<dt>
|
|
2095
|
+
<div class="nameContainer">
|
|
2096
|
+
<h4 class="name" id="startCustomDrawTool">
|
|
2384
2097
|
|
|
2385
|
-
|
|
2386
|
-
|
|
2098
|
+
startCustomDrawTool<span class="signature">(dataType)</span>
|
|
2099
|
+
</h4>
|
|
2387
2100
|
|
|
2101
|
+
|
|
2102
|
+
<div class="tag-source">
|
|
2103
|
+
sketchEditor/SketchEditor.js, line 168
|
|
2104
|
+
</div>
|
|
2105
|
+
|
|
2106
|
+
</div>
|
|
2388
2107
|
|
|
2389
2108
|
|
|
2109
|
+
</dt>
|
|
2110
|
+
<dd>
|
|
2111
|
+
|
|
2112
|
+
|
|
2390
2113
|
<div class="description">
|
|
2391
2114
|
<p>开始绘制草图<a id='start'></a></p>
|
|
2392
2115
|
</div>
|
|
2393
2116
|
|
|
2394
2117
|
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
<h4>参数:</h4>
|
|
2404
|
-
|
|
2405
|
-
<div class="table-container">
|
|
2406
|
-
<table class="params table">
|
|
2407
|
-
<thead>
|
|
2408
|
-
<tr>
|
|
2409
|
-
|
|
2410
|
-
<th>名称</th>
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
<th>类型</th>
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
<th class="last">描述</th>
|
|
2418
|
-
</tr>
|
|
2419
|
-
</thead>
|
|
2420
|
-
|
|
2421
|
-
<tbody>
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
<tr class="deep-level-0">
|
|
2426
|
-
|
|
2427
|
-
<td class="name"><code>dataType</code></td>
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
<td class="type">
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
<span class="param-type">SketchDataType</span>
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
</td>
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
<td class="description last"><p>草图编辑类型</p></td>
|
|
2442
|
-
</tr>
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2446
2123
|
|
|
2447
|
-
</tbody>
|
|
2448
|
-
</table>
|
|
2449
|
-
</div>
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
2124
|
|
|
2125
|
+
<table class="params">
|
|
2126
|
+
<thead>
|
|
2127
|
+
<tr>
|
|
2128
|
+
|
|
2129
|
+
<th>Name</th>
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
<th>Type</th>
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
<th class="last">Description</th>
|
|
2137
|
+
</tr>
|
|
2138
|
+
</thead>
|
|
2139
|
+
|
|
2140
|
+
<tbody>
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
<tr>
|
|
2144
|
+
|
|
2145
|
+
<td class="name"><code>dataType</code></td>
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
<td class="type">
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
<span class="param-type">SketchDataType</span>
|
|
2454
2152
|
|
|
2455
2153
|
|
|
2154
|
+
|
|
2155
|
+
</td>
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
<td class="description last">
|
|
2160
|
+
|
|
2161
|
+
<p>草图编辑类型</p></td>
|
|
2162
|
+
</tr>
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
</tbody>
|
|
2166
|
+
</table>
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2456
2170
|
<dl class="details">
|
|
2457
|
-
|
|
2458
2171
|
|
|
2459
|
-
|
|
2172
|
+
|
|
2460
2173
|
|
|
2461
|
-
|
|
2462
2174
|
|
|
2463
|
-
|
|
2464
2175
|
|
|
2465
2176
|
|
|
2466
2177
|
|
|
2467
|
-
|
|
2468
2178
|
|
|
2469
|
-
|
|
2470
2179
|
|
|
2471
|
-
|
|
2472
2180
|
|
|
2473
|
-
|
|
2474
2181
|
|
|
2475
|
-
|
|
2476
2182
|
|
|
2477
|
-
|
|
2478
2183
|
|
|
2479
|
-
|
|
2480
2184
|
|
|
2481
2185
|
|
|
2482
|
-
|
|
2483
2186
|
|
|
2484
|
-
|
|
2485
2187
|
|
|
2486
|
-
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
|
|
2487
2191
|
|
|
2488
2192
|
</dl>
|
|
2489
2193
|
|
|
2194
|
+
|
|
2195
|
+
|
|
2490
2196
|
|
|
2197
|
+
|
|
2491
2198
|
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
<h5>示例</h5>
|
|
2513
2199
|
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
|
|
2206
|
+
<h5>Example</h5>
|
|
2207
|
+
|
|
2514
2208
|
<p class="code-caption"><h7>初始化一个二维场景草图编辑类</h7></p>
|
|
2515
2209
|
|
|
2210
|
+
|
|
2516
2211
|
|
|
2517
|
-
|
|
2212
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
2518
2213
|
const { Color } = zondy
|
|
2519
2214
|
const { SketchDataType } = zondy.enum
|
|
2520
2215
|
const { SimpleMarkerSymbol } = zondy.symbol
|
|
@@ -2522,9 +2217,9 @@ const { SketchStyle } = zondy.tool.sketch
|
|
|
2522
2217
|
const { MapView } = zondy.leaflet
|
|
2523
2218
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
2524
2219
|
[ES6引入方式]:
|
|
2525
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
2526
|
-
import { SketchStyle, SimpleMarkerSymbol, Color, SketchDataType} from "@mapgis/webclient-common"
|
|
2527
|
-
import SketchEllipseDrawTool from "./SketchEllipseDrawTool"
|
|
2220
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
2221
|
+
import { SketchStyle, SimpleMarkerSymbol, Color, SketchDataType} from "@mapgis/webclient-common" <br/>
|
|
2222
|
+
import SketchEllipseDrawTool from "./SketchEllipseDrawTool" <br/>
|
|
2528
2223
|
var map = new Map()
|
|
2529
2224
|
var mapView = new MapView({
|
|
2530
2225
|
viewId: "mapgis-2d-viewer",
|
|
@@ -2547,225 +2242,192 @@ var sketchEditor = new SketchEditor({
|
|
|
2547
2242
|
sketchEditor.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") // 绘制椭圆</code></pre>
|
|
2548
2243
|
|
|
2549
2244
|
|
|
2550
|
-
|
|
2551
|
-
</div>
|
|
2552
|
-
|
|
2553
|
-
<div class="member">
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
2245
|
|
|
2557
|
-
|
|
2558
|
-
|
|
2246
|
+
</dd>
|
|
2247
|
+
|
|
2559
2248
|
|
|
2560
|
-
<span class="code-name" style="font-size:30px">
|
|
2561
2249
|
|
|
2562
|
-
|
|
2250
|
+
<dt>
|
|
2251
|
+
<div class="nameContainer">
|
|
2252
|
+
<h4 class="name" id="stop">
|
|
2563
2253
|
|
|
2564
|
-
|
|
2565
|
-
|
|
2254
|
+
stop<span class="signature">()</span>
|
|
2255
|
+
</h4>
|
|
2566
2256
|
|
|
2257
|
+
|
|
2258
|
+
<div class="tag-source">
|
|
2259
|
+
sketchEditor/SketchEditor.js, line 175
|
|
2260
|
+
</div>
|
|
2261
|
+
|
|
2262
|
+
</div>
|
|
2567
2263
|
|
|
2568
2264
|
|
|
2265
|
+
</dt>
|
|
2266
|
+
<dd>
|
|
2267
|
+
|
|
2268
|
+
|
|
2569
2269
|
<div class="description">
|
|
2570
2270
|
<p>停止绘制<a id='stop'></a></p>
|
|
2571
2271
|
</div>
|
|
2572
2272
|
|
|
2573
2273
|
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
|
|
2586
2281
|
<dl class="details">
|
|
2587
|
-
|
|
2588
2282
|
|
|
2589
|
-
|
|
2283
|
+
|
|
2590
2284
|
|
|
2591
|
-
|
|
2592
2285
|
|
|
2593
|
-
|
|
2594
2286
|
|
|
2595
2287
|
|
|
2596
2288
|
|
|
2597
|
-
|
|
2598
2289
|
|
|
2599
|
-
|
|
2600
2290
|
|
|
2601
|
-
|
|
2602
2291
|
|
|
2603
|
-
|
|
2604
2292
|
|
|
2605
|
-
|
|
2606
2293
|
|
|
2607
|
-
|
|
2608
2294
|
|
|
2609
|
-
|
|
2610
2295
|
|
|
2611
2296
|
|
|
2612
|
-
|
|
2613
2297
|
|
|
2614
|
-
|
|
2615
2298
|
|
|
2616
|
-
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
|
|
2617
2302
|
|
|
2618
2303
|
</dl>
|
|
2619
2304
|
|
|
2305
|
+
|
|
2306
|
+
|
|
2620
2307
|
|
|
2308
|
+
|
|
2621
2309
|
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
</div>
|
|
2643
|
-
|
|
2644
|
-
<div class="member">
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
2310
|
|
|
2648
|
-
|
|
2649
|
-
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
</dd>
|
|
2318
|
+
|
|
2650
2319
|
|
|
2651
|
-
<span class="code-name" style="font-size:30px">
|
|
2652
2320
|
|
|
2653
|
-
|
|
2321
|
+
<dt>
|
|
2322
|
+
<div class="nameContainer">
|
|
2323
|
+
<h4 class="name" id="undo">
|
|
2654
2324
|
|
|
2655
|
-
|
|
2656
|
-
|
|
2325
|
+
undo<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Geometry}</span>
|
|
2326
|
+
</h4>
|
|
2657
2327
|
|
|
2328
|
+
|
|
2329
|
+
<div class="tag-source">
|
|
2330
|
+
sketchEditor/SketchEditor.js, line 534
|
|
2331
|
+
</div>
|
|
2332
|
+
|
|
2333
|
+
</div>
|
|
2658
2334
|
|
|
2659
2335
|
|
|
2336
|
+
</dt>
|
|
2337
|
+
<dd>
|
|
2338
|
+
|
|
2339
|
+
|
|
2660
2340
|
<div class="description">
|
|
2661
2341
|
<p>撤销当前编辑操作<a id='undo'></a></p>
|
|
2662
2342
|
</div>
|
|
2663
2343
|
|
|
2664
2344
|
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2677
2352
|
<dl class="details">
|
|
2678
|
-
|
|
2679
2353
|
|
|
2680
|
-
|
|
2354
|
+
|
|
2681
2355
|
|
|
2682
|
-
|
|
2683
2356
|
|
|
2684
|
-
|
|
2685
2357
|
|
|
2686
2358
|
|
|
2687
2359
|
|
|
2688
|
-
|
|
2689
2360
|
|
|
2690
|
-
|
|
2691
2361
|
|
|
2692
|
-
|
|
2693
2362
|
|
|
2694
|
-
|
|
2695
2363
|
|
|
2696
|
-
|
|
2697
2364
|
|
|
2698
|
-
|
|
2699
2365
|
|
|
2700
|
-
|
|
2701
2366
|
|
|
2702
2367
|
|
|
2703
|
-
|
|
2704
2368
|
|
|
2705
|
-
|
|
2706
2369
|
|
|
2707
|
-
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
|
|
2708
2373
|
|
|
2709
2374
|
</dl>
|
|
2710
2375
|
|
|
2376
|
+
|
|
2377
|
+
|
|
2711
2378
|
|
|
2379
|
+
|
|
2712
2380
|
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
|
|
2386
|
+
<h5>Returns:</h5>
|
|
2387
|
+
|
|
2713
2388
|
|
|
2714
2389
|
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
<div class='columns method-parameter'>
|
|
2729
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
2730
|
-
<div class="column is-10">
|
|
2390
|
+
<table class="params">
|
|
2391
|
+
<thead>
|
|
2392
|
+
<tr>
|
|
2393
|
+
|
|
2394
|
+
<th>Type</th>
|
|
2395
|
+
<th class="last">Description</th>
|
|
2396
|
+
</tr>
|
|
2397
|
+
</thead>
|
|
2398
|
+
<tbody>
|
|
2399
|
+
|
|
2400
|
+
<tr>
|
|
2401
|
+
|
|
2402
|
+
<td class="type">
|
|
2731
2403
|
|
|
2404
|
+
Geometry
|
|
2405
|
+
|
|
2732
2406
|
|
|
2733
|
-
|
|
2734
|
-
<
|
|
2735
|
-
|
|
2407
|
+
</td>
|
|
2408
|
+
<td class="description last"></td>
|
|
2409
|
+
</tr>
|
|
2736
2410
|
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
<span class="param-type">Geometry</span>
|
|
2741
|
-
|
|
2411
|
+
</tbody>
|
|
2412
|
+
</table>
|
|
2742
2413
|
|
|
2743
|
-
</div>
|
|
2744
2414
|
|
|
2745
|
-
</div>
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
</div>
|
|
2749
|
-
</div>
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
<h5>示例</h5>
|
|
2757
2415
|
|
|
2416
|
+
|
|
2417
|
+
<h5>Example</h5>
|
|
2418
|
+
|
|
2758
2419
|
<p class="code-caption"><h7>二维草图几何分割</h7></p>
|
|
2759
2420
|
|
|
2421
|
+
|
|
2760
2422
|
|
|
2761
|
-
|
|
2423
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
2762
2424
|
const { Polygon, LineString } = zondy.geometry
|
|
2763
2425
|
const { MapView } = zondy.leaflet
|
|
2764
2426
|
const { SketchDataType } = zondy.enum
|
|
2765
2427
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
2766
2428
|
[ES6引入方式]:
|
|
2767
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
2768
|
-
import { Polygon, LineString, SketchDataType } from "@mapgis/webclient-common"
|
|
2429
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
2430
|
+
import { Polygon, LineString, SketchDataType } from "@mapgis/webclient-common" <br/>
|
|
2769
2431
|
var map = new Map()
|
|
2770
2432
|
var mapView = new MapView({
|
|
2771
2433
|
viewId: "mapgis-2d-viewer",
|
|
@@ -2781,184 +2443,165 @@ const geometry = sketchEditor.undo()
|
|
|
2781
2443
|
console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
2782
2444
|
|
|
2783
2445
|
|
|
2784
|
-
|
|
2785
|
-
</div>
|
|
2786
|
-
|
|
2787
|
-
<div class="member">
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
2446
|
|
|
2791
|
-
|
|
2792
|
-
|
|
2447
|
+
</dd>
|
|
2448
|
+
|
|
2793
2449
|
|
|
2794
|
-
<span class="code-name" style="font-size:30px">
|
|
2795
2450
|
|
|
2796
|
-
|
|
2451
|
+
<dt>
|
|
2452
|
+
<div class="nameContainer">
|
|
2453
|
+
<h4 class="name" id="union">
|
|
2797
2454
|
|
|
2798
|
-
|
|
2799
|
-
|
|
2455
|
+
union<span class="signature">(polygons)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Polygon}</span>
|
|
2456
|
+
</h4>
|
|
2800
2457
|
|
|
2458
|
+
|
|
2459
|
+
<div class="tag-source">
|
|
2460
|
+
sketchEditor/SketchEditor.js, line 381
|
|
2461
|
+
</div>
|
|
2462
|
+
|
|
2463
|
+
</div>
|
|
2801
2464
|
|
|
2802
2465
|
|
|
2466
|
+
</dt>
|
|
2467
|
+
<dd>
|
|
2468
|
+
|
|
2469
|
+
|
|
2803
2470
|
<div class="description">
|
|
2804
2471
|
<p>合并多个区几何<a id='union'></a></p>
|
|
2805
2472
|
</div>
|
|
2806
2473
|
|
|
2807
2474
|
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
<h4>参数:</h4>
|
|
2817
2475
|
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
<table class="params">
|
|
2483
|
+
<thead>
|
|
2484
|
+
<tr>
|
|
2485
|
+
|
|
2486
|
+
<th>Name</th>
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
<th>Type</th>
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
|
|
2493
|
+
<th class="last">Description</th>
|
|
2494
|
+
</tr>
|
|
2495
|
+
</thead>
|
|
2496
|
+
|
|
2497
|
+
<tbody>
|
|
2498
|
+
|
|
2499
|
+
|
|
2821
2500
|
<tr>
|
|
2822
2501
|
|
|
2823
|
-
|
|
2502
|
+
<td class="name"><code>polygons</code></td>
|
|
2824
2503
|
|
|
2825
|
-
|
|
2826
|
-
<th>类型</th>
|
|
2827
|
-
|
|
2828
2504
|
|
|
2829
|
-
|
|
2830
|
-
<th class="last">描述</th>
|
|
2831
|
-
</tr>
|
|
2832
|
-
</thead>
|
|
2833
|
-
|
|
2834
|
-
<tbody>
|
|
2835
|
-
|
|
2836
|
-
|
|
2505
|
+
<td class="type">
|
|
2837
2506
|
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
<td class="name"><code>polygons</code></td>
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
<td class="type">
|
|
2844
|
-
|
|
2845
|
-
|
|
2507
|
+
|
|
2846
2508
|
<span class="param-type">Polygon</span>
|
|
2847
2509
|
|
|
2848
2510
|
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2511
|
+
|
|
2512
|
+
</td>
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
<td class="description last">
|
|
2517
|
+
|
|
2518
|
+
<p>被合并的区几何对象</p></td>
|
|
2519
|
+
</tr>
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
</tbody>
|
|
2523
|
+
</table>
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2869
2527
|
<dl class="details">
|
|
2870
|
-
|
|
2871
2528
|
|
|
2872
|
-
|
|
2529
|
+
|
|
2873
2530
|
|
|
2874
|
-
|
|
2875
2531
|
|
|
2876
|
-
|
|
2877
2532
|
|
|
2878
2533
|
|
|
2879
2534
|
|
|
2880
|
-
|
|
2881
2535
|
|
|
2882
|
-
|
|
2883
2536
|
|
|
2884
|
-
|
|
2885
2537
|
|
|
2886
|
-
|
|
2887
2538
|
|
|
2888
|
-
|
|
2889
2539
|
|
|
2890
|
-
|
|
2891
2540
|
|
|
2892
|
-
|
|
2893
2541
|
|
|
2894
2542
|
|
|
2895
|
-
|
|
2896
2543
|
|
|
2897
|
-
|
|
2898
2544
|
|
|
2899
|
-
|
|
2545
|
+
|
|
2546
|
+
|
|
2547
|
+
|
|
2900
2548
|
|
|
2901
2549
|
</dl>
|
|
2902
2550
|
|
|
2551
|
+
|
|
2552
|
+
|
|
2903
2553
|
|
|
2554
|
+
|
|
2904
2555
|
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
<h5>Returns:</h5>
|
|
2562
|
+
|
|
2905
2563
|
|
|
2906
2564
|
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
<div class='columns method-parameter'>
|
|
2921
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
2922
|
-
<div class="column is-10">
|
|
2565
|
+
<table class="params">
|
|
2566
|
+
<thead>
|
|
2567
|
+
<tr>
|
|
2568
|
+
|
|
2569
|
+
<th>Type</th>
|
|
2570
|
+
<th class="last">Description</th>
|
|
2571
|
+
</tr>
|
|
2572
|
+
</thead>
|
|
2573
|
+
<tbody>
|
|
2574
|
+
|
|
2575
|
+
<tr>
|
|
2576
|
+
|
|
2577
|
+
<td class="type">
|
|
2923
2578
|
|
|
2579
|
+
Polygon
|
|
2580
|
+
|
|
2924
2581
|
|
|
2582
|
+
</td>
|
|
2583
|
+
<td class="description last">合并后的几何对象</td>
|
|
2584
|
+
</tr>
|
|
2585
|
+
|
|
2586
|
+
</tbody>
|
|
2587
|
+
</table>
|
|
2925
2588
|
|
|
2926
|
-
<div class="columns">
|
|
2927
2589
|
|
|
2928
|
-
<div class='param-desc column is-7'><p>合并后的几何对象</p></div>
|
|
2929
2590
|
|
|
2930
2591
|
|
|
2931
|
-
|
|
2932
|
-
<label>类型: </label>
|
|
2592
|
+
<h5>Example</h5>
|
|
2933
2593
|
|
|
2934
|
-
<span class="param-type">Polygon</span>
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
</div>
|
|
2938
|
-
|
|
2939
|
-
</div>
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
</div>
|
|
2943
|
-
</div>
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
<h5>示例</h5>
|
|
2951
|
-
|
|
2952
2594
|
<p class="code-caption"><h7>二维草图几何合并</h7></p>
|
|
2953
2595
|
|
|
2596
|
+
|
|
2954
2597
|
|
|
2955
|
-
|
|
2598
|
+
<pre class="prettyprint"><code>// [ES5引入方式]:
|
|
2956
2599
|
const { Polygon } = zondy.geometry
|
|
2957
2600
|
const { MapView } = zondy.leaflet
|
|
2958
2601
|
const { SketchEditor } = zondy.leaflet.tool.sketch
|
|
2959
2602
|
[ES6引入方式]:
|
|
2960
|
-
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin"
|
|
2961
|
-
import { polygon } from "@mapgis/webclient-common"
|
|
2603
|
+
import { MapView, SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/>
|
|
2604
|
+
import { polygon } from "@mapgis/webclient-common" <br/>
|
|
2962
2605
|
var map = new Map()
|
|
2963
2606
|
var mapView = new MapView({
|
|
2964
2607
|
viewId: "mapgis-2d-viewer",
|
|
@@ -2994,218 +2637,169 @@ const polygons = [polygon,polygon1]
|
|
|
2994
2637
|
sketchEditor.union(polygons)</code></pre>
|
|
2995
2638
|
|
|
2996
2639
|
|
|
2997
|
-
|
|
2998
|
-
</div>
|
|
2999
|
-
|
|
3000
|
-
<div class="member">
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
2640
|
|
|
3004
|
-
|
|
3005
|
-
|
|
2641
|
+
</dd>
|
|
2642
|
+
|
|
3006
2643
|
|
|
3007
|
-
<span class="code-name" style="font-size:30px">
|
|
3008
2644
|
|
|
3009
|
-
|
|
2645
|
+
<dt>
|
|
2646
|
+
<div class="nameContainer">
|
|
2647
|
+
<h4 class="name" id="updateVertex">
|
|
3010
2648
|
|
|
3011
|
-
|
|
3012
|
-
|
|
2649
|
+
updateVertex<span class="signature">(point, index)</span>
|
|
2650
|
+
</h4>
|
|
3013
2651
|
|
|
2652
|
+
|
|
2653
|
+
<div class="tag-source">
|
|
2654
|
+
sketchEditor/SketchEditor.js, line 208
|
|
2655
|
+
</div>
|
|
2656
|
+
|
|
2657
|
+
</div>
|
|
3014
2658
|
|
|
3015
2659
|
|
|
2660
|
+
</dt>
|
|
2661
|
+
<dd>
|
|
2662
|
+
|
|
2663
|
+
|
|
3016
2664
|
<div class="description">
|
|
3017
2665
|
<p>更新当前草图图形的某个顶点<a id='updateVertex'></a></p>
|
|
3018
2666
|
</div>
|
|
3019
2667
|
|
|
3020
2668
|
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
<h4>参数:</h4>
|
|
3030
2669
|
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
<table class="params">
|
|
2677
|
+
<thead>
|
|
2678
|
+
<tr>
|
|
2679
|
+
|
|
2680
|
+
<th>Name</th>
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
<th>Type</th>
|
|
2684
|
+
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
<th class="last">Description</th>
|
|
2688
|
+
</tr>
|
|
2689
|
+
</thead>
|
|
2690
|
+
|
|
2691
|
+
<tbody>
|
|
2692
|
+
|
|
2693
|
+
|
|
3034
2694
|
<tr>
|
|
3035
2695
|
|
|
3036
|
-
|
|
2696
|
+
<td class="name"><code>point</code></td>
|
|
3037
2697
|
|
|
3038
|
-
|
|
3039
|
-
<th>类型</th>
|
|
3040
|
-
|
|
3041
2698
|
|
|
3042
|
-
|
|
3043
|
-
<th class="last">描述</th>
|
|
3044
|
-
</tr>
|
|
3045
|
-
</thead>
|
|
3046
|
-
|
|
3047
|
-
<tbody>
|
|
3048
|
-
|
|
3049
|
-
|
|
2699
|
+
<td class="type">
|
|
3050
2700
|
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
<td class="name"><code>point</code></td>
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
<td class="type">
|
|
3057
|
-
|
|
3058
|
-
|
|
2701
|
+
|
|
3059
2702
|
<span class="param-type">Point</span>
|
|
3060
2703
|
|
|
3061
2704
|
|
|
3062
|
-
|
|
3063
|
-
</td>
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
<td class="description last"><p>新的顶点</p></td>
|
|
3068
|
-
</tr>
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
2705
|
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
2706
|
+
</td>
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
<td class="description last">
|
|
2711
|
+
|
|
2712
|
+
<p>新的顶点</p></td>
|
|
2713
|
+
</tr>
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
<tr>
|
|
2718
|
+
|
|
2719
|
+
<td class="name"><code>index</code></td>
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
<td class="type">
|
|
2723
|
+
|
|
2724
|
+
|
|
3083
2725
|
<span class="param-type">Number</span>
|
|
3084
2726
|
|
|
3085
2727
|
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
2728
|
+
|
|
2729
|
+
</td>
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
<td class="description last">
|
|
2734
|
+
|
|
2735
|
+
<p>需更新的顶点的索引值,索引值从0开始</p></td>
|
|
2736
|
+
</tr>
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
</tbody>
|
|
2740
|
+
</table>
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
|
|
3106
2744
|
<dl class="details">
|
|
3107
|
-
|
|
3108
2745
|
|
|
3109
|
-
|
|
2746
|
+
|
|
3110
2747
|
|
|
3111
|
-
|
|
3112
2748
|
|
|
3113
|
-
|
|
3114
2749
|
|
|
3115
2750
|
|
|
3116
2751
|
|
|
3117
|
-
|
|
3118
2752
|
|
|
3119
|
-
|
|
3120
2753
|
|
|
3121
|
-
|
|
3122
2754
|
|
|
3123
|
-
|
|
3124
2755
|
|
|
3125
|
-
|
|
3126
2756
|
|
|
3127
|
-
|
|
3128
2757
|
|
|
3129
|
-
|
|
3130
2758
|
|
|
3131
2759
|
|
|
3132
|
-
|
|
3133
2760
|
|
|
3134
|
-
|
|
3135
2761
|
|
|
3136
|
-
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
|
|
3137
2765
|
|
|
3138
2766
|
</dl>
|
|
3139
2767
|
|
|
2768
|
+
|
|
2769
|
+
|
|
3140
2770
|
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
</div>
|
|
3163
|
-
|
|
3164
|
-
</div>
|
|
3165
|
-
</div>
|
|
3166
2771
|
|
|
3167
2772
|
|
|
3168
2773
|
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
</dd>
|
|
3169
2781
|
|
|
2782
|
+
</dl>
|
|
3170
2783
|
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
|
|
3171
2787
|
</article>
|
|
3172
2788
|
|
|
3173
|
-
</section>
|
|
2789
|
+
</section>
|
|
3174
2790
|
|
|
3175
2791
|
|
|
3176
2792
|
|
|
3177
2793
|
|
|
3178
|
-
</div>
|
|
3179
|
-
|
|
3180
|
-
<footer class="footer">
|
|
3181
|
-
<div class="content has-text-centered">
|
|
3182
|
-
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
|
|
3183
|
-
<p class="sidebar-created-by">
|
|
3184
|
-
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
3185
|
-
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|
|
3186
|
-
</p>
|
|
3187
|
-
</div>
|
|
3188
|
-
</footer>
|
|
3189
|
-
|
|
3190
|
-
</div>
|
|
3191
|
-
<div id="side-nav" class="side-nav">
|
|
3192
|
-
<div style="margin-bottom: 10px;">
|
|
3193
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</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="#member">成员变量</a>
|
|
3197
|
-
</div>
|
|
3198
|
-
<div style="margin-bottom: 10px;">
|
|
3199
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
|
|
3200
|
-
</div>
|
|
3201
|
-
<div>
|
|
3202
|
-
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
|
|
3203
|
-
</div>
|
|
3204
|
-
</div>
|
|
3205
|
-
</div>
|
|
3206
|
-
<script src="scripts/linenumber.js"> </script>
|
|
3207
2794
|
|
|
3208
|
-
<
|
|
2795
|
+
<footer>
|
|
2796
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Wed Feb 04 2026 18:32:32 GMT+0800 (中国标准时间)
|
|
2797
|
+
</footer>
|
|
2798
|
+
</div>
|
|
2799
|
+
</div>
|
|
3209
2800
|
|
|
2801
|
+
<script>prettyPrint();</script>
|
|
2802
|
+
<script src="scripts/linenumber.js"></script>
|
|
2803
|
+
<script src="scripts/main.js"></script>
|
|
3210
2804
|
</body>
|
|
3211
2805
|
</html>
|