|
56 | 56 | var excludes = (targetScript.getAttribute('exclude') || '').split(','); |
57 | 57 | // 在线 |
58 | 58 | 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'); |
61 | 61 | } |
62 | 62 | if (inArray(includes, 'ol@4.6.5')) { |
63 | 63 | inputCSS(libsurl + '/openlayers/4.6.5/ol.css'); |
|
83 | 83 | inputScript(libsurl + '/proj4/2.11.0/proj4.min.js'); |
84 | 84 | } |
85 | 85 | if (inArray(includes, 'ol3-echarts')) { |
86 | | - inputScript(libsurl + '/openlayers/ol3-echarts/2.0.6/ol3Echarts.min.js'); |
| 86 | + inputScript('../../web/libs' + '/openlayers/ol3-echarts/4.0.0/ol-echarts.js'); |
| 87 | + } |
| 88 | + if (inArray(includes, 'ol3-echarts@3.0.0')) { |
| 89 | + inputScript(libsurl + '/openlayers/ol3-echarts/3.0.0/ol3Echarts.min.js'); |
87 | 90 | } |
88 | 91 | if (inArray(includes, 'ol3-echarts@1.3.6')) { |
89 | 92 | inputScript(libsurl + '/openlayers/ol3-echarts/1.3.6/ol3Echarts.min.js'); |
|
101 | 104 | inputScript(libsurl + '/openlayers/plugins/animatedclusterlayer/animatedclusterlayer.js'); |
102 | 105 | } |
103 | 106 | 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'); |
| 107 | + inputCSS(libsurl + '/openlayers/plugins/ol-layerswitcher/4.1.1/ol-layerswitcher.min.css'); |
| 108 | + inputScript(libsurl + '/openlayers/plugins/ol-layerswitcher/4.1.1/ol-layerswitcher.min.js'); |
| 109 | + } |
| 110 | + if (inArray(includes, 'layerswitcher@3.8.3')) { |
| 111 | + inputCSS(libsurl + '/openlayers/plugins/ol-layerswitcher/3.8.3/ol-layerswitcher.css'); |
| 112 | + inputScript(libsurl + '/openlayers/plugins/ol-layerswitcher/3.8.3/ol-layerswitcher.js'); |
106 | 113 | } |
107 | 114 | if (inArray(includes, 'jsonsql')) { |
108 | 115 | inputScript(libsurl + '/jsonsql/0.2.5/jsonsql.min.js'); |
|
0 commit comments