File tree 5 files changed +6
-8
lines changed
5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Coordtransfer from './coordTransfer';
4
4
import GeojsonLayer from './layers/GeojsonLayer' ;
5
5
import VideoMarker from './VideoMarker' ;
6
6
import GeojsonSource from './GeojsonSource' ;
7
- import VideoPopup from './VideoPopup ' ;
7
+ import VideoMapPopup from './VideoMapPopup ' ;
8
8
import VideoLayer from './layers/VideoLayer' ;
9
9
import { coordEach } from '@turf/meta' ;
10
10
import { transformCoordReverse } from './util' ;
@@ -73,7 +73,6 @@ const MAP_DRAW_EVENTS = [
73
73
/**
74
74
* @class SuperMap.VideoMap
75
75
* @classdesc 视频地图
76
- * @category iServer VideoMap
77
76
* @param {Object } options - 参数
78
77
* @param {string } [options.container='map'] - 地图容器id
79
78
* @param {string } [options.src] - 视频地址
@@ -274,7 +273,7 @@ export class VideoMap extends mapboxgl.Evented {
274
273
if ( ! this . _mapExisted ( ) ) {
275
274
return ;
276
275
}
277
- return new VideoPopup ( this , options ) ;
276
+ return new VideoMapPopup ( this , options ) ;
278
277
}
279
278
/**
280
279
* @function SuperMap.VideoMap.prototype.addLayer
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css';
5
5
/**
6
6
* @class SuperMap.VideoMapDraw
7
7
* @classdesc 视频地图标绘。
8
- * @category iServer VideoMap
9
8
* @param {Object } options - 标绘配置 详见:{@link https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/API.md}。
10
9
*/
11
10
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { SuperMap } from '@supermap/iclient-common';
5
5
const POPUP_EVENTS = [ 'open' , 'close' ] ;
6
6
7
7
/**
8
- * @class SuperMap.VideoPupup
8
+ * @class SuperMap.VideoMapPopup
9
9
* @classdesc 视频地图 popup
10
10
* @param {Object } videoMap - 视频地图实例。
11
11
* @param {Object } options - Marker 配置 详见:{@link https://docs.mapbox.com/mapbox-gl-js/api/markers/#popup-parameters}。
Original file line number Diff line number Diff line change 1
1
import mapboxgl from 'mapbox-gl' ;
2
2
import { transformCoord } from './util' ;
3
- import VideoPopup from './VideoPopup ' ;
3
+ import VideoMapPopup from './VideoMapPopup ' ;
4
4
import { SuperMap } from '@supermap/iclient-common' ;
5
5
6
6
const MARKER_EVENTS = [ 'drag' , 'dragstart' , 'dragend' ] ;
@@ -50,7 +50,7 @@ export default class VideoMarker extends mapboxgl.Evented {
50
50
* @returns {Marker } Marker 实例。
51
51
*/
52
52
setPopup ( popup ) {
53
- if ( popup instanceof VideoPopup ) {
53
+ if ( popup instanceof VideoMapPopup ) {
54
54
this . marker . setPopup ( popup . popup ) ;
55
55
return this ;
56
56
}
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ export { WebMap } from './WebMap';
6
6
export { VideoMapDraw } from './VideoMapDraw' ;
7
7
export { VideoMap } from './VideoMap' ;
8
8
export { default as VideoMarker } from './VideoMarker' ;
9
- export { default as VideoPopup } from './VideoPopup ' ;
9
+ export { default as VideoMapPopup } from './VideoMapPopup ' ;
You can’t perform that action at this time.
0 commit comments