Skip to content

Commit 031cb26

Browse files
committed
review部分注释
1 parent 2e34fa8 commit 031cb26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+56065
-55969
lines changed

dist/iclient-classic.js

Lines changed: 2920 additions & 2941 deletions
Large diffs are not rendered by default.

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-leaflet.js

Lines changed: 20478 additions & 20352 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-mapboxgl.js

Lines changed: 11973 additions & 12011 deletions
Large diffs are not rendered by default.

dist/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 20291 additions & 20329 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/classic/overlay/MapVLayer.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export class MapVLayer extends SuperMap.Layer {
3737
canvas = null;
3838

3939
/**
40-
* @member SuperMap.Layer.MapVLayer.prototype.canvasContext -{Canvas}
40+
* @private
41+
* @member SuperMap.Layer.MapVLayer.prototype.canvasContext -{CanvasContext}
4142
* @description MapV图主绘制对象。
4243
*/
4344
canvasContext = null;
@@ -49,9 +50,9 @@ export class MapVLayer extends SuperMap.Layer {
4950
* 但目前本图层webgl渲染不能正确显示,待解决
5051
*
5152
* @param name
52-
* @param options 有两个参数
53-
* dataSet: mapv 的dataSet对象
54-
* options: mapv 绘图风格配置信息
53+
* @param options 有两个参数<br>
54+
* * dataSet: mapv 的dataSet对象
55+
* * options: mapv 绘图风格配置信息
5556
*/
5657
constructor(name, options) {
5758
super(name, options);
@@ -77,6 +78,7 @@ export class MapVLayer extends SuperMap.Layer {
7778

7879

7980
/**
81+
* @function SuperMap.Layer.MapVLayer.prototype.destroy
8082
* @override
8183
*/
8284
destroy() {
@@ -95,8 +97,8 @@ export class MapVLayer extends SuperMap.Layer {
9597
/**
9698
* @function SuperMap.Layer.MapVLayer.prototype.addData
9799
* @description 追加数据
98-
* @param dataSet - {MapV.DataSet} 追加数据集
99-
* @param options - {MapV.options} 追加的数据参数
100+
* @param dataSet - {mapv.DataSet} mapv数据集
101+
* @param options - {Object} mapv绘图参数
100102
*/
101103
addData(dataSet, options) {
102104
this.renderer && this.renderer.addData(dataSet, options);
@@ -106,8 +108,8 @@ export class MapVLayer extends SuperMap.Layer {
106108
/**
107109
* @function SuperMap.Layer.MapVLayer.prototype.
108110
* @description 设置数据
109-
* @param dataSet {MapV.DataSet} 追加数据集
110-
* @param options {MapV.options} 追加的数据参数
111+
* @param dataSet {mapv.DataSet} mapv数据集
112+
* @param options {Object} mapv绘图参数
111113
*/
112114
setData(dataSet, options) {
113115
this.renderer && this.renderer.setData(dataSet, options);
@@ -116,8 +118,8 @@ export class MapVLayer extends SuperMap.Layer {
116118

117119
/**
118120
* @function SuperMap.Layer.MapVLayer.prototype.getData
119-
* @description 获取数据集
120-
* @return {SuperMap.Layer.MapVLayer.prototype.dataSet}
121+
* @description 获取数据
122+
* @return {mapv.DataSet} mapv数据集
121123
*/
122124
getData() {
123125
if (this.renderer) {
@@ -132,11 +134,11 @@ export class MapVLayer extends SuperMap.Layer {
132134
* @param filter - {string} 过滤条件
133135
* @example
134136
* filter=function(data){
135-
* if(data.id="1"){
136-
* return true
137-
* }
138-
* return false;
139-
* }
137+
* if(data.id="1"){
138+
* return true
139+
* }
140+
* return false;
141+
* }
140142
*/
141143
removeData(filter) {
142144
this.renderer && this.renderer.removeData(filter);

src/classic/services/AddressMatchService.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export class AddressMatchService extends CommonServiceBase {
1717

1818
/**
1919
* @function SuperMap.REST.AddressMatchService.prototype.code
20-
* @description 编码
21-
* @param params - {string} 编码参数
20+
* @description 正向匹配
21+
* @param params - {SuperMap.GeoCodingParameter} 正向匹配参数
2222
* @param callback - {function} 回调函数
23-
* @return {SuperMap.REST.AddressMatchService} 返回正向匹配地址
23+
* @return {this}
2424
*/
2525
code(params, callback) {
2626
var me = this;
@@ -38,10 +38,10 @@ export class AddressMatchService extends CommonServiceBase {
3838

3939
/**
4040
* @function SuperMap.REST.AddressMatchService.prototype.decode
41-
* @description 解码
42-
* @param params - {string} 编码参数
41+
* @description 反向匹配
42+
* @param params - {SuperMap.GeoDeCodingParameter} 反向匹配参数
4343
* @param callback - {function} 回调函数
44-
* @return {SuperMap.REST.AddressMatchService} 返回反向匹配地址
44+
* @return {this}
4545
*/
4646
decode(params, callback) {
4747
var me = this;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy