@@ -52,7 +52,7 @@ const MAP_EVENTS = [
5252/**
5353 * @class VideoMap
5454 * @classdesc 视频地图
55- * @category VideoMap
55+ * @category Visualization Video
5656 * @version 11.2.0
5757 * @modulecategory Mapping
5858 * @param {Object } options - 参数
@@ -76,6 +76,7 @@ const MAP_EVENTS = [
7676 * @param {string } [options.autoplay=true] - 视频是否自动播放
7777 * @param {string } [options.loop=true] - 视频是否循环播放
7878 * @extends {mapboxgl.Evented }
79+ * @usage
7980 */
8081
8182export class VideoMap extends mapboxgl . Evented {
@@ -106,8 +107,16 @@ export class VideoMap extends mapboxgl.Evented {
106107
107108 /**
108109 * @function VideoMap.prototype.addLayer
109- * @description 添加图层。
110+ * @description 添加图层。
110111 * @param {Object } layer - 图层配置。
112+ * @param {string } layer.id - 图层 id
113+ * @param {string } layer.type - 图层类型
114+ * @param {string|Object } layer.source - 数据源配置
115+ * @param {Array } [layer.filter] - 过滤配置
116+ * @param {Object } [layer.layout] - 布局配置
117+ * @param {Object } [layer.paint] - 绘制配置
118+ * @param {number } [layer.maxzoom] - 最大级别
119+ * @param {number } [layer.minzoom] - 最小级别
111120 * @param {string } beforeId - 已经存在的图层 ID。
112121 */
113122 addLayer ( layer , beforeId ) {
@@ -127,6 +136,8 @@ export class VideoMap extends mapboxgl.Evented {
127136 * @description 添加数据源。
128137 * @param {string } id - 数据源 id。
129138 * @param {Object } source - 图层源配置。
139+ * @param {string } source.type - 只支持 geojson
140+ * @param {Object } source.data - geojson 数据。
130141 */
131142 addSource ( id , source ) {
132143 if ( ! this . _mapExisted ( ) ) {
@@ -159,7 +170,7 @@ export class VideoMap extends mapboxgl.Evented {
159170 /**
160171 * @function VideoMap.prototype.removeSource
161172 * @description 移除数据源。
162- * @param {string } id - source id。
173+ * @param {string } id - 数据源 id。
163174 */
164175 removeSource ( id ) {
165176 if ( ! this . _mapExisted ( ) ) {
0 commit comments