Skip to content

Commit 8619a27

Browse files
committed
【feature】导出webmapv3; review by qiw
1 parent f99214e commit 8619a27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/mapboxgl/mapping/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { WebMap } from './WebMap';
22
export { initMap } from './InitMap';
3+
export { WebMap as WebMapV3} from './webmap/v3/WebMap';

src/mapboxgl/mapping/webmap/v3/WebMap.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,3 @@ export class WebMap extends mapboxgl.Evented {
263263
return layers;
264264
}
265265
}
266-
267-
mapboxgl.supermap.WebMapV3 = WebMap;

src/mapboxgl/namespace.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import {
6464
ChartView
6565
} from '@supermap/iclient-common/namespace';
6666

67-
import { WebMap, initMap } from './mapping';
67+
import { WebMap, initMap, WebMapV3 } from './mapping';
6868
import mapboxgl from 'mapbox-gl';
6969

7070
mapboxgl.supermap = {...SuperMap, ...mapboxgl.supermap};
@@ -75,6 +75,7 @@ mapboxgl.supermap.Util = Util;
7575
mapboxgl.supermap.decryptSources = decryptSources;
7676
mapboxgl.supermap.WebMap = WebMap;
7777
mapboxgl.supermap.initMap = initMap;
78+
mapboxgl.supermap.WebMapV3 = WebMapV3;
7879
mapboxgl.supermap.Graphic = Graphic;
7980
mapboxgl.supermap.map.getDefaultVectorTileStyle = getDefaultVectorTileStyle;
8081
mapboxgl.supermap.map.setBackground = setBackground;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy