@mapgis/webclient-mapboxgl-plugin 10.3.4 → 17.0.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.
Files changed (91) hide show
  1. package/README.md +51 -124
  2. package/dist/es5/webclient-common.min.js +90 -0
  3. package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -0
  4. package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -0
  5. package/documention/EchartsLayer.html +379 -0
  6. package/documention/MapViewMapboxgl.html +3587 -0
  7. package/documention/Popup.html +1523 -0
  8. package/documention/Screenshot.html +1089 -0
  9. package/documention/SketchEditorMapboxgl.html +3383 -0
  10. package/documention/document_ArcGISVectorTileLayerView.js.html +265 -0
  11. package/documention/document_EchartsLayerView.js.html +246 -0
  12. package/documention/document_GraphicsLayerView.js.html +314 -0
  13. package/documention/document_IGSFeatureLayerView.js.html +218 -0
  14. package/documention/document_IGSMapImageLayerView.js.html +240 -0
  15. package/documention/document_IGSTileLayerView.js.html +236 -0
  16. package/documention/document_IGSVectorTileLayerView.js.html +264 -0
  17. package/documention/document_MapVLayerView.js.html +247 -0
  18. package/documention/document_WMSLayerView.js.html +240 -0
  19. package/documention/document_WMTSLayerView.js.html +234 -0
  20. package/documention/document_WebTileLayerView.js.html +240 -0
  21. package/documention/document_support_FeatureRenderView.js.html +682 -0
  22. package/documention/document_support_MapboxglGraphicsLayer.js.html +1184 -0
  23. package/documention/document_support_SourceMetaData.js.html +223 -0
  24. package/documention/document_support_Utils.js.html +624 -0
  25. package/documention/document_support_mapbox_mapboxCustomUtil.js.html +322 -0
  26. package/documention/global.html +252 -0
  27. package/documention/index.html +251 -0
  28. package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapvLayer.html +445 -0
  29. package/documention/scripts/app.min.js +1 -0
  30. package/documention/scripts/linenumber.js +26 -0
  31. package/documention/scripts/search.js +45 -0
  32. package/documention/scripts/sideBar.js +11 -0
  33. package/documention/sketchEditor_SketchEditorMapboxgl.js.html +875 -0
  34. package/documention/styles/anchor.png +0 -0
  35. package/documention/styles/app.min.css +1 -0
  36. package/documention/styles/c.png +0 -0
  37. package/documention/styles/iframe.css +29 -0
  38. package/documention/styles/m.png +0 -0
  39. package/documention/styles/prettify-jsdoc.css +111 -0
  40. package/documention/styles/prettify-tomorrow.css +132 -0
  41. package/documention/styles/reset.css +44 -0
  42. package/documention/styles/up-arrow.png +0 -0
  43. package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +165 -0
  44. package/documention/util_ConvertRendererToStyleLayerUtil.js.html +844 -0
  45. package/documention/util_MapboxglFeatureRender.js.html +225 -0
  46. package/documention/util_MapboxglPlugin.js.html +284 -0
  47. package/documention/view_MapViewMapboxgl.js.html +1882 -0
  48. package/documention/view_utils_ArcGISVectorTileLayerUtil.js.html +382 -0
  49. package/documention/view_utils_EchartsLayerUtil.js.html +194 -0
  50. package/documention/view_utils_IGSMapImageUtil.js.html +373 -0
  51. package/documention/view_utils_IGSTileLayerUtil.js.html +285 -0
  52. package/documention/view_utils_IGSVectorTileLayerUtil.js.html +379 -0
  53. package/documention/view_utils_MapVLayerUtil.js.html +197 -0
  54. package/documention/view_utils_Popup.js.html +525 -0
  55. package/documention/view_utils_Screenshot.js.html +320 -0
  56. package/documention/view_utils_WMSLayerUtil.js.html +337 -0
  57. package/documention/view_utils_WMTSLayerUtil.js.html +331 -0
  58. package/documention/view_utils_WebTileLayerUtil.js.html +284 -0
  59. package/documention/view_utils_echarts_EchartsLayerPlugin.js.html +419 -0
  60. package/documention/view_utils_mapV_MapVLayerPlugin.js.html +527 -0
  61. package/documention/view_utils_mapV_MapvBaseLayer.js.html +477 -0
  62. package/documention/view_utils_support_rasterLayerUtil.js.html +244 -0
  63. package/documention/view_utils_support_vectorLayerUtil.js.html +503 -0
  64. package/package.json +20 -20
  65. package/core/Base.js +0 -15
  66. package/core/index.js +0 -5
  67. package/index.js +0 -6
  68. package/overlay/D3Layer.js +0 -108
  69. package/overlay/EchartsLayer.js +0 -242
  70. package/overlay/ElsCubeLayer.js +0 -125
  71. package/overlay/MapvLayer.js +0 -296
  72. package/overlay/StreamLayer.js +0 -83
  73. package/overlay/TimeSpaceCubeLayer.js +0 -135
  74. package/overlay/dthree/mapbox-d3.css +0 -9
  75. package/overlay/echarts/MapCoordSys.js +0 -105
  76. package/overlay/echarts/MapModel.js +0 -0
  77. package/overlay/echarts/MapView.js +0 -0
  78. package/overlay/echarts/index.js +0 -4
  79. package/overlay/index.js +0 -31
  80. package/overlay/mapv/MapvBaseLayer.js +0 -299
  81. package/overlay/mapv/index.js +0 -5
  82. package/overlay/stream/GeojsonStreamLayer.js +0 -135
  83. package/overlay/stream/MapvStreamLayer.js +0 -79
  84. package/overlay/stream/index.js +0 -3
  85. package/overlay/stream/popup.css +0 -31
  86. package/service/index.js +0 -1
  87. package/service/socket/ISocketService.js +0 -121
  88. package/service/socket/SocketEvent.js +0 -50
  89. package/service/socket/SocketService.js +0 -90
  90. package/util/Evented.js +0 -295
  91. package/util/Util.js +0 -348
