@@ -6,24 +6,24 @@ import {MapService} from "../services/MapService";
66 * @class L.supermap.control.changeTileVersion
77 * @classdesc 版本切换控件,支持IE10及以上
88 * @category Control
9- * @extends L.Control{ @linkdoc-leaflet/#control }
9+ * @extends { L.Control }
1010 * @example
1111 * L.supermap.control.changeTileVersion({
1212 * layer: baseLayer,
1313 * position: "topleft",
1414 * orientation: "horizontal"
1515 * }).addTo(map);
16- * @param options - {Object} logo控件配置项</br>
17- * layer - {[ L.Layer]{ @linkdoc -leaflet/#layer}} 绑定的底图图层</br>
18- * position - {string} 控件位置 继承自leaflet control</br>
19- * title - {string} 鼠标滑过时提示</br>
20- * tooltip - {string} tooltip提示显示位置 top | right | bottom | left</br>
21- * collapsed - {boolean} 是否折叠。<br>
22- * nextText - {string} 下一个版本的按钮布局</br>
23- * lastText - {string} 上一个版本的按钮布局</br>
24- * ico - {string} 控件显示的logo</br>
25- * orientation - {string} 方向horizontal|vertical</br>
26- * switch - {boolean} 是否显示上/下一个版本切换控件
16+ * @param {Object } options - logo控件配置项。
17+ * @param { L.Layer } options.layer - 绑定的底图图层。
18+ * @param { string } [options. position='topleft'] - 控件位置 继承自leaflet control。
19+ * @param { string } options. title - 鼠标滑过时提示。
20+ * @param { string } options. tooltip - tooltip提示显示位置 top | right | bottom | left。
21+ * @param { boolean } options. collapsed - 是否折叠。
22+ * @param { string } options. nextText - 下一个版本的按钮布局。
23+ * @param { string } options. lastText - 上一个版本的按钮布局。
24+ * @param { string } options. ico - 控件显示的logo。
25+ * @param { string } options. orientation - 方向horizontal|vertical。
26+ * @param { boolean } options. switch - 是否显示上/下一个版本切换控件。
2727 */
2828export var ChangeTileVersion = L . Control . extend ( {
2929
@@ -69,7 +69,7 @@ export var ChangeTileVersion = L.Control.extend({
6969 /**
7070 * @function L.supermap.control.changeTileVersion.prototype.setContent
7171 * @description 设置版本相关信息
72- * @param version - {Object} 版本信息
72+ * @param {Object } version - 版本信息
7373 */
7474 setContent : function ( version ) {
7575 var content = L . Util . extend ( { } , version ) ;
@@ -79,7 +79,7 @@ export var ChangeTileVersion = L.Control.extend({
7979 /**
8080 * @function L.supermap.control.changeTileVersion.prototype.setVersionName
8181 * @description 设置版本号
82- * @param content - {string} 版本信息
82+ * @param {string } content - 版本信息
8383 * @return {this } this
8484 */
8585 setVersionName : function ( content ) {
@@ -94,7 +94,7 @@ export var ChangeTileVersion = L.Control.extend({
9494 /**
9595 * @function L.supermap.control.changeTileVersion.prototype.setToolTip
9696 * @description 设置提示信息
97- * @param tooltip - { HTMLElement|String} 要需要设置的提示信息
97+ * @param { ( HTMLElement|String) } tooltip - 要需要设置的提示信息
9898 * @return {this } this
9999 */
100100 setToolTip : function ( tooltip ) {
@@ -105,7 +105,7 @@ export var ChangeTileVersion = L.Control.extend({
105105 /**
106106 * @function L.supermap.control.changeTileVersion.prototype.updateLength
107107 * @description 更新进度条长度
108- * @param length - {number} 进度长度参数
108+ * @param { number } length - 进度长度参数
109109 */
110110 updateLength : function ( length ) {
111111 if ( length > 0 ) {
@@ -118,7 +118,7 @@ export var ChangeTileVersion = L.Control.extend({
118118 /**
119119 * @function L.supermap.control.changeTileVersion.prototype.setLayer
120120 * @description 绑定图层
121- * @param layer - {L.supermap.tiledMapLayer} 绑定的图层
121+ * @param {L.supermap.tiledMapLayer } layer - 绑定的图层
122122 */
123123 setLayer : function ( layer ) {
124124 if ( layer ) {
@@ -140,7 +140,7 @@ export var ChangeTileVersion = L.Control.extend({
140140 /**
141141 * @function L.supermap.control.changeTileVersion.prototype.update
142142 * @description 更新缓存切片集及进度条长度
143- * @param tileVersions - {number} 待更新的切片版本号
143+ * @param { number } tileVersions - 待更新的切片版本号
144144 */
145145 update : function ( tileVersions ) {
146146 this . tileVersions = tileVersions ;
@@ -203,7 +203,7 @@ export var ChangeTileVersion = L.Control.extend({
203203 /**
204204 * @function L.supermap.control.changeTileVersion.prototype.tilesVersion
205205 * @description 根据指定版本号请求版本
206- * @param version - {string} 版本号参数
206+ * @param {string } version - 版本号参数
207207 */
208208 tilesVersion : function ( version ) {
209209 var layer = this . options . layer ,
0 commit comments