|  | 
| 53 | 53 |  var includes = (targetScript.getAttribute('include') || "").split(","); | 
| 54 | 54 |  var excludes = (targetScript.getAttribute('exclude') || "").split(","); | 
| 55 | 55 |  if (!inArray(includes, 'mapbox-gl-enhance') && !inArray(excludes, 'mapbox-gl')) { | 
| 56 |  | - inputCSS("https://cdn.bootcss.com/mapbox-gl/1.3.1/mapbox-gl.css"); | 
| 57 |  | - inputScript("https://cdn.bootcss.com/mapbox-gl/1.3.1/mapbox-gl.js"); | 
|  | 56 | + inputCSS('https://cdn.jsdelivr.net/npm/mapbox-gl@1.6.1/dist/mapbox-gl.min.css'); | 
|  | 57 | + inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl@1.6.1/dist/mapbox-gl.min.js'); | 
| 58 | 58 |  } | 
| 59 | 59 |  if (inArray(includes, 'mapbox-gl-enhance')) { | 
| 60 | 60 |  inputCSS("https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.2.0/mapbox-gl-enhance.css"); | 
|  | 
| 65 | 65 |  inputScript("https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.0.9/mapbox-gl-draw.js"); | 
| 66 | 66 |  } | 
| 67 | 67 |  if (inArray(includes, 'compare')) { | 
| 68 |  | - inputCSS("https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.2.1/mapbox-gl-compare.css"); | 
| 69 |  | - inputScript("https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.2.1/mapbox-gl-compare.js"); | 
|  | 68 | + inputCSS( | 
|  | 69 | + 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.3.0/mapbox-gl-compare.css' | 
|  | 70 | + ); | 
|  | 71 | + inputScript( | 
|  | 72 | + 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.3.0/mapbox-gl-compare.js' | 
|  | 73 | + ); | 
| 70 | 74 |  } | 
| 71 | 75 |  if (inArray(includes, 'mapv')) { | 
| 72 |  | - inputScript("https://mapv.baidu.com/build/mapv.min.js"); | 
|  | 76 | + inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.42/build/mapv.min.js"); | 
| 73 | 77 |  } | 
| 74 | 78 |  if (inArray(includes, 'echarts')) { | 
| 75 |  | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | 
| 76 |  | - inputScript("https://iclient.supermap.io/web/libs/echartsLayer/EchartsLayer.min.js"); | 
| 77 |  | - inputScript("https://iclient.supermap.io/web/libs/echarts-liquidfill/echarts-liquidfill.min.js"); | 
|  | 79 | +  inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | 
|  | 80 | +  inputScript('https://iclient.supermap.io/web/libs/echartsLayer/EchartsLayer.min.js'); | 
|  | 81 | +  inputScript('https://iclient.supermap.io/web/libs/echarts-liquidfill/echarts-liquidfill.min.js'); | 
| 78 | 82 |  } | 
| 79 | 83 |  if (inArray(includes, 'echarts-vue')) { | 
| 80 |  | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | 
| 81 |  | - inputScript("https://cdn.jsdelivr.net/npm/vue-echarts@4.0.4/dist/vue-echarts.min.js"); | 
| 82 |  | - inputScript("https://iclient.supermap.io/web/libs/echarts-liquidfill/echarts-liquidfill.min.js"); | 
| 83 |  | - inputScript("https://iclient.supermap.io/web/libs/echartsLayer/EchartsLayer.min.js"); | 
|  | 84 | +  inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | 
|  | 85 | +  inputScript("https://cdn.jsdelivr.net/npm/vue-echarts@4.0.4/dist/vue-echarts.min.js"); | 
|  | 86 | +  inputScript("https://iclient.supermap.io/web/libs/echarts-liquidfill/echarts-liquidfill.min.js"); | 
|  | 87 | +  inputScript("https://iclient.supermap.io/web/libs/echartsLayer/EchartsLayer.min.js"); | 
| 84 | 88 |  } | 
| 85 | 89 |  if (inArray(includes, 'three')) { | 
| 86 | 90 |  inputScript("https://cdnjs.cloudflare.com/ajax/libs/three.js/92/three.min.js"); | 
| 87 | 91 |  } | 
| 88 | 92 |  if (inArray(includes, 'xlsx')) { | 
| 89 |  | - inputScript("https://cdn.bootcss.com/xlsx/0.15.1/xlsx.core.min.js"); | 
|  | 93 | +  inputScript('https://cdn.bootcss.com/xlsx/0.15.3/xlsx.core.min.js'); | 
| 90 | 94 |  } | 
| 91 | 95 |  if (inArray(includes, 'proj4')) { | 
| 92 |  | - inputScript("https://cdn.bootcss.com/proj4js/2.5.0/proj4.js"); | 
|  | 96 | +  inputScript('https://cdn.bootcss.com/proj4js/2.6.0/proj4.js'); | 
| 93 | 97 |  } | 
| 94 | 98 |  if (inArray(includes, 'shapefile')) { | 
| 95 | 99 |  inputScript("https://unpkg.com/shapefile@0.6.6/dist/shapefile.js"); | 
|  | 
| 108 | 112 |  inputScript("https://iclient.supermap.io/web/libs/geostats/geostats.js"); | 
| 109 | 113 |  } | 
| 110 | 114 |  if (inArray(includes, 'canvg')) { | 
| 111 |  | - inputScript("https://iclient.supermap.io/web/libs/canvg/canvg.min.js"); | 
|  | 115 | + inputScript("https://cdn.jsdelivr.net/npm/canvg@3.0.2/lib/umd.min.js"); | 
| 112 | 116 |  } | 
| 113 | 117 |  if (inArray(includes, 'convert')) { | 
| 114 | 118 |  inputScript("https://iclient.supermap.io/web/libs/xml-js/1.6.8/xml-js.min.js"); | 
|  | 
0 commit comments