package/README.md CHANGED
@@ -1,162 +1,89 @@
1
- # MapGIS WebClient-JavaScript-Plugin
1
+ ## @mapgis/webclient-mapboxgl-plugin 版本说明
2
2
 
3
- [![npm version][npm-img]][npm-url]
4
- [![build status][travis-img]][travis-url]
5
- [![apache licensed](https://img.shields.io/badge/license-Apache%202.0-orange.svg?style=flat-square)](https://github.com/ParnDeedlit/WebClient-JavaScript-Plugin/blob/master/LICENSE)
3
+ ### v17.0.0
6
4
 
7
- [npm-img]: https://img.shields.io/npm/v/esri-leaflet.svg?style=flat-square
8
- [npm-url]: https://www.npmjs.com/package/esri-leaflet
9
- [travis-img]: https://img.shields.io/travis/Esri/esri-leaflet/master.svg?style=flat-square
10
- [travis-url]: https://github.com/ParnDeedlit/WebClient-JavaScript-Plugin
5
+ **更新说明:**
11
6
 
12
- [WebClient-JavaScript](https://github.com/MapGIS/WebClient-JavaScript) 的官方插件。针对 [IGService-X](http://client.snanyun.com:8899/ui/gallery-leaflet.html#igserverx)服务类型. 集成百度 [MapV](https://github.com/huiyan-fe/mapv), 百度[Echarts](https://github.com/apache/incubator-echarts) 阿里L7 [L7](https://github.com/antvis/L7) Data-Driven Documents[D3](https://github.com/d3/d3)等常见互联网的技术.
7
+ 1. 功能新增
13
8
 
14
- > 该工程由中地数码多个团队协同配合,主要是将公网的开源技术进行整合,如果需要`高级收费`的js版本,请联系内部维护人员.
9
+ - 二维Mapboxgl插件适配草图编辑模块功能
10
+ - 二维Mapboxgl插件实现统一、单值、分段、等级、聚合专题图
15
11
 
16
- 这个工程的目标 **不是** 替代司马云上的官方 [WebClient-JavaScript](https://github.com/MapGIS/WebClient-JavaScript) 而是作为一种补集 *针对* 传统GIS技术中较少使用的大数据可视化,时空聚类,前端空间分析,客户端专题去等提供额外的功能支撑.
17
12
 
18
- > 司马云上的官方的传统的**WebClient-JavaScript**完全满足常规的GIS开发模式
19
13
 
20
- ## 目录
14
+ ### V16.8.0
21
15
 
22
- - [开始](#getting-started)
23
- - [示例](#示例)
24
- - [使用方式](#使用方式)
25
- - [API接口](#API接口)
26
- - [独立插件](#独立插件)
27
- - [问题](#问题)
28
- - [依赖](#依赖)
29
- - [深入了解](#深入了解)
30
- - [开发说明](#开发说明)
31
- - [版本控制](#版本控制)
32
- - [贡献方式](#贡献方式)
33
- - [团队](#团队)
34
- - [证书](#证书)
16
+ **更新说明:**
35
17
 
36
- ## 示例
37
- 请看 [Zondy.Echarts](http://client.snanyun.com:8899/ui/gallery-mapbox.html#dataview), [Zondy.Mapv](http://client.snanyun.com:8899/ui/gallery-mapbox.html#dataview-mapv-path_converge), [Zondy.D3](http://client.snanyun.com:8899/ui/gallery-leaflet.html#dataview-d3-csv).
18
+ - 维护更新,修复若干 Bug
38
19
 
39
- ![示例图片](https://raw.githubusercontent.com/ParnDeedlit/WebClient-JavaScript-Plugin/master/assets/img/template.png)
20
+
40
21
 
41
- > http://client.snanyun.com:8899/ui/index.html
22
+ ### V16.6.0
42
23
 
43
- ## 使用方式
24
+ **更新说明:**
44
25
 
45
- **两种使用方式:**
26
+ - 引擎库新增自定义坐标系(如高斯)数据和服务(含矢量瓦片)的接入功能
46
27
 
47
- 1. 配合WebClient-JavaScript使用
48
- 1. 单独使用WebClient-JavaScript-Plugin
49
28
 
50
- ### 1.WebClient-JavaScript使用
51
29
 
52
- > WebClient-JavaScript中的**include-leaflet/cesium/openlayers/mapboxgl.js**会`默认自动引入`该脚本, 前提是没有使用`exclude标签`将plugin插件单独`排除`出去
30
+ ### V16.4.0
53
31
 
54
- #### 使用方式
32
+ **更新说明:**
55
33
 
56
- ``` javascript
57
- <script src="./libs/zondyclient/include-mapboxgl-local.js"></script>
58
- ```
34
+ - 维护更新,修复若干 Bug
59
35
 
60
- ``` javascript
61
- if (!inArray(excludes, 'plugin')) {
62
- //这里是三方如igserver-x,datastore,mapv,echart等的api
63
- inputCSS(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.css");
64
- inputScript(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.min.js");
65
- }
66
- ```
67
36
 
68
- ### 2.单独使用
69
- 以百度Echatrs为例,如果要使用 EchartsLayer图层:
70
- ``` javascript
71
- layer = new mapboxgl.zondy.EchartsLayer(map, option).addTo(map);
72
- ```
37
+ ### V16.2.0
73
38
 
74
- 引用顺序如下: 必须是地图脚本主题先引入-> 使用的三方js(echarts/mapv)-> 本文的插件js
39
+ **更新说明:**
75
40
 
76
- 1. 引入基本的 mapbox-gl.js脚本库 [mapbox-gl.js](https://api.tiles.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.js)
77
- 1. 引入使用的echarts.js库 [incubator-echarts](https://github.com/apache/incubator-echarts)
78
- 1. 引入本文提到的 WebClient-JavaScript-Plugin.js库
41
+ - 新增接入离线 TMS 的高德(GCJ02)地图
42
+ - 新增接入离线百度(BD09)地图
43
+ - 新增接入 Google(GCJ02)地图
44
+ - 新增行业标绘功能:支持基础、军事两类符号的交互式编辑,支持属性、生长、显隐、闪烁、路径、比例等动画类型,支持态势编辑、管理、推演等功能
45
+ - 维护更新,修复若干 Bug
79
46
 
80
- ## [API接口](http://client.snanyun.com:8899/api/leaflet/index.html)
47
+
48
+ ### V16.0.0
81
49
 
82
- 1. [Leaflet API](http://client.snanyun.com:8899/api/leaflet/index.html)
83
- 1. [OpenLayers API](http://client.snanyun.com:8899/api/openlayers/index.html)
84
- 1. [MapboxGL API](http://client.snanyun.com:8899/api/mapboxgl/index.html)
50
+ **更新说明:**
85
51
 
86
- > cesium模块由三维部门`单独负责`!
52
+ - 维护更新,修复若干 Bug
87
53
 
88
- ## 独立插件
54
+
55
+ ### V15.6.0
89
56
 
90
- 除了基本的地图脚本库:leaflet,openlauyer之外 一些常见的js库如:turfjs(空间分析)等可以直接单独引入。 **推荐使用Turf做几何判断**
57
+ **更新说明:**
91
58
 
92
- |独立js库|cdn地址|node使用|
93
- |:---|:---|:---|
94
- |turfjs|https://npmcdn.com/@turf/turf/turf.min.js|import * as turf from '@turf/turf'|
59
+ - 维护更新,修复若干 Bug
95
60
 
96
- ## 问题
61
+
62
+ ### V15.4.0
63
+ - 维护更新,修复若干 Bug
97
64
 
98
- * [判断多边形自相交?](https://github.com/MapGIS/WebClient-JavaScript/issues/18)
99
- * [后台空间分析出错误?](https://github.com/MapGIS/WebClient-JavaScript/issues/5)
65
+
66
+ ### V15.2.0
100
67
 
101
- ## 深入了解
68
+ **更新说明:**
102
69
 
103
- ### 开发说明
70
+ 1. 功能新增
71
+ - 新增直接支持 ArcGIS 地图服务与 OGC 服务;
72
+ - 新增 PostGIS 支持,可实现基于 PostGIS 的数据查询统计、实时矢量瓦片等功能;
73
+ - 新增支持 ElasticSearch 的分布式大数据搜索与分析能力,可实现热力分析、聚类分析等功能。
104
74
 
105
- 如何从源代码编译脚本.
75
+ 2. 站点维护
76
+ - 示例说明文档美化
106
77
 
107
- 1. [分支 & 克隆 WebClient-JavaScript-Plugin](https://github.com/ParnDeedlit/WebClient-JavaScript-Plugin.git)
108
- 2. `cd` 进入 `WebClient-JavaScript-Plugin` 文件夹
109
- 3.安装 [`package.json`](https://github.com/ParnDeedlit/WebClient-JavaScript-Plugin/blob/master/package.json) 所需依赖 `npm install`
110
- 4. 执行命令 `npm run mapbox-cmj` 编译通用的commonjs版本的mapboxgl-plugin插件js,生成的js文件保存到 `dist` 文件夹下.
111
- 5. 拷贝编译好的`webclient-mapboxgl-plugins.cmj.min.js`文件单独使用
112
- 6. 将你自己的修改提交到远程仓库[pull request](https://help.github.com/articles/creating-a-pull-request)
78
+
113
79
 
114
- ### 依赖
115
80
 
116
- * webclient-leaflet-plugin.js [1.0+](https://leafletjs.com/2018/12/30/leaflet-1.4.0.html) ([CDN链接](https://unpkg.com/leaflet@1.4.0/dist/leaflet.js))
117
- * [Leaflet](http://leafletjs.com) version 1.0+
118
- * webclient-openlayers-plugin.js [5.0+](https://openlayers.org/) ([CDN链接](https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js))
119
- * [OpenLayers](https://openlayers.org/) version 5.0+
120
- * webclient-mapboxgl-plugin.js [0.50+]() ([CDN链接](https://github.com/mapbox/mapbox-gl-js/releases))
121
- * [MapboxGL](https://docs.mapbox.com/mapbox-gl-js/api/) version 0.50+
81
+ ### V15.0.0
122
82
 
83
+ **更新说明:**
123
84
 
124
- 本仓库 `master` 分支 *仅* 针对最新版的的脚本库。
125
-
126
- ### 版本控制
127
-
128
- 1. master分支实时更新10.3.0.201xmmdd
129
- 1. release分支, 一月一次大的版本更新10.3.0.20190101 -> 10.3.1.20190201
130
- 1. cd leaflet root path & npm publish --access public
131
-
132
- ### 贡献方式
133
-
134
- 请参考 [guidelines for contributing](https://github.com/Esri/esri-leaflet/blob/master/CONTRIBUTING.md).
135
-
136
- ### 团队
137
-
138
- * 创新中心 [DataStore]()
139
- * IGserver-X [IGserver-X]()
140
- * IGServer-S [IGserver-S]()
141
-
142
- ```js
143
- L.zondy.EchartsLayer(map, option).addTo(map);
144
- ```
145
-
146
- ### 证书
147
-
148
- Copyright &copy; 2014-2019 MapGIS
149
-
150
- Licensed under the Apache License, Version 2.0 (the "License");
151
- you may not use this file except in compliance with the License.
152
- You may obtain a copy of the License at
153
-
154
- > http://www.apache.org/licenses/LICENSE-2.0
155
-
156
- Unless required by applicable law or agreed to in writing, software
157
- distributed under the License is distributed on an "AS IS" BASIS,
158
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
159
- See the License for the specific language governing permissions and
160
- limitations under the License.
161
-
162
- A copy of the license is available in the repository's [LICENSE](./LICENSE) file.
85
+ - 全面整合了 MapboxGL 等脚本库,代码模块化,采用最新的 JavaScript ES6 标准;
86
+ - 提供 MapboxGL 开发库、示例、API,支持基于 MapboxGL 的二维数据可视化(含 OGC、MapGIS 地图服务、第三方地图服务等)、量算、查询编辑、空间分析、专题图,以及大数据可视化与分析等功能;
87
+ - 新增集成 Echarts、Echarts GI、MapV 可视化库,支持在 Web 三维模式下实现大数据可视化、大数据分析功能;
88
+ - 新增集成 Turf.js 客户端空间分析库,提供客户端空间计算能力,支持实现在客户端层的空间分析、拓扑分析、空间关系计算等功能;
89
+ - MapboxGL 示例全面优化,提供配套示例说明文档与 API。