Skip to content

Commit

Permalink
【fix】打包单文件死循环; review by songym
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiaojiao committed Nov 29, 2024
1 parent 122f76f commit 6849a67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/maplibregl/core/MapExtend.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ import { createMapExtendExtending } from '@supermapgis/iclient-common/util/MapEx
* @private
*/
export var MapExtend = (function () {
const originMapProto = maplibregl.Map.prototype;

if (!originMapProto._inherit) {
maplibregl.Map = class MapEnhance extends createMapExtendExtending(maplibregl) {
constructor(options) {
super(options);
}
}
maplibregl.Map.prototype._inherit = true;
}
})();

0 comments on commit 6849a67

Please sign in to comment.