Skip to content

Commit 7d1c664

Browse files
committed
[fix]echarts-gl不兼容mapbox-gl1.10.0以上,ICL-1336 review by songym
1 parent 7901020 commit 7d1c664

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dist/mapboxgl/include-mapboxgl.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
22
* This program are made available under the terms of the Apache License, Version 2.0
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4-
(function() {
4+
(function () {
55
var r = new RegExp('(^|(.*?\\/))(include-mapboxgl.js)(\\?|$)'),
66
s = document.getElementsByTagName('script'),
77
targetScript;
@@ -153,7 +153,7 @@
153153
inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/examples/js/loaders/GLTFLoader.js');
154154
}
155155
if (inArray(includes, 'echarts-gl')) {
156-
inputScript('https://iclient.supermap.io/web/libs/echarts-gl/1.1.2/echarts-gl.min.js');
156+
inputScript('https://iclient.supermap.io/web/libs/echarts-gl/1.1.2-fix/echarts-gl.min.js');
157157
}
158158
if (inArray(includes, 'mapbox-print-pdf')) {
159159
inputScript('https://iclient.supermap.io/web/libs/mapbox-print-pdf/0.4.4/mapbox-print-pdf.min.js');
@@ -165,10 +165,9 @@
165165
inputScript('https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js');
166166
}
167167
if (inArray(includes, 'tensorflow')) {
168-
inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js');
168+
inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js');
169169
}
170170

171-
172171
// dist
173172
if (!inArray(excludes, 'iclient-mapboxgl')) {
174173
if (supportES6()) {

0 commit comments

Comments
 (0)