|
49 | 49 | var includes = (targetScript.getAttribute('include') || "").split(","); |
50 | 50 | var excludes = (targetScript.getAttribute('exclude') || "").split(","); |
51 | 51 | if (!inArray(excludes, 'leaflet')) { |
52 | | - inputCSS("https://cdn.bootcss.com/leaflet/1.3.1/leaflet.css"); |
53 | | - inputScript("https://cdn.bootcss.com/leaflet/1.3.1/leaflet.js"); |
| 52 | + inputCSS("https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css"); |
| 53 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js"); |
54 | 54 | } |
55 | 55 | if (inArray(includes, 'mapv')) { |
56 | 56 | inputScript("http://mapv.baidu.com/build/mapv.min.js"); |
57 | 57 | } |
58 | 58 | if (inArray(includes, 'turf')) { |
59 | | - inputScript("https://cdn.bootcss.com/Turf.js/5.1.6/turf.min.js"); |
| 59 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/Turf.js/5.1.6/turf.min.js"); |
60 | 60 | } |
61 | 61 | if (inArray(includes, 'echarts')) { |
62 | | - inputScript("https://cdn.bootcss.com/echarts/4.1.0/echarts.min.js"); |
| 62 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/echarts/4.1.0/echarts.min.js"); |
63 | 63 | } |
64 | 64 | if (inArray(includes, 'd3')) { |
65 | 65 | inputScript("http://iclient.supermap.io/web/libs/d3/5.5.0/d3.min.js"); |
|
71 | 71 | inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet.d3Layer/leaflet-d3Layer.min.js"); |
72 | 72 | } |
73 | 73 | if (inArray(includes, 'elasticsearch')) { |
74 | | - inputScript("http://cdn.bootcss.com/elasticsearch/15.0.0/elasticsearch.min.js"); |
| 74 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/elasticsearch/15.0.0/elasticsearch.min.js"); |
75 | 75 | } |
76 | 76 | if (inArray(includes, 'deck')) { |
77 | 77 | inputScript("http://iclient.supermap.io/web/libs/deck.gl/5.1.3/deck.gl.min.js"); |
78 | 78 | } |
79 | 79 | if (inArray(includes, 'xlsx')) { |
80 | | - inputScript("https://cdn.bootcss.com/xlsx/0.12.13/xlsx.core.min.js"); |
| 80 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.12.13/xlsx.core.min.js"); |
81 | 81 | } |
82 | 82 | if (!inArray(excludes, 'iclient9-leaflet')) { |
83 | 83 | if (supportES6() && !inArray(includes, 'iclient9-plot-leaflet')) { |
|
94 | 94 | inputScript("http://iclient.supermap.io/web/libs/plotting/leaflet/9.1.0/iclient9-plot-leaflet.min.js"); |
95 | 95 | } |
96 | 96 | if (inArray(includes, 'leaflet.heat')) { |
97 | | - inputScript("http://cdn.bootcss.com/leaflet.heat/0.2.0/leaflet-heat.js"); |
| 97 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/leaflet.heat/0.2.0/leaflet-heat.js"); |
98 | 98 | } |
99 | 99 | if (inArray(includes, 'osmbuildings')) { |
100 | 100 | inputScript("http://iclient.supermap.io/web/libs/osmbuildings/OSMBuildings-Leaflet.js"); |
101 | 101 | } |
102 | 102 | if (inArray(includes, 'leaflet.markercluster')) { |
103 | | - inputCSS("https://cdn.bootcss.com/leaflet.markercluster/1.3.0/MarkerCluster.Default.css"); |
104 | | - inputCSS("https://cdn.bootcss.com/leaflet.markercluster/1.3.0/MarkerCluster.css"); |
105 | | - inputScript("https://cdn.bootcss.com/leaflet.markercluster/1.3.0/leaflet.markercluster.js"); |
| 103 | + inputCSS("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.3.0/MarkerCluster.Default.css"); |
| 104 | + inputCSS("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.3.0/MarkerCluster.css"); |
| 105 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.3.0/leaflet.markercluster.js"); |
106 | 106 | } |
107 | 107 | if (inArray(includes, 'leaflet-icon-pulse')) { |
108 | 108 | inputCSS("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.css"); |
109 | 109 | inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.js"); |
110 | 110 | } |
111 | 111 | if (inArray(includes, 'leaflet.draw')) { |
112 | 112 | inputCSS("http://iclient.supermap.io/web/libs/leaflet/plugins/leaflet.draw/1.0.2/leaflet.draw.css"); |
113 | | - inputScript("http://cdn.bootcss.com/leaflet.draw/1.0.2/leaflet.draw.js"); |
| 113 | + inputScript("https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.js"); |
114 | 114 | } |
115 | 115 | if (inArray(includes, 'leaflet.pm')) { |
116 | 116 | inputCSS("http://iclient.supermap.io/web/libs/leaflet/plugins/leaflet.pm/0.25.0/leaflet.pm.css"); |
|
0 commit comments