Skip to content

Commit 6849a67

Browse files
committed
【fix】打包单文件死循环; review by songym
1 parent 122f76f commit 6849a67

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/maplibregl/core/MapExtend.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ import { createMapExtendExtending } from '@supermapgis/iclient-common/util/MapEx
1010
* @private
1111
*/
1212
export var MapExtend = (function () {
13+
const originMapProto = maplibregl.Map.prototype;
14+
15+
if (!originMapProto._inherit) {
1316
maplibregl.Map = class MapEnhance extends createMapExtendExtending(maplibregl) {
1417
constructor(options) {
1518
super(options);
1619
}
1720
}
21+
maplibregl.Map.prototype._inherit = true;
22+
}
1823
})();

0 commit comments

Comments
 (0)