@mapgis/webclient-leaflet-plugin 17.4.1 → 17.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -41
- package/dist/es5/webclient-common.min.js +32 -6
- package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
- package/dist/webclient-leaflet-plugin-es6.min.js +6 -11
- package/documention/ArcGISMapImageLayer.html +50 -4
- package/documention/ArcGISTileLayer.html +42 -4
- package/documention/EchartsLayer.html +3 -3
- package/documention/FeatureLayer.html +2 -2
- package/documention/FeatureLayerUtil.html +3 -3
- package/documention/IGSImageryLayer.html +851 -0
- package/documention/IGSImageryTileLayer.html +741 -0
- package/documention/IGSMapImageLayer.html +54 -31
- package/documention/IGSTileLayer.html +103 -25
- package/documention/L.zondy.MapvBaseLayer.html +6 -2
- package/documention/MapLayer.html +30 -2
- package/documention/MapVLayer.html +3 -3
- package/documention/MapView.html +153 -91
- package/documention/MapViewLeaflet.html +1413 -369
- package/documention/Popup.html +3 -3
- package/documention/Screenshot.html +2 -2
- package/documention/SketchEditor.html +12 -12
- package/documention/SketchEditorLeaflet.html +477 -241
- package/documention/TileLayer.html +132 -2
- package/documention/TileLayerWMS.html +2 -2
- package/documention/VectorTileLayer.html +46 -4
- package/documention/WMSLayerView.html +2 -2
- package/documention/WebMapServiceLayer.html +48 -4
- package/documention/WebMapTileServiceLayer.html +38 -20
- package/documention/WebTileLayer.html +42 -4
- package/documention/global.html +561 -1732
- package/documention/index.html +2 -2
- package/documention/initializeOptions.html +384 -0
- package/documention/{Zondy.ThemeLayer.GeoFeatureThemeLayer.html → zondy.themelayer.GeoFeatureThemeLayer.html} +6 -2
- package/documention/{Zondy.ThemeLayer.GraphThemeLayer.html → zondy.themelayer.GraphThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.RandomThemeLayer.html → zondy.themelayer.RandomThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.ThemeLayer.html → zondy.themelayer.ThemeLayer.html} +6 -2
- package/documention/{Zondy.ThemeLayer.ThemeStyle.html → zondy.themelayer.ThemeStyle.html} +6 -2
- package/documention/{Zondy.ThemeLayer.rangeThemeLayer.html → zondy.themelayer.rangeThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.rankSymbolThemeLayer.html → zondy.themelayer.rankSymbolThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.simpleThemeLayer.html → zondy.themelayer.simpleThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.uniqueThemeLayer.html → zondy.themelayer.uniqueThemeLayer.html} +2 -2
- package/documention/{Zondy.view.UI.html → zondy.view.UI.html} +7 -3
- package/documention/{Zondy.Widget.html → zondy.widget.html} +3 -3
- package/package.json +7 -8
- package/documention/DrawControl.html +0 -802
package/README.md
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
# 1、获取 MapGIS Client for JavaScript(Leaflet) 开发包
|
|
2
2
|
|
|
3
|
-
开发时需要引入MapGIS Client for JavaScript(Leaflet)开发包;其中包括必备的 CSS 文件和 JS 文件;
|
|
3
|
+
开发时需要引入 MapGIS Client for JavaScript(Leaflet)开发包;其中包括必备的 CSS 文件和 JS 文件;
|
|
4
4
|
|
|
5
|
-
开发库分为正式发行版和Beta版;
|
|
5
|
+
开发库分为正式发行版和 Beta 版;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
下面分别介绍两种版本包的获取方式:
|
|
7
|
+
- 正式版:面向公网用户,半年发行一次,发行后不会增加新功能,仅会修订 BUG
|
|
8
|
+
- Beta 版:面向内网用户,每周发行一次,会修订 BUG 并增加新功能
|
|
9
|
+
下面分别介绍两种版本包的获取方式:
|
|
10
10
|
|
|
11
11
|
## 1.1、正式发行版及其更新包
|
|
12
12
|
|
|
13
13
|
### 1.1.1、文件方式引入
|
|
14
14
|
|
|
15
|
-
**前往**[司马云官网](http://smaryun.com/dev/download_detail.html#/download828)**下载MapGIS Client for JavaScript开发库**
|
|
15
|
+
**前往**[司马云官网](http://smaryun.com/dev/download_detail.html#/download828)**下载 MapGIS Client for JavaScript 开发库**
|
|
16
16
|
|
|
17
|
-
以10.6.2.10为例,其中:
|
|
17
|
+
以 10.6.2.10 为例,其中:
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
**Webclient-Leaflet-Plugin所需开发包位于如下文件夹中**
|
|
19
|
+
- mapgis-client-for-javascript-dist-v10.6.2.10.rar 为开发库
|
|
20
|
+
- mapgis-client-for-javascript-all-v10.6.2.10.rar 为开发库+示例站点
|
|
21
|
+
**Webclient-Leaflet-Plugin 所需开发包位于如下文件夹中**
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
**之后请将webclient-leaflet-plugin.min.js文件和leaflet文件夹拷贝出来,放入项目的静态资源目录**。
|
|
23
|
+
- webclient-leaflet-plugin 库:`mapgis-client-for-javascript-all-v10.6.2.10\dist\cdn\zondyclient\webclient-leaflet-plugin.min.js`
|
|
24
|
+
- Leaflet 库:`mapgis-client-for-javascript-all-v10.6.2.10\dist\cdn\leaflet`
|
|
25
|
+
**之后请将 webclient-leaflet-plugin.min.js 文件和 leaflet 文件夹拷贝出来,放入项目的静态资源目录**。
|
|
26
26
|
|
|
27
27
|
### 1.1.2、npm 方式引入
|
|
28
28
|
|
|
29
|
-
**通过公网NPM的方式进行安装**
|
|
29
|
+
**通过公网 NPM 的方式进行安装**
|
|
30
30
|
|
|
31
31
|
```plain
|
|
32
32
|
npm install @mapgis/webclient-leaflet-plugin
|
|
33
33
|
```
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
## 1.2、Beta 版
|
|
35
36
|
|
|
36
37
|
### 1.2.1、文件方式引入
|
|
37
38
|
|
|
38
|
-
**请前往内网开发库下载Webclient-Leaflet-Plugin相关开发包**
|
|
39
|
+
**请前往内网开发库下载 Webclient-Leaflet-Plugin 相关开发包**
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
以 16.1.26版本为例进行说明
|
|
41
|
+
- [@mapgis/webclient-leaflet-plugin](http://192.168.11.130:4873/-/web/detail/@mapgis/webclient-leaflet-plugin)
|
|
42
|
+
- [leaflet](https://github.com/Leaflet/Leaflet/releases/download/v1.9.2/leaflet.zip)
|
|
43
|
+
以 16.1.26 版本为例进行说明
|
|
43
44
|
|
|
44
|
-
1.在该网页中请先选择要下载的版本
|
|
45
|
+
1.在该网页中请先选择要下载的版本
|
|
45
46
|
|
|
46
47
|
<center>
|
|
47
48
|
<img src="http://webclient.smaryun.com/static/modules/leaflet/source/img/开发指南_1.png" style="zoom:100%;" />
|
|
@@ -55,33 +56,32 @@ npm install @mapgis/webclient-leaflet-plugin
|
|
|
55
56
|
|
|
56
57
|
**开发包位于如下文件夹中**
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
- webclient-leaflet-plugin 库:`webclient-leaflet-plugin-16.3.32\package\dist\webclient-leaflet-plugin.min.js`
|
|
60
|
+
- Leaflet 库:`leaflet-16.3.1\package\dist`
|
|
61
61
|
|
|
62
|
-
**请将**`leaflet-16.3.1\package\dist`**改名为leaflet,之后将**`webclient-leaflet-plugin.min.js`
|
|
62
|
+
**请将**`leaflet-16.3.1\package\dist`**改名为 leaflet,之后将**`webclient-leaflet-plugin.min.js`
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
**文件和 leaflet 文件夹拷贝出来,放入项目的静态资源目录**
|
|
65
65
|
|
|
66
66
|
### 1.2.2、npm 方式引入
|
|
67
67
|
|
|
68
|
-
**请先将npm源切换为内网:**
|
|
68
|
+
**请先将 npm 源切换为内网:**
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
71
|
npm set registry http://192.168.11.130:4873/
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
**通过内网NPM的方式进行安装**
|
|
74
|
+
**通过内网 NPM 的方式进行安装**
|
|
75
75
|
|
|
76
76
|
```plain
|
|
77
77
|
npm install @mapgis/webclient-leaflet-plugin
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
# 2、如何引入开发库
|
|
80
|
+
# 2、如何引入开发库
|
|
81
81
|
|
|
82
82
|
## 2.1、文件方式引入
|
|
83
83
|
|
|
84
|
-
**在index.html中引入引擎库和插件库**
|
|
84
|
+
**在 index.html 中引入引擎库和插件库**
|
|
85
85
|
|
|
86
86
|
```typescript
|
|
87
87
|
<!DOCTYPE html>
|
|
@@ -101,16 +101,17 @@ npm install @mapgis/webclient-leaflet-plugin
|
|
|
101
101
|
|
|
102
102
|
## 2.1、npm 方式引入
|
|
103
103
|
|
|
104
|
-
**通过npm的方式安装@mapgis/webclient-leaflet-plugin插件库**
|
|
104
|
+
**通过 npm 的方式安装@mapgis/webclient-leaflet-plugin 插件库**
|
|
105
105
|
|
|
106
106
|
```typescript
|
|
107
107
|
npm install @mapgis/webclient-leaflet-plugin
|
|
108
108
|
```
|
|
109
|
+
|
|
109
110
|
# 3、初始化场景视图
|
|
110
111
|
|
|
111
112
|
## 3.1、文件方式引入
|
|
112
113
|
|
|
113
|
-
**在项目的css文件中设置地图视图容器的样式,否则地图视图无法显示**
|
|
114
|
+
**在项目的 css 文件中设置地图视图容器的样式,否则地图视图无法显示**
|
|
114
115
|
|
|
115
116
|
```typescript
|
|
116
117
|
/*设置地图视图的样式,一定要设置否则地图无法显示*/
|
|
@@ -163,9 +164,9 @@ npm install @mapgis/webclient-leaflet-plugin
|
|
|
163
164
|
|
|
164
165
|
## 3.2、npm 方式引入
|
|
165
166
|
|
|
166
|
-
**以VUE项目为例,React和Angular类似**
|
|
167
|
+
**以 VUE 项目为例,React 和 Angular 类似**
|
|
167
168
|
|
|
168
|
-
**在项目的css文件中设置地图视图容器的样式,否则地图视图无法显示**
|
|
169
|
+
**在项目的 css 文件中设置地图视图容器的样式,否则地图视图无法显示**
|
|
169
170
|
|
|
170
171
|
```typescript
|
|
171
172
|
/*设置地图视图的样式,一定要设置否则地图无法显示*/
|
|
@@ -176,7 +177,7 @@ npm install @mapgis/webclient-leaflet-plugin
|
|
|
176
177
|
}
|
|
177
178
|
```
|
|
178
179
|
|
|
179
|
-
**在你的vue组件的template中设置地图视图容器的div元素**
|
|
180
|
+
**在你的 vue 组件的 template 中设置地图视图容器的 div 元素**
|
|
180
181
|
|
|
181
182
|
```typescript
|
|
182
183
|
<!--地图视图容器div-->
|
|
@@ -188,29 +189,86 @@ npm install @mapgis/webclient-leaflet-plugin
|
|
|
188
189
|
|
|
189
190
|
```typescript
|
|
190
191
|
import { MapView } from '@mapgis/webclient-leaflet-plugin'
|
|
191
|
-
import { Map } from
|
|
192
|
+
import { Map } from '@mapgis/webclient-common'
|
|
192
193
|
```
|
|
193
194
|
|
|
194
|
-
**在mounted生命周期中初始化地图视图**
|
|
195
|
+
**在 mounted 生命周期中初始化地图视图**
|
|
195
196
|
|
|
196
197
|
```typescript
|
|
197
198
|
// 初始化图层管理容器
|
|
198
|
-
const map = new Map()
|
|
199
|
+
const map = new Map()
|
|
199
200
|
// 初始化地图视图对象
|
|
200
201
|
const mapView = new MapView({
|
|
201
202
|
// 视图id
|
|
202
|
-
viewId:
|
|
203
|
+
viewId: '你的地图视图的id',
|
|
203
204
|
// 图层管理容器
|
|
204
205
|
map: map
|
|
205
|
-
})
|
|
206
|
+
})
|
|
206
207
|
```
|
|
207
208
|
|
|
208
|
-
|
|
209
|
-
|
|
210
209
|
# 4、@mapgis/webclient-leaflet-plugin 版本说明
|
|
211
210
|
|
|
212
211
|
## 4.1、正式版
|
|
213
212
|
|
|
213
|
+
### v17.6.1
|
|
214
|
+
|
|
215
|
+
**更新说明:**
|
|
216
|
+
|
|
217
|
+
- 此版本无更新
|
|
218
|
+
|
|
219
|
+
### v17.6.0
|
|
220
|
+
|
|
221
|
+
**更新说明:**
|
|
222
|
+
|
|
223
|
+
1. 功能新增
|
|
224
|
+
|
|
225
|
+
- 支持百度、高德瓦片服务纠偏显示
|
|
226
|
+
|
|
227
|
+
2. 功能优化
|
|
228
|
+
|
|
229
|
+
- 此版本无更新
|
|
230
|
+
|
|
231
|
+
### v17.4.7
|
|
232
|
+
|
|
233
|
+
**更新说明:**
|
|
234
|
+
|
|
235
|
+
1. 功能优化
|
|
236
|
+
|
|
237
|
+
- 修复leaflet-plugin混合加载的方式去加载动态服务显示异常的问题
|
|
238
|
+
|
|
239
|
+
### v17.4.6
|
|
240
|
+
|
|
241
|
+
**更新说明:**
|
|
242
|
+
|
|
243
|
+
1. 功能优化
|
|
244
|
+
|
|
245
|
+
- 此版本无更新
|
|
246
|
+
|
|
247
|
+
**更新说明:**
|
|
248
|
+
|
|
249
|
+
1. 功能优化
|
|
250
|
+
|
|
251
|
+
- 此版本无更新
|
|
252
|
+
|
|
253
|
+
### v17.4.4
|
|
254
|
+
|
|
255
|
+
**更新说明:**
|
|
256
|
+
|
|
257
|
+
- 修复 IGSMapImageLayer 图层动态出图级别受限问题
|
|
258
|
+
|
|
259
|
+
### v17.4.3
|
|
260
|
+
|
|
261
|
+
**更新说明:**
|
|
262
|
+
|
|
263
|
+
- 此版本无更新
|
|
264
|
+
|
|
265
|
+
### v17.4.2
|
|
266
|
+
|
|
267
|
+
**更新说明:**
|
|
268
|
+
|
|
269
|
+
- 此版本无更新
|
|
270
|
+
|
|
271
|
+
|
|
214
272
|
### v17.4.1
|
|
215
273
|
|
|
216
274
|
**更新说明:**
|