forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMapExtend.js
More file actions
23 lines (21 loc) · 817 Bytes
/
MapExtend.js
File metadata and controls
23 lines (21 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import maplibregl from 'maplibre-gl';
import { createMapExtendExtending } from '@supermapgis/iclient-common/util/MapExtend';
/**
* @function MapExtend
* @description 扩展 maplibregl.Map。
* @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;
}
})();