File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ export var MapExtend = (function () {
23
23
} ;
24
24
}
25
25
mapboxgl . Map = class Map extends mapboxgl . Map {
26
- overlayLayersManager = { } ;
26
+ constructor ( options ) {
27
+ super ( options ) ;
28
+ this . overlayLayersManager = { } ;
29
+ }
27
30
}
28
31
if ( mapboxgl . Map . prototype . addLayerBak === undefined ) {
29
32
mapboxgl . Map . prototype . addLayerBak = mapboxgl . Map . prototype . addLayer ;
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ import maplibregl from 'maplibre-gl';
10
10
*/
11
11
export var MapExtend = ( function ( ) {
12
12
maplibregl . Map = class Map extends maplibregl . Map {
13
- overlayLayersManager = { } ;
13
+ constructor ( options ) {
14
+ super ( options ) ;
15
+ this . overlayLayersManager = { } ;
16
+ }
14
17
}
15
18
if ( maplibregl . Map . prototype . addLayerBak === undefined ) {
16
19
maplibregl . Map . prototype . addLayerBak = maplibregl . Map . prototype . addLayer ;
You can’t perform that action at this time.
0 commit comments