Skip to content

Commit 51fb498

Browse files
committed
【fix】fix docs; review by songym
1 parent 55152fa commit 51fb498

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/mapboxgl/mapping/webmap/v3/WebMap.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ export class WebMap extends mapboxgl.Evented {
146146
maxzoom,
147147
sprite = ''
148148
} = this._mapInfo;
149-
// if (this._mapInfo.center && crs === 'EPSG:3857') {
150-
// center = Util.unproject(center);
151-
// }
152149
center = this.mapOptions.center || center;
153150
zoom = this.mapOptions.zoom || zoom;
154151
bearing = this.mapOptions.bearing || bearing;
@@ -823,7 +820,7 @@ export class WebMap extends mapboxgl.Evented {
823820
/**
824821
* 获取线宽
825822
* @param symbolStyle
826-
* @returns 多线返回整体线宽,单线返回线宽
823+
* @returns {number} 多线返回整体线宽,单线返回线宽
827824
*/
828825
_getLineWidth(symbolStyle) {
829826
if (symbolStyle instanceof Array) {
@@ -835,7 +832,7 @@ export class WebMap extends mapboxgl.Evented {
835832
/**
836833
* 计算多线符号的整体线宽
837834
* @param styles
838-
* @returns
835+
* @returns {number} 整体线宽
839836
*/
840837
_getWholeWidth(styles) {
841838
let topBoundary;

0 commit comments

Comments
 (0)