Skip to content

Commit 98c09e6

Browse files
committed
【docs】fix jsdcs
1 parent 12d419d commit 98c09e6

File tree

5 files changed

+16
-23
lines changed

5 files changed

+16
-23
lines changed

build/jsdocs/mapboxgl/docs.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@
6464
"src/common/components/templates/Select",
6565
"src/common/security/KeyServiceParameter",
6666
"src/common/components/templates/TemplateBase",
67+
"src/common/mapping/utils/L7LayerUtil",
68+
"src/common/mapping/utils/Color",
69+
"src/common/mapping/utils/util",
6770
"src/mapboxgl/core/Util",
68-
"src/mapboxgl/overlay/L7/l7-render",
69-
"src/mapboxgl/mapping/utils"
71+
"src/mapboxgl/overlay/L7/l7-render"
7072
]
7173
},
7274
"plugins": ["plugins/markdown","../plugins/usage", "../plugins/moduleCategories"],

src/common/mapping/WebMap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@
349349
}
350350
)
351351
.catch((error) => {
352+
/**
353+
* @event WebMap#getmapinfofailed
354+
* @description 获取地图信息失败。
355+
* @property {Object} error - 失败原因。
356+
*/
352357
this.fire('getmapinfofailed', { error });
353358
console.log(error);
354359
});

src/common/mapping/WebMapService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,6 @@ export class WebMapService {
791791
_isMvt(serviceUrl, datasetName, baseProjection) {
792792
return this._getDatasetsInfo(serviceUrl, datasetName).then(info => {
793793
// 判断是否和底图坐标系一直
794-
/* eslint-disable */
795794
if (info.epsgCode == baseProjection.split('EPSG:')[1]) {
796795
return FetchRequest.get(`${info.url}/tilefeature.mvt`)
797796
.then(function (response) {
@@ -1124,6 +1123,7 @@ export class WebMapService {
11241123
}
11251124

11261125
/**
1126+
* @private
11271127
* @description 行政区划原始数据和当前数据是否匹配
11281128
*/
11291129
_isMatchAdministrativeName(featureName, fieldName) {

src/common/mapping/WebMapV2.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
4444
}
4545

4646
/**
47+
* @private
4748
* @function WebMap.prototype.initializeMap
4849
* @description 登陆窗口后添加地图图层。
4950
* @param {Object} mapInfo - map 信息。
@@ -352,11 +353,6 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
352353
}
353354
)
354355
.catch((error) => {
355-
/**
356-
* @event WebMapViewModel#getmapinfofailed
357-
* @description 获取地图信息失败。
358-
* @property {Object} error - 失败原因。
359-
*/
360356
this.fire('getmapinfofailed', { error });
361357
});
362358
}
@@ -613,11 +609,6 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
613609
}
614610
)
615611
.catch((error) => {
616-
/**
617-
* @event WebMapViewModel#getmapinfofailed
618-
* @description 获取地图信息失败。
619-
* @property {Object} error - 失败原因。
620-
*/
621612
this.fire('getmapinfofailed', { error });
622613
});
623614
}
@@ -716,11 +707,6 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
716707
}
717708
)
718709
.catch((error) => {
719-
/**
720-
* @event WebMapViewModel#getmapinfofailed
721-
* @description 获取地图信息失败。
722-
* @property {Object} error - 失败原因。
723-
*/
724710
this.fire('getmapinfofailed', { error });
725711
});
726712
}

src/common/mapping/WebMapV3.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
173173
}
174174

175175
/**
176+
* @private
176177
* @function WebMap.prototype.initializeMap
177178
* @description 登陆窗口后添加地图图层。
178179
* @param {Object} mapInfo - map 信息。
@@ -368,11 +369,6 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
368369
this._addLayersToMap();
369370
})
370371
.catch((error) => {
371-
/**
372-
* @event WebMap#getmapfailed
373-
* @description 获取地图信息失败。
374-
* @property {Object} error - 失败原因。
375-
*/
376372
this.fire('getmapinfofailed', { error: error });
377373
console.error(error);
378374
});
@@ -805,6 +801,7 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
805801
}
806802

807803
/**
804+
* @private
808805
* 1) 无数据驱动时;
809806
* 2) 只有一个颜色数据驱动,且性线数据驱动时
810807
* 以上两种情况图例中需要单独的显示符号项
@@ -820,6 +817,7 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
820817
}
821818

822819
/**
820+
* @private
823821
* 获取icon-image 的sdf状态
824822
* 目前webSymbol为false, 基本符号为true, 雪碧图从json中获取sdf的状态
825823
* @param id
@@ -1335,6 +1333,7 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
13351333
}
13361334

13371335
/**
1336+
* @private
13381337
* 获取线宽
13391338
* @param symbolStyle
13401339
* @returns {number} 多线返回整体线宽,单线返回线宽
@@ -1347,6 +1346,7 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
13471346
}
13481347

13491348
/**
1349+
* @private
13501350
* 计算多线符号的整体线宽
13511351
* @param styles
13521352
* @returns {number} 整体线宽

0 commit comments

Comments
 (0)