Skip to content

Commit c40e741

Browse files
fix webmap.js 传参错误
1 parent 8b55594 commit c40e741

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mapboxgl/mapping/WebMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const l7LayerUtil = L7LayerUtil({ featureFilter, expression, spec, L7Layer, L7 }
1515
export class WebMap extends createWebMapExtending(mapboxgl.Evented, { mapRepo: mapboxgl }) {
1616

1717
_createWebMapV2(commonOptions, mapOptions) {
18-
const WebMapV2 = createWebMapV2Extending(createWebMapBaseExtending(createMapClassExtending(mapboxgl.Evented)), { MapManager, mapRepo: mapboxgl });
18+
const WebMapV2 = createWebMapV2Extending(createWebMapBaseExtending(createMapClassExtending(mapboxgl.Evented), 'fire'), { MapManager, mapRepo: mapboxgl });
1919
const webMapHandler = new WebMapV2(this.mapId, commonOptions, mapOptions, this.layerFilter);
2020
return webMapHandler;
2121
}
@@ -35,7 +35,7 @@ export class WebMap extends createWebMapExtending(mapboxgl.Evented, { mapRepo: m
3535
}
3636

3737
_createMapStyle(commonOptions, mapOptions) {
38-
const MapStyle = createMapStyleExtending(mapboxgl.Evented, { mapRepo: mapboxgl });
38+
const MapStyle = createMapStyleExtending(createMapClassExtending(mapboxgl.Evented), { MapManager, mapRepo: mapboxgl });
3939
const mapStyleHandler = new MapStyle(this.mapId, commonOptions, mapOptions);
4040
return mapStyleHandler;
4141
}

src/maplibregl/mapping/WebMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const l7LayerUtil = L7LayerUtil({ featureFilter, expression, spec, L7Layer, L7})
1616
export class WebMap extends createWebMapExtending(maplibregl.Evented, { LngLat: maplibregl.LngLat, CRS: maplibregl.CRS }) {
1717

1818
_createWebMapV2(commonOptions, mapOptions) {
19-
const WebMapV2 = createWebMapV2Extending(createWebMapBaseExtending(createMapClassExtending(maplibregl.Evented)), { MapManager, mapRepo: maplibregl });
19+
const WebMapV2 = createWebMapV2Extending(createWebMapBaseExtending(createMapClassExtending(maplibregl.Evented), 'fire'), { MapManager, mapRepo: maplibregl });
2020
const webMapHandler = new WebMapV2(this.mapId, commonOptions, mapOptions, this.layerFilter);
2121
return webMapHandler;
2222
}
@@ -36,7 +36,7 @@ export class WebMap extends createWebMapExtending(maplibregl.Evented, { LngLat:
3636
}
3737

3838
_createMapStyle(commonOptions, mapOptions) {
39-
const MapStyle = createMapStyleExtending(maplibregl.Evented);
39+
const MapStyle = createMapStyleExtending(createMapClassExtending(maplibregl.Evented), { MapManager, mapRepo: maplibregl });
4040
const mapStyleHandler = new MapStyle(this.mapId, commonOptions, mapOptions);
4141
return mapStyleHandler;
4242
}

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