File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed
Expand file tree Collapse file tree 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';
44import GeojsonLayer from './layers/GeojsonLayer' ;
55import VideoMarker from './VideoMarker' ;
66import GeojsonSource from './GeojsonSource' ;
7- import VideoPopup from './VideoPopup ' ;
7+ import VideoMapPopup from './VideoMapPopup ' ;
88import VideoLayer from './layers/VideoLayer' ;
99import { coordEach } from '@turf/meta' ;
1010import { 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { SuperMap } from '@supermap/iclient-common';
55const 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}。
Original file line number Diff line number Diff line change 11import mapboxgl from 'mapbox-gl' ;
22import { transformCoord } from './util' ;
3- import VideoPopup from './VideoPopup ' ;
3+ import VideoMapPopup from './VideoMapPopup ' ;
44import { SuperMap } from '@supermap/iclient-common' ;
55
66const 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 }
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ export { WebMap } from './WebMap';
66export { VideoMapDraw } from './VideoMapDraw' ;
77export { VideoMap } from './VideoMap' ;
88export { 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