We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c1389 commit 3823aceCopy full SHA for 3823ace
src/mapboxgl/mapping/webmap/v3/WebMap.js
@@ -959,7 +959,7 @@ export class WebMap extends mapboxgl.Evented {
959
* 1) 无数据驱动时;
960
* 2) 只有一个颜色数据驱动,且性线数据驱动时
961
* 以上两种情况图例中需要单独的显示符号项
962
- * @returns
+ * @returns {boolean} 是否显示图例单项
963
*/
964
_isShowLegendSingleItem(dataKeys, isLinearColor) {
965
return dataKeys.length === 0 || (dataKeys.length === 1 && dataKeys[0] === 'color' && isLinearColor);
@@ -975,7 +975,7 @@ export class WebMap extends mapboxgl.Evented {
975
* 目前webSymbol为false, 基本符号为true, 雪碧图从json中获取sdf的状态
976
* @param id
977
* @param spriteJson
978
+ * @returns {boolean} sdf状态
979
980
_getSymbolSDFStatus(id, spriteJson) {
981
if (this._isWebsymbolById(id)) {
0 commit comments