Skip to content

Commit 1d51fff

Browse files
[fix]ol3-echarts@3.0.0删除
1 parent a800ffa commit 1d51fff

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

dist/ol/include-ol.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5757
// 在线
5858
if (!inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5') && !inArray(excludes, 'ol')) {
59-
inputCSS(libsurl + '/openlayers/7.5.2/ol.min.css');
60-
inputScript(libsurl + '/openlayers/7.5.2/ol.js');
59+
inputCSS('https://cdn.jsdelivr.net/npm/ol@7.5.2/ol.min.css');
60+
inputScript('https://cdn.jsdelivr.net/npm/ol@7.5.2/dist/ol.js');
6161
}
6262
if (inArray(includes, 'ol@4.6.5')) {
6363
inputCSS(libsurl + '/openlayers/4.6.5/ol.css');
@@ -85,9 +85,6 @@
8585
if (inArray(includes, 'ol3-echarts')) {
8686
inputScript(libsurl + '/openlayers/ol3-echarts/4.0.1/ol-echarts.js');
8787
}
88-
if (inArray(includes, 'ol3-echarts@3.0.0')) {
89-
inputScript(libsurl + '/openlayers/ol3-echarts/3.0.0/ol3Echarts.min.js');
90-
}
9188
if (inArray(includes, 'ol3-echarts@1.3.6')) {
9289
inputScript(libsurl + '/openlayers/ol3-echarts/1.3.6/ol3Echarts.min.js');
9390
}

dist/openlayers/include-openlayers.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5757
// 在线
5858
if (!inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5') && !inArray(excludes, 'ol')) {
59-
inputCSS(libsurl + '/openlayers/6.14.1/ol.css');
60-
inputScript(libsurl + '/openlayers/6.14.1/ol.js');
59+
inputCSS(libsurl + '/openlayers/7.5.2/ol.min.css');
60+
inputScript(libsurl + '/openlayers/7.5.2/ol.js');
6161
}
6262
if (inArray(includes, 'ol@4.6.5')) {
6363
inputCSS(libsurl + '/openlayers/4.6.5/ol.css');
@@ -83,7 +83,7 @@
8383
inputScript(libsurl + '/proj4/2.11.0/proj4.min.js');
8484
}
8585
if (inArray(includes, 'ol3-echarts')) {
86-
inputScript(libsurl + '/openlayers/ol3-echarts/2.0.6/ol3Echarts.min.js');
86+
inputScript(includes + '/openlayers/ol3-echarts/4.0.1/ol-echarts.js');
8787
}
8888
if (inArray(includes, 'ol3-echarts@1.3.6')) {
8989
inputScript(libsurl + '/openlayers/ol3-echarts/1.3.6/ol3Echarts.min.js');
@@ -101,8 +101,12 @@
101101
inputScript(libsurl + '/openlayers/plugins/animatedclusterlayer/animatedclusterlayer.js');
102102
}
103103
if (inArray(includes, 'layerswitcher')) {
104-
inputCSS(libsurl + '/openlayers/plugins/ol-layerswitcher/3.8.3/ol-layerswitcher.css');
105-
inputScript(libsurl + '/openlayers/plugins/ol-layerswitcher/3.8.3/ol-layerswitcher.js');
104+
inputCSS(libsurl + '/openlayers/plugins/ol-layerswitcher/4.1.1/ol-layerswitcher.min.css');
105+
inputScript(libsurl + '/openlayers/plugins/ol-layerswitcher/4.1.1/ol-layerswitcher.min.js');
106+
}
107+
if (inArray(includes, 'layerswitcher@3.8.3')) {
108+
inputCSS(libsurl + '/openlayers/plugins/ol-layerswitcher/3.8.3/ol-layerswitcher.css');
109+
inputScript(libsurl + '/openlayers/plugins/ol-layerswitcher/3.8.3/ol-layerswitcher.js');
106110
}
107111
if (inArray(includes, 'jsonsql')) {
108112
inputScript(libsurl + '/jsonsql/0.2.5/jsonsql.min.js');

0 commit comments

Comments
 (0)