10000 【update】 视频地图相关api文档优化; review by qiwei · SuperMap/iClient-JavaScript@2f67896 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f67896

Browse files
committed
【update】 视频地图相关api文档优化; review by qiwei
1 parent 254dc4d commit 2f67896

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

src/mapboxgl/mapping/VideoMap.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Coordtransfer from './coordTransfer';
44
import GeojsonLayer from './layers/GeojsonLayer';
55
import VideoMarker from './VideoMarker';
66
import GeojsonSource from './GeojsonSource';
7-
import VideoPopup from './VideoPopup';
7+
import VideoMapPopup from './VideoMapPopup';
88
import VideoLayer from './layers/VideoLayer';
99
import { coordEach } from '@turf/meta';
1010
import { transformCoordReverse } from './util';
@@ -73,7 +73,6 @@ const MAP_DRAW_EVENTS = [
7373
/**
7474
* @class SuperMap.VideoMap
7575
* @classdesc 视频地图
76-
* @category iServer VideoMap
7776
* @param {Object} options - 参数
7877
* @param {string} [options.container='map'] - 地图容器id
7978
* @param {string} [options.src] - 视频地址
@@ -274,7 +273,7 @@ export class VideoMap extends mapboxgl.Evented {
274273
if (!this._mapExisted()) {
275274
return;
276275
}
277-
return new VideoPopup(this, options);
276+
return new VideoMapPopup(this, options);
278277
}
279278
/**
280279
* @function SuperMap.VideoMap.prototype.addLayer

src/mapboxgl/mapping/VideoMapDraw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css';
55
/**
66
* @class SuperMap.VideoMapDraw
77
* @classdesc 视频地图标绘。
8-
* @category iServer VideoMap
98
* @param {Object} options - 标绘配置 详见:{@link https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/API.md}。
109
*/
1110

src/mapboxgl/mapping/VideoPopup.js renamed to src/mapboxgl/mapping/VideoMapPopup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { SuperMap } from '@supermap/iclient-common';
55
const POPUP_EVENTS = ['open', 'close'];
66

77
/**
8-
* @class SuperMap.VideoPupup
8+
* @class SuperMap.VideoMapPopup
99
* @classdesc 视频地图 popup
1010
* @param {Object} videoMap - 视频地图实例。
1111
* @param {Object} options - Marker 配置 详见:{@link https://docs.mapbox.com/mapbox-gl-js/api/markers/#popup-parameters}。

src/mapboxgl/mapping/VideoMarker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import mapboxgl from 'mapbox-gl';
22
import { transformCoord } from './util';
3-
import VideoPopup from './VideoPopup';
3+
import VideoMapPopup from './VideoMapPopup';
44
import { SuperMap } from '@supermap/iclient-common';
55

66
const MARKER_EVENTS = ['drag', 'dragstart', 'dragend'];
@@ -50,7 +50,7 @@ export default class VideoMarker extends mapboxgl.Evented {
5050
* @returns {Marker} Marker 实例。
5151
*/
5252
setPopup(popup) {
53-
if (popup instanceof VideoPopup) {
53+
if (popup instanceof VideoMapPopup) {
5454
this.marker.setPopup(popup.popup);
5555
return this;
5656
}

src/mapboxgl/mapping/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export { WebMap } from './WebMap';
66
export { VideoMapDraw } from './VideoMapDraw';
77
export { VideoMap } from './VideoMap';
88
export { default as VideoMarker } from './VideoMarker';
9-
export { default as VideoPopup } from './VideoPopup';
9+
export { default as VideoMapPopup } from './VideoMapPopup';

0 commit comments

Comments
 (0)
0