Skip to content

Commit

Permalink
【docs】fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiaojiao committed Aug 16, 2024
1 parent 7ff5c72 commit f2414f9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
5 changes: 4 additions & 1 deletion build/jsdocs/leaflet/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
"src/common/components/templates/Select",
"src/common/security/KeyServiceParameter",
"src/common/components/templates/TemplateBase",

"src/common/mapping/utils/L7LayerUtil",
"src/common/mapping/utils/Color",
"src/common/mapping/utils/util",

"src/leaflet/components/clientcomputation/ClientComputationViewModel",
"src/leaflet/components/dataflow/DataFlowViewModel",
"src/leaflet/overlay/dataflow/MapvRenderer",
Expand Down
3 changes: 3 additions & 0 deletions build/jsdocs/maplibregl/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"src/common/components/templates/Select",
"src/common/security/KeyServiceParameter",
"src/common/components/templates/TemplateBase",
"src/common/mapping/utils/L7LayerUtil",
"src/common/mapping/utils/Color",
"src/common/mapping/utils/util",
"src/maplibregl/core/Util",
"src/maplibregl/overlay/L7/l7-render"
]
Expand Down
5 changes: 4 additions & 1 deletion build/jsdocs/openlayers/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
"src/common/components/templates/PopContainer",
"src/common/components/templates/Select",
"src/common/security/KeyServiceParameter",
"src/common/components/templates/TemplateBase"
"src/common/components/templates/TemplateBase",
"src/common/mapping/utils/L7LayerUtil",
"src/common/mapping/utils/Color",
"src/common/mapping/utils/util"
]
},
"plugins": ["plugins/markdown","../plugins/usage", "../plugins/moduleCategories"],
Expand Down
17 changes: 4 additions & 13 deletions src/common/mapping/WebMapV3.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
}

/**
* @private
* @function WebMap.prototype.initializeMap
* @description 登陆窗口后添加地图图层。
* @param {Object} mapInfo - map 信息。
* @param {Object} map - map 实例。
* @private
*/
initializeMap(mapInfo, map) {
this._mapInfo = mapInfo;
Expand Down Expand Up @@ -801,11 +801,10 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
}

/**
* @private
* 1) 无数据驱动时;
* 2) 只有一个颜色数据驱动,且性线数据驱动时
* 以上两种情况图例中需要单独的显示符号项
* @returns {boolean} 是否显示图例单项
* 是否显示图例单项
*/
_isShowLegendSingleItem(dataKeys, isLinearColor) {
return dataKeys.length === 0 || (dataKeys.length === 1 && dataKeys[0] === 'color' && isLinearColor);
Expand All @@ -817,12 +816,8 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
}

/**
* @private
* 获取icon-image 的sdf状态
* 目前webSymbol为false, 基本符号为true, 雪碧图从json中获取sdf的状态
* @param id
* @param spriteJson
* @returns {boolean} sdf状态
*/
_getSymbolSDFStatus(id, spriteJson) {
if (this._isWebsymbolById(id)) {
Expand Down Expand Up @@ -1333,10 +1328,8 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
}

/**
* @private
* 获取线宽
* @param symbolStyle
* @returns {number} 多线返回整体线宽,单线返回线宽
* 多线返回整体线宽,单线返回线宽
*/
_getLineWidth(symbolStyle) {
if (symbolStyle instanceof Array) {
Expand All @@ -1346,10 +1339,8 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, mapRe
}

/**
* @private
* 计算多线符号的整体线宽
* @param styles
* @returns {number} 整体线宽
* 整体线宽
*/
_getWholeWidth(styles) {
let topBoundary;
Expand Down

0 comments on commit f2414f9

Please sign in to comment.