|
36 | 36 | var includes = (targetScript.getAttribute('include') || "").split(","); |
37 | 37 | var excludes = (targetScript.getAttribute('exclude') || "").split(","); |
38 | 38 | if (!inArray(excludes, 'leaflet')) { |
39 | | - inputCSS("http://cdn.bootcss.com/leaflet/1.2.0/leaflet.css"); |
40 | | - inputScript("http://cdn.bootcss.com/leaflet/1.2.0/leaflet-src.js"); |
| 39 | + inputCSS("https://cdn.bootcss.com/leaflet/1.3.1/leaflet.css"); |
| 40 | + inputScript("https://cdn.bootcss.com/leaflet/1.3.1/leaflet.js"); |
41 | 41 | } |
42 | 42 | if (inArray(includes, 'mapv')) { |
43 | 43 | inputScript("http://mapv.baidu.com/build/mapv.min.js"); |
44 | 44 | } |
45 | 45 | if (inArray(includes, 'turf')) { |
46 | | - inputScript("https://cdn.bootcss.com/Turf.js/4.6.1/turf.min.js"); |
| 46 | + inputScript("https://cdn.bootcss.com/Turf.js/5.1.6/turf.js"); |
47 | 47 | } |
48 | 48 | if (inArray(includes, 'echarts')) { |
49 | | - inputScript("http://cdn.bootcss.com/echarts/4.0.4/echarts.min.js"); |
| 49 | + inputScript("https://cdn.bootcss.com/echarts/4.1.0/echarts.min.js"); |
50 | 50 | } |
51 | 51 | if (inArray(includes, 'd3')) { |
52 | | - inputScript("https://cdn.bootcss.com/d3/4.10.2/d3.min.js"); |
| 52 | + inputScript("http://iclient.supermap.io/web/libs/d3/5.5.0/d3.min.js"); |
53 | 53 | } |
54 | 54 | if (inArray(includes, 'd3-hexbin')) { |
55 | 55 | inputScript("https://d3js.org/d3-hexbin.v0.2.min.js"); |
|
58 | 58 | inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet.d3Layer/leaflet-d3Layer.min.js"); |
59 | 59 | } |
60 | 60 | if (inArray(includes, 'elasticsearch')) { |
61 | | - inputScript("http://cdn.bootcss.com/elasticsearch/13.0.1/elasticsearch.min.js"); |
| 61 | + inputScript("http://cdn.bootcss.com/elasticsearch/15.0.0/elasticsearch.min.js"); |
62 | 62 | } |
63 | 63 | if (inArray(includes, 'deck')) { |
64 | 64 | inputScript("http://iclient.supermap.io/web/libs/deck.gl/5.1.3/deck.gl.js"); |
65 | 65 | } |
66 | 66 | if (!inArray(excludes, 'iclient9-leaflet')) { |
67 | | - inputScript("../../dist/iclient9-leaflet.min.js"); |
| 67 | + inputScript("../../dist/iclient9-leaflet.js"); |
68 | 68 | } |
69 | 69 | if (inArray(includes, 'iclient9-leaflet-css')) { |
70 | 70 | inputCSS("../../dist/iclient9-leaflet.min.css"); |
|
73 | 73 | inputScript("http://cdn.bootcss.com/leaflet.heat/0.2.0/leaflet-heat.js"); |
74 | 74 | } |
75 | 75 | if (inArray(includes, 'osmbuildings')) { |
76 | | - inputScript("http://iclient.supermap.io/libs/osmbuildings/OSMBuildings-Leaflet.js"); |
| 76 | + inputScript("http://iclient.supermap.io/web/libs/osmbuildings/OSMBuildings-Leaflet.js"); |
77 | 77 | } |
78 | 78 | if (inArray(includes, 'leaflet.markercluster')) { |
79 | | - inputCSS("http://cdn.bootcss.com/leaflet.markercluster/1.0.3/MarkerCluster.Default.css"); |
80 | | - inputCSS("http://cdn.bootcss.com/leaflet.markercluster/1.0.3/MarkerCluster.css"); |
81 | | - inputScript("http://cdn.bootcss.com/leaflet.markercluster/1.0.3/leaflet.markercluster.js"); |
| 79 | + inputCSS("https://cdn.bootcss.com/leaflet.markercluster/1.3.0/MarkerCluster.Default.css"); |
| 80 | + inputCSS("https://cdn.bootcss.com/leaflet.markercluster/1.3.0/MarkerCluster.css"); |
| 81 | + inputScript("https://cdn.bootcss.com/leaflet.markercluster/1.3.0/leaflet.markercluster.js"); |
82 | 82 | } |
83 | 83 | if (inArray(includes, 'leaflet-icon-pulse')) { |
84 | 84 | inputCSS("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.css"); |
85 | 85 | inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.js"); |
86 | 86 | } |
87 | 87 | if (inArray(includes, 'leaflet.draw')) { |
88 | | - inputCSS("http://cdn.bootcss.com/leaflet.draw/0.4.12/leaflet.draw.css"); |
89 | | - inputScript("http://cdn.bootcss.com/leaflet.draw/0.4.12/leaflet.draw.js"); |
| 88 | + inputCSS("http://cdn.bootcss.com/leaflet.draw/1.0.2/leaflet.draw.css"); |
| 89 | + inputScript("http://cdn.bootcss.com/leaflet.draw/1.0.2/leaflet.draw.js"); |
90 | 90 | } |
91 | 91 | if (inArray(includes, 'leaflet.pm')) { |
92 | | - inputCSS("http://cdn.bootcss.com/leaflet.pm/0.16.0/leaflet.pm.min.css"); |
93 | | - inputScript("http://cdn.bootcss.com/leaflet.pm/0.16.0/leaflet.pm.min.js"); |
| 92 | + inputCSS("http://iclient.supermap.io/web/libs/leaflet/plugins/leaflet.pm/0.25.0/leaflet.pm.min.css"); |
| 93 | + inputScript("http://iclient.supermap.io/web/libs/leaflet/plugins/leaflet.pm/0.25.0/leaflet.pm.min.js"); |
94 | 94 | } |
95 | 95 | if (inArray(includes, 'leaflet.miniMap')) { |
96 | | - inputCSS("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-miniMap/dist/Control.MiniMap.min.css"); |
97 | | - inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-miniMap/dist/Control.MiniMap.min.js"); |
| 96 | + inputCSS("http://iclient.supermap.io/web/libs/leaflet/plugins/leaflet-miniMap/3.6.1/dist/Control.MiniMap.min.css"); |
| 97 | + inputScript("http://iclient.supermap.io/web/libs/leaflet/plugins/leaflet-miniMap/3.6.1/dist/Control.MiniMap.min.js"); |
98 | 98 | } |
99 | 99 | if (inArray(includes, 'leaflet.sidebyside')) { |
100 | 100 | inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-side-by-side/leaflet-side-by-side.min.js"); |
101 | 101 | } |
102 | 102 | } |
103 | 103 |
|
| 104 | + |
104 | 105 | load(); |
105 | 106 | window.isLocal = false; |
106 | 107 | window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host; |
|
0 commit comments