Skip to content

Commit 07f54a5

Browse files
committed
优化mapboxgl API review by songym
1 parent 9a8e337 commit 07f54a5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/mapboxgl/control/Logo.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import {LogoBase64} from '@supermap/iclient-common/control/img/Logo';
55
/**
66
* @class mapboxgl.supermap.LogoControl
77
* @category Control
8-
* @classdesc Logo控件。默认不显示。
8+
* @classdesc Logo 控件。默认不显示。
99
*
1010
* @example
1111
* (start code)
1212
* map.addControl(new mapboxgl.supermap.LogoControl(),'bottom-right');
1313
* (end)
14-
* @param {Object} options - logo控件配置项
15-
* @param {string} [options.imageUrl] - logo图片地址
16-
* @param {string} [options.width] - logo图片宽
17-
* @param {string} [options.height] - logo图片高
18-
* @param {string} [options.link] - logo图片跳转链接
19-
* @param {string} [options.alt='SuperMap iClient'] - logo图片失效时显示文本
14+
* @param {Object} options - logo 控件配置项
15+
* @param {string} [options.imageUrl] - logo 图片地址
16+
* @param {string} [options.width] - logo 图片宽
17+
* @param {string} [options.height] - logo 图片高
18+
* @param {string} [options.link] - logo 图片跳转链接
19+
* @param {string} [options.alt='SuperMap iClient'] - logo 图片失效时显示文本
2020
*/
2121
export class Logo {
2222
constructor(options) {
@@ -35,8 +35,8 @@ export class Logo {
3535

3636
/**
3737
* @function mapboxgl.supermap.LogoControl.prototype.onAdd
38-
* @description 添加一个logo
39-
* @returns {div} 返回创建的logo元素
38+
* @description 添加一个 logo
39+
* @returns {div} 返回创建的 logo 元素
4040
*/
4141
onAdd(map) {
4242
this._map = map;

0 commit comments

Comments
 (0)