|
50 | 50 |
|
51 | 51 | //加载类库资源文件 |
52 | 52 | function load(config) { |
53 | | - var libsurl = config.libsurl; |
| 53 | + var libsurl = '../../web/libs'; |
54 | 54 | var includes = (targetScript.getAttribute('include') || '').split(','); |
55 | 55 | var excludes = (targetScript.getAttribute('exclude') || '').split(','); |
56 | 56 | if (!inArray(excludes, 'maplibregl')) { |
57 | 57 | inputCSS(libsurl + '/maplibre-gl-js/3.1.0/maplibre-gl.css'); |
58 | 58 | inputScript(libsurl + '/maplibre-gl-js/3.1.0/maplibre-gl.js'); |
59 | 59 | } |
| 60 | + if (inArray(includes, 'L7')) { |
| 61 | + inputScript(libsurl + '/maplibregl-l7-render/index.js'); |
| 62 | + } |
| 63 | + if (inArray(includes, 'g2')) { |
| 64 | + inputScript('https://cdnjs.cloudflare.com/ajax/libs/antv-g2/4.2.8/g2.min.js'); |
| 65 | + } |
60 | 66 | if (inArray(includes, 'turf')) { |
61 | 67 | inputScript(libsurl + '/turf/6.5.0/turf.min.js'); |
62 | 68 | } |
|
86 | 92 | inputScript(libsurl + '/maplibre-echartsLayer/EchartsLayer.min.js'); |
87 | 93 | } |
88 | 94 | if (inArray(includes, 'three')) { |
89 | | - inputScript(libsurl+ '/three/0.150.1/three.min.js'); |
| 95 | + inputScript(libsurl + '/three/0.150.1/three.min.js'); |
90 | 96 | } |
91 | 97 | if (inArray(includes, 'three@0.121.1')) { |
92 | 98 | inputScript(libsurl + '/three/0.121.1/build/three.js'); |
|
193 | 199 | window.server = document.location.toString().match(/file:\/\//) |
194 | 200 | ? 'http://localhost:8090' |
195 | 201 | : document.location.protocol + '//' + document.location.host; |
196 | | - window.exampleWebSymbolBasePath = "../../dist/maplibregl/resources/symbols"; |
| 202 | + window.exampleWebSymbolBasePath = '../../dist/maplibregl/resources/symbols'; |
197 | 203 | })(); |
0 commit comments