@@ -4,25 +4,14 @@ import {MapVRenderer} from './mapv/MapVRenderer';
4
4
/**
5
5
* @class SuperMap.Layer.MapVLayer
6
6
* @category Visualization MapV
7
- * @classdesc MapV图层。
8
- * @extends SuperMap.Layer
9
- * @param name - {string} 图层名。
10
- * @param {Object } options - 可选参数,有如下两个参数:
11
- * @param {Mapv.DataSet } options.dataSet - mapv 的dataSet对象。
7
+ * @classdesc MapV 图层。
8
+ * @extends {SuperMap.Layer }
9
+ * @param {string } name - 图层名。
10
+ * @param {Object } options - 可选参数。
11
+ * @param {Mapv.DataSet } options.dataSet - mapv 的 dataSet 对象。
12
+ * @param {Object } options.options - mapv 绘图风格配置信息。
12
13
*/
13
14
export class MapVLayer extends SuperMap . Layer {
14
-
15
- /*
16
- * @function SuperMap.Layer.MapVLayer.prototype.
17
- * @description
18
- * MapV支持webgl和普通canvas渲染.
19
- * 但目前本图层webgl渲染不能正确显示,待解决
20
- *
21
- * @param name
22
- * @param options 有两个参数<br>
23
- * * dataSet: mapv 的dataSet对象
24
- * * options: mapv 绘图风格配置信息
25
- */
26
15
constructor ( name , options ) {
27
16
super ( name , options ) ;
28
17
@@ -40,7 +29,7 @@ export class MapVLayer extends SuperMap.Layer {
40
29
41
30
/**
42
31
* @member {boolean} - [SuperMap.Layer.MapVLayer.prototype.supported=false]
43
- * @description 当前浏览器是否支持canvas绘制。决定了MapV图是否可用 ,内部判断使用。
32
+ * @description 当前浏览器是否支持 canvas 绘制。决定了 MapV 图是否可用 ,内部判断使用。
44
33
*/
45
34
this . supported = false ;
46
35
@@ -105,8 +94,8 @@ export class MapVLayer extends SuperMap.Layer {
105
94
/**
106
95
* @function SuperMap.Layer.MapVLayer.prototype.addData
107
96
* @description 追加数据。
108
- * @param {mapv.DataSet } dataSet - mapv数据集 。
109
- * @param {Object } options - mapv绘图参数 。
97
+ * @param {mapv.DataSet } dataSet - mapv 数据集 。
98
+ * @param {Object } options - mapv 绘图参数 。
110
99
*/
111
100
addData ( dataSet , options ) {
112
101
this . renderer && this . renderer . addData ( dataSet , options ) ;
@@ -116,8 +105,8 @@ export class MapVLayer extends SuperMap.Layer {
116
105
/**
117
106
* @function SuperMap.Layer.MapVLayer.prototype.
118
107
* @description 设置数据。
119
- * @param {mapv.DataSet } dataSet - mapv数据集 。
120
- * @param {Object } options - mapv绘图参数 。
108
+ * @param {mapv.DataSet } dataSet - mapv 数据集 。
109
+ * @param {Object } options - mapv 绘图参数 。
121
110
*/
122
111
setData ( dataSet , options ) {
123
112
this . renderer && this . renderer . setData ( dataSet , options ) ;
@@ -127,7 +116,7 @@ export class MapVLayer extends SuperMap.Layer {
127
116
/**
128
117
* @function SuperMap.Layer.MapVLayer.prototype.getData
129
118
* @description 获取数据。
130
- * @returns {mapv.DataSet } - mapv数据集 。
119
+ * @returns {mapv.DataSet } - mapv 数据集 。
131
120
*/
132
121
getData ( ) {
133
122
if ( this . renderer ) {
@@ -139,7 +128,7 @@ export class MapVLayer extends SuperMap.Layer {
139
128
/**
140
129
* @function SuperMap.Layer.MapVLayer.prototype.removeData
141
130
* @description 删除符合过滤条件的数据。
142
- * @param {function } [ filter] - 过滤条件。条件参数为数据项,返回值为true, 表示删除该元素;否则表示不删除。
131
+ * @param {function } filter - 过滤条件。条件参数为数据项,返回值为 true, 表示删除该元素;否则表示不删除。
143
132
* @example
144
133
* filter=function(data){
145
134
* if(data.id=="1"){
@@ -163,9 +152,9 @@ export class MapVLayer extends SuperMap.Layer {
163
152
164
153
/**
165
154
* @function SuperMap.Layer.MapVLayer.prototype.setMap
166
- * @description 图层已经添加到Map中 。
167
- * 如果当前浏览器支持canvas ,则开始渲染要素;如果不支持则移除图层。
168
- * @param {SuperMap.Map } map - 需要绑定的map对象 。
155
+ * @description 图层已经添加到 Map 中 。
156
+ * 如果当前浏览器支持 canvas ,则开始渲染要素;如果不支持则移除图层。
157
+ * @param {SuperMap.Map } map - 需要绑定的 map 对象 。
169
158
*/
170
159
setMap ( map ) {
171
160
super . setMap ( map ) ;
@@ -179,8 +168,8 @@ export class MapVLayer extends SuperMap.Layer {
179
168
180
169
/**
181
170
* @function SuperMap.Layer.MapVLayer.prototype.moveTo
182
- * @description 重置当前MapV图层的div,再一次与Map控件保持一致 。
183
- * 修改当前显示范围,当平移或者缩放结束后开始重绘MapV图的渲染效果 。
171
+ * @description 重置当前 MapV 图层的 div,再一次与 Map 控件保持一致 。
172
+ * 修改当前显示范围,当平移或者缩放结束后开始重绘 MapV 图的渲染效果 。
184
173
* @param {SuperMap.Bounds } bounds - 图层范围。
185
174
* @param {boolean } [zoomChanged] - 缩放级别是否改变。
186
175
* @param {boolean } [dragging] - 是否拖动。
@@ -221,7 +210,7 @@ export class MapVLayer extends SuperMap.Layer {
221
210
/**
222
211
* @function SuperMap.Layer.MapVLayer.prototype.transferToMapLatLng
223
212
* @description 将经纬度转成底图的投影坐标。
224
- * @param {SuperMap.Lonlat } [ latLng] - 经纬度坐标。
213
+ * @param {SuperMap.Lonlat } latLng - 经纬度坐标。
225
214
*/
226
215
transferToMapLatLng ( latLng ) {
227
216
var source = "EPSG:4326" , dest = "EPSG:4326" ;
0 commit comments