We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743a822 commit 2f4674aCopy full SHA for 2f4674a
src/mapboxgl/core/MapExtend.js
@@ -11,7 +11,7 @@ import { getServiceKey } from '@supermap/iclient-common/util/EncryptRequest';
11
* @private
12
*/
13
export var MapExtend = (function () {
14
- if (mapboxgl.VectorTileSource.prototype.beforeLoadBak === undefined) {
+ if (mapboxgl.VectorTileSource && mapboxgl.VectorTileSource.prototype.beforeLoadBak === undefined) {
15
mapboxgl.VectorTileSource.prototype.beforeLoadBak = mapboxgl.VectorTileSource.prototype.beforeLoad;
16
mapboxgl.VectorTileSource.prototype.beforeLoad = async function (id, options) {
17
const url = options && options.tiles && options.tiles[0];
0 commit comments