| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 957750d commit 96080fc
17 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ | |||
| 59 | 59 | inputScript("https://iclient.supermap.io/web/libs/iclient8c/libs/SuperMap.Include.js"); | |
| 60 | 60 | } | |
| 61 | 61 | if (inArray(includes, 'mapv')) { | |
| 62 | - inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js"); | ||
| 62 | + inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.62/build/mapv.min.js"); | ||
| 63 | 63 | } | |
| 64 | 64 | if (inArray(includes, 'echarts')) { | |
| 65 | 65 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); | |
@@ -150,11 +150,11 @@ | |||
| 150 | 150 | inputScript("https://iclient.supermap.io/web/libs/iclient8c/resource/Plugins/Plotting/DefaultStyleConfiguration.js"); | |
| 151 | 151 | } | |
| 152 | 152 | if (inArray(includes, 'tensorflow')) { | |
| 153 | - inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js'); | ||
| 153 | + inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.9.0/dist/tf.min.js'); | ||
| 154 | 154 | } | |
| 155 | 155 | } | |
| 156 | 156 | ||
| 157 | 157 | load(); | |
| 158 | 158 | window.isLocal = false; | |
| 159 | 159 | window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host; | |
| 160 | - })(); | ||
| 160 | + })(); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,17 +76,17 @@ | |||
| 76 | 76 | if (inArray(includes, 'leaflet-geoman')) { | |
| 77 | 77 | inputCSS('https://cdn.jsdelivr.net/npm/@skyraptor/leaflet-geoman-free@2.11.3/dist/leaflet-geoman.css'); | |
| 78 | 78 | inputScript('https://cdn.jsdelivr.net/npm/@skyraptor/leaflet-geoman-free@2.11.3/dist/leaflet-geoman.min.js'); | |
| 79 | - | ||
| 79 | + | ||
| 80 | 80 | } | |
| 81 | 81 | if (inArray(includes, 'leaflet.miniMap')) { | |
| 82 | 82 | inputCSS('https://cdn.bootcdn.net/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.min.css'); | |
| 83 | 83 | inputScript('https://cdn.bootcdn.net/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.min.js'); | |
| 84 | 84 | } | |
| 85 | 85 | if (inArray(includes, 'mapv')) { | |
| 86 | - inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js'); | ||
| 86 | + inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.62/build/mapv.min.js'); | ||
| 87 | 87 | } | |
| 88 | 88 | if (inArray(includes, 'turf')) { | |
| 89 | - inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/5.1.6/turf.min.js'); | ||
| 89 | + inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/6.5.0/turf.min.js'); | ||
| 90 | 90 | } | |
| 91 | 91 | if (inArray(includes, 'echarts')) { | |
| 92 | 92 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); | |
@@ -95,7 +95,7 @@ | |||
| 95 | 95 | inputScript('https://cdn.bootcdn.net/ajax/libs/elasticsearch/16.7.1/elasticsearch.js'); | |
| 96 | 96 | } | |
| 97 | 97 | if (inArray(includes, 'xlsx')) { | |
| 98 | - inputScript('https://cdn.jsdelivr.net/npm/xlsx@0.16.7/dist/xlsx.core.min.js'); | ||
| 98 | + inputScript('https://cdn.jsdelivr.net/npm/xlsx@0.17.2/dist/xlsx.core.min.js'); | ||
| 99 | 99 | } | |
| 100 | 100 | // 本地 | |
| 101 | 101 | if (inArray(includes, 'leaflet.sidebyside')) { | |
@@ -127,7 +127,7 @@ | |||
| 127 | 127 | inputScript('https://iclient.supermap.io/web/libs/bezier-easing/2.1.0/bezier-easing.js'); | |
| 128 | 128 | } | |
| 129 | 129 | if (inArray(includes, 'tensorflow')) { | |
| 130 | - inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js'); | ||
| 130 | + inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.9.0/dist/tf.min.js'); | ||
| 131 | 131 | } | |
| 132 | 132 | ||
| 133 | 133 | // iclient | |
@@ -144,16 +144,14 @@ | |||
| 144 | 144 | if (inArray(includes, 'iclient-plot-leaflet')) { | |
| 145 | 145 | inputCSS('https://iclient.supermap.io/web/libs/plotting/leaflet/10.2.0/iclient-plot-leaflet.css'); | |
| 146 | 146 | if (supportES6()) { | |
| 147 | - inputScript( | ||
| 148 | - 'https://iclient.supermap.io/web/libs/plotting/leaflet/10.2.0/iclient-plot-leaflet-es6.min.js' | ||
| 149 | - ); | ||
| 147 | + inputScript('https://iclient.supermap.io/web/libs/plotting/leaflet/10.2.0/iclient-plot-leaflet-es6.min.js'); | ||
| 150 | 148 | } else { | |
| 151 | 149 | inputScript('https://iclient.supermap.io/web/libs/plotting/leaflet/10.2.0/iclient-plot-leaflet.min.js'); | |
| 152 | 150 | } | |
| 153 | 151 | } | |
| 154 | 152 | if (inArray(includes, 'ant-design-vue')) { | |
| 155 | - inputCSS('https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.css'); | ||
| 156 | - inputScript('https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.js'); | ||
| 153 | + inputCSS('https://cdn.jsdelivr.net/npm/ant-design-vue@1.7.8/dist/antd.min.css'); | ||
| 154 | + inputScript('https://cdn.jsdelivr.net/npm/ant-design-vue@1.7.8/dist/antd.min.js'); | ||
| 157 | 155 | } | |
| 158 | 156 | if (inArray(includes, 'echarts-vue')) { | |
| 159 | 157 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); | |
@@ -175,4 +173,4 @@ | |||
| 175 | 173 | window.server = document.location.toString().match(/file:\/\//) | |
| 176 | 174 | ? 'http://localhost:8090' | |
| 177 | 175 | : document.location.protocol + '//' + document.location.host; | |
| 178 | - })(); | ||
| 176 | + })(); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,39 +53,30 @@ | |||
| 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.jsdelivr.net/npm/mapbox-gl@1.12.0/dist/mapbox-gl.min.css'); | ||
| 57 | - inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl@1.12.0/dist/mapbox-gl.min.js'); | ||
| 56 | + inputCSS('https://cdn.jsdelivr.net/npm/mapbox-gl@1.13.1/dist/mapbox-gl.min.css'); | ||
| 57 | + inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl@1.13.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.12.0/mapbox-gl-enhance.css'); | |
| 61 | 61 | inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0/mapbox-gl-enhance.js'); | |
| 62 | 62 | } | |
| 63 | 63 | if (inArray(includes, 'turf')) { | |
| 64 | - inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/5.1.6/turf.min.js'); | ||
| 64 | + inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/6.5.0/turf.min.js'); | ||
| 65 | 65 | } | |
| 66 | 66 | if (inArray(includes, 'draw')) { | |
| 67 | - inputCSS( | ||
| 68 | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.css' | ||
| 69 | - ); | ||
| 70 | - inputScript( | ||
| 71 | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.js' | ||
| 72 | - ); | ||
| 67 | + inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.3.0/mapbox-gl-draw.css'); | ||
| 68 | + inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.3.0/mapbox-gl-draw.js'); | ||
| 73 | 69 | } | |
| 70 | + | ||
| 74 | 71 | if (inArray(includes, 'mapboxgl-draw-rectangle-drag')) { | |
| 75 | - inputScript( | ||
| 76 | - 'https://cdn.jsdelivr.net/gh/CartoDB/mapboxgl-draw-rectangle-drag@1.0.1/build/mapboxgl-draw-rectangle-drag.browser.js' | ||
| 77 | - ); | ||
| 78 | - } | ||
| 72 | + inputScript('https://cdn.jsdelivr.net/gh/CartoDB/mapboxgl-draw-rectangle-drag@1.0.1/build/mapboxgl-draw-rectangle-drag.browser.js'); | ||
| 73 | + } | ||
| 79 | 74 | if (inArray(includes, 'compare')) { | |
| 80 | - inputCSS( | ||
| 81 | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.css' | ||
| 82 | - ); | ||
| 83 | - inputScript( | ||
| 84 | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.js' | ||
| 85 | - ); | ||
| 75 | + inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.css'); | ||
| 76 | + inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.js'); | ||
| 86 | 77 | } | |
| 87 | 78 | if (inArray(includes, 'mapv')) { | |
| 88 | - inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js'); | ||
| 79 | + inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.62/build/mapv.min.js'); | ||
| 89 | 80 | } | |
| 90 | 81 | if (inArray(includes, 'echarts')) { | |
| 91 | 82 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); | |
@@ -102,22 +93,22 @@ | |||
| 102 | 93 | inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/build/three.js'); | |
| 103 | 94 | } | |
| 104 | 95 | if (inArray(includes, 'xlsx')) { | |
| 105 | - inputScript('https://cdn.bootcdn.net/ajax/libs/xlsx/0.16.7/xlsx.core.min.js'); | ||
| 96 | + inputScript('https://cdn.jsdelivr.net/npm/xlsx@0.17.2/dist/xlsx.core.min.js'); | ||
| 106 | 97 | } | |
| 107 | 98 | if (inArray(includes, 'proj4')) { | |
| 108 | - inputScript('https://cdn.bootcdn.net/ajax/libs/proj4js/2.6.2/proj4.js'); | ||
| 99 | + inputScript('https://cdn.jsdelivr.net/npm/proj4@2.7.5/dist/proj4.js'); | ||
| 109 | 100 | } | |
| 110 | 101 | if (inArray(includes, 'shapefile')) { | |
| 111 | 102 | inputScript('https://cdn.jsdelivr.net/npm/shapefile@0.6.6/dist/shapefile.js'); | |
| 112 | 103 | } | |
| 113 | 104 | if (inArray(includes, 'ant-design-vue')) { | |
| 114 | - inputCSS('https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.css'); | ||
| 115 | - inputScript('https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.js'); | ||
| 105 | + inputCSS('https://cdn.jsdelivr.net/npm/ant-design-vue@1.7.8/dist/antd.min.css'); | ||
| 106 | + inputScript('https://cdn.jsdelivr.net/npm/ant-design-vue@1.7.8/dist/antd.min.js'); | ||
| 116 | 107 | } | |
| 117 | 108 | if (inArray(includes, 'antd')) { | |
| 118 | - inputCSS('https://cdn.bootcdn.net/ajax/libs/antd/3.25.3/antd.min.css'); | ||
| 119 | - inputScript('https://cdn.bootcdn.net/ajax/libs/moment.js/2.24.0/moment.min.js'); | ||
| 120 | - inputScript('https://cdn.bootcdn.net/ajax/libs/antd/3.25.3/antd.js'); | ||
| 109 | + inputCSS('https://cdn.jsdelivr.net/npm/antd@3.25.3/dist/antd.min.css'); | ||
| 110 | + inputScript('https://cdn.jsdelivr.net/npm/moment@2.29.1/min/moment.min.js'); | ||
| 111 | + inputScript('https://cdn.jsdelivr.net/npm/antd@3.25.3/dist/antd.min.js'); | ||
| 121 | 112 | } | |
| 122 | 113 | if (inArray(includes, 'deck')) { | |
| 123 | 114 | inputScript('https://iclient.supermap.io/web/libs/deck.gl/5.1.3/deck.gl.min.js'); | |
@@ -129,15 +120,13 @@ | |||
| 129 | 120 | inputScript('https://iclient.supermap.io/web/libs/geostats/geostats.js'); | |
| 130 | 121 | } | |
| 131 | 122 | if (inArray(includes, 'canvg')) { | |
| 132 | - inputScript('https://cdn.jsdelivr.net/npm/canvg@3.0.6/lib/umd.min.js'); | ||
| 123 | + inputScript('https://iclient.supermap.io/web/libs/canvg/canvg.min.js'); | ||
| 133 | 124 | } | |
| 134 | 125 | if (inArray(includes, 'convert')) { | |
| 135 | 126 | inputScript('https://iclient.supermap.io/web/libs/xml-js/1.6.8/xml-js.min.js'); | |
| 136 | 127 | } | |
| 137 | 128 | if (inArray(includes, 'LegacyJSONLoader')) { | |
| 138 | - inputScript( | ||
| 139 | - 'https://cdn.jsdelivr.net/npm/three@0.110.0/examples/js/loaders/deprecated/LegacyJSONLoader.js' | ||
| 140 | - ); | ||
| 129 | + inputScript('https://cdn.jsdelivr.net/npm/three@0.110.0/examples/js/loaders/deprecated/LegacyJSONLoader.js'); | ||
| 141 | 130 | } | |
| 142 | 131 | if (inArray(includes, 'OBJLoader')) { | |
| 143 | 132 | inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/examples/js/loaders/OBJLoader.js'); | |
@@ -167,13 +156,13 @@ | |||
| 167 | 156 | inputScript('https://iclient.supermap.io/web/libs/mapbox-print-pdf/0.4.4/mapbox-print-pdf.min.js'); | |
| 168 | 157 | } | |
| 169 | 158 | if (inArray(includes, 'moment')) { | |
| 170 | - inputScript('https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js'); | ||
| 159 | + inputScript('https://cdn.jsdelivr.net/npm/moment@2.29.1/min/moment.min.js'); | ||
| 171 | 160 | } | |
| 172 | 161 | if (inArray(includes, 'lodash')) { | |
| 173 | - inputScript('https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js'); | ||
| 162 | + inputScript('https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js'); | ||
| 174 | 163 | } | |
| 175 | 164 | if (inArray(includes, 'tensorflow')) { | |
| 176 | - inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js'); | ||
| 165 | + inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.9.0/dist/tf.min.js'); | ||
| 177 | 166 | } | |
| 178 | 167 | ||
| 179 | 168 | // dist | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,8 +54,8 @@ | |||
| 54 | 54 | var excludes = (targetScript.getAttribute('exclude') || '').split(','); | |
| 55 | 55 | // 在线 | |
| 56 | 56 | if (!inArray(excludes, 'ol') && !inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5')) { | |
| 57 | - inputCSS('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/css/ol.css'); | ||
| 58 | - inputScript('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/build/ol.js'); | ||
| 57 | + inputCSS('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.7.0/css/ol.css'); | ||
| 58 | + inputScript('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.7.0/build/ol.js'); | ||
| 59 | 59 | } | |
| 60 | 60 | if (inArray(includes, 'ol@4.6.5')) { | |
| 61 | 61 | inputCSS('https://cdn.bootcdn.net/ajax/libs/openlayers/4.6.5/ol.css'); | |
@@ -66,19 +66,19 @@ | |||
| 66 | 66 | inputScript('https://cdn.bootcdn.net/ajax/libs/openlayers/4.6.5/ol-debug.js'); | |
| 67 | 67 | } | |
| 68 | 68 | if (inArray(includes, 'mapv')) { | |
| 69 | - inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js'); | ||
| 69 | + inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.62/build/mapv.min.js'); | ||
| 70 | 70 | } | |
| 71 | 71 | if (inArray(includes, 'turf')) { | |
| 72 | - inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/5.1.6/turf.min.js'); | ||
| 72 | + inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/6.5.0/turf.min.js'); | ||
| 73 | 73 | } | |
| 74 | 74 | if (inArray(includes, 'echarts')) { | |
| 75 | 75 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); | |
| 76 | 76 | } | |
| 77 | 77 | if (inArray(includes, 'proj4')) { | |
| 78 | - inputScript('https://cdn.bootcdn.net/ajax/libs/proj4js/2.6.2/proj4.js'); | ||
| 78 | + inputScript('https://cdn.jsdelivr.net/npm/proj4@2.7.5/dist/proj4.js'); | ||
| 79 | 79 | } | |
| 80 | 80 | if (inArray(includes, 'ol3-echarts')) { | |
| 81 | - inputScript('https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.3/dist/ol3Echarts.min.js'); | ||
| 81 | + inputScript('https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.4/dist/ol3Echarts.min.js'); | ||
| 82 | 82 | } | |
| 83 | 83 | if (inArray(includes, 'ol3-echarts@1.3.6')) { | |
| 84 | 84 | inputScript('https://cdn.jsdelivr.net/npm/ol3-echarts@1.3.6/dist/ol3Echarts.min.js'); | |
@@ -93,13 +93,11 @@ | |||
| 93 | 93 | inputScript('https://iclient.supermap.io/web/libs/osmbuildings/OSMBuildings-OL3.js'); | |
| 94 | 94 | } | |
| 95 | 95 | if (inArray(includes, 'animatedclusterlayer')) { | |
| 96 | - inputScript( | ||
| 97 | - 'https://iclient.supermap.io/web/libs/openlayers/plugins/animatedclusterlayer/animatedclusterlayer.js' | ||
| 98 | - ); | ||
| 96 | + inputScript('https://iclient.supermap.io/web/libs/openlayers/plugins/animatedclusterlayer/animatedclusterlayer.js'); | ||
| 99 | 97 | } | |
| 100 | 98 | if (inArray(includes, 'layerswitcher')) { | |
| 101 | - inputCSS('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.6.0/src/ol-layerswitcher.css'); | ||
| 102 | - inputScript('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.6.0/dist/ol-layerswitcher.min.js'); | ||
| 99 | + inputCSS('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.8.3/src/ol-layerswitcher.css'); | ||
| 100 | + inputScript('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.8.3/dist/ol-layerswitcher.min.js'); | ||
| 103 | 101 | } | |
| 104 | 102 | if (inArray(includes, 'jsonsql')) { | |
| 105 | 103 | inputScript('https://iclient.supermap.io/web/libs/jsonsql/jsonsql.js'); | |
@@ -108,10 +106,10 @@ | |||
| 108 | 106 | inputScript('https://iclient.supermap.io/web/libs/geostats/geostats.js'); | |
| 109 | 107 | } | |
| 110 | 108 | if (inArray(includes, 'canvg')) { | |
| 111 | - inputScript('https://cdn.jsdelivr.net/npm/canvg@3.0.6/lib/umd.min.js'); | ||
| 109 | + inputScript('https://iclient.supermap.io/web/libs/canvg/canvg.min.js'); | ||
| 112 | 110 | } | |
| 113 | 111 | if (inArray(includes, 'tensorflow')) { | |
| 114 | - inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js'); | ||
| 112 | + inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.9.0/dist/tf.min.js'); | ||
| 115 | 113 | } | |
| 116 | 114 | ||
| 117 | 115 | // dist | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,8 +54,8 @@ | |||
| 54 | 54 | var excludes = (targetScript.getAttribute('exclude') || '').split(','); | |
| 55 | 55 | // 在线 | |
| 56 | 56 | if (!inArray(excludes, 'ol') && !inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5')) { | |
| 57 | - inputCSS('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/css/ol.css'); | ||
| 58 | - inputScript('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/build/ol.js'); | ||
| 57 | + inputCSS('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.7.0/css/ol.css'); | ||
| 58 | + inputScript('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.7.0/build/ol.js'); | ||
| 59 | 59 | } | |
| 60 | 60 | if (inArray(includes, 'ol@4.6.5')) { | |
| 61 | 61 | inputCSS('https://cdn.bootcdn.net/ajax/libs/openlayers/4.6.5/ol.css'); | |
@@ -66,19 +66,19 @@ | |||
| 66 | 66 | inputScript('https://cdn.bootcdn.net/ajax/libs/openlayers/4.6.5/ol-debug.js'); | |
| 67 | 67 | } | |
| 68 | 68 | if (inArray(includes, 'mapv')) { | |
| 69 | - inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js'); | ||
| 69 | + inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.62/build/mapv.min.js'); | ||
| 70 | 70 | } | |
| 71 | 71 | if (inArray(includes, 'turf')) { | |
| 72 | - inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/5.1.6/turf.min.js'); | ||
| 72 | + inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/6.5.0/turf.min.js'); | ||
| 73 | 73 | } | |
| 74 | 74 | if (inArray(includes, 'echarts')) { | |
| 75 | 75 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); | |
| 76 | 76 | } | |
| 77 | 77 | if (inArray(includes, 'proj4')) { | |
| 78 | - inputScript('https://cdn.bootcdn.net/ajax/libs/proj4js/2.6.2/proj4.js'); | ||
| 78 | + inputScript('https://cdn.jsdelivr.net/npm/proj4@2.7.5/dist/proj4.js'); | ||
| 79 | 79 | } | |
| 80 | 80 | if (inArray(includes, 'ol3-echarts')) { | |
| 81 | - inputScript('https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.3/dist/ol3Echarts.min.js'); | ||
| 81 | + inputScript('https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.4/dist/ol3Echarts.min.js'); | ||
| 82 | 82 | } | |
| 83 | 83 | if (inArray(includes, 'ol3-echarts@1.3.6')) { | |
| 84 | 84 | inputScript('https://cdn.jsdelivr.net/npm/ol3-echarts@1.3.6/dist/ol3Echarts.min.js'); | |
@@ -93,13 +93,11 @@ | |||
| 93 | 93 | inputScript('https://iclient.supermap.io/web/libs/osmbuildings/OSMBuildings-OL3.js'); | |
| 94 | 94 | } | |
| 95 | 95 | if (inArray(includes, 'animatedclusterlayer')) { | |
| 96 | - inputScript( | ||
| 97 | - 'https://iclient.supermap.io/web/libs/openlayers/plugins/animatedclusterlayer/animatedclusterlayer.js' | ||
| 98 | - ); | ||
| 96 | + inputScript('https://iclient.supermap.io/web/libs/openlayers/plugins/animatedclusterlayer/animatedclusterlayer.js'); | ||
| 99 | 97 | } | |
| 100 | 98 | if (inArray(includes, 'layerswitcher')) { | |
| 101 | - inputCSS('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.6.0/src/ol-layerswitcher.css'); | ||
| 102 | - inputScript('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.6.0/dist/ol-layerswitcher.min.js'); | ||
| 99 | + inputCSS('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.8.3/src/ol-layerswitcher.css'); | ||
| 100 | + inputScript('https://cdn.jsdelivr.net/npm/ol-layerswitcher@3.8.3/dist/ol-layerswitcher.min.js'); | ||
| 103 | 101 | } | |
| 104 | 102 | if (inArray(includes, 'jsonsql')) { | |
| 105 | 103 | inputScript('https://iclient.supermap.io/web/libs/jsonsql/jsonsql.js'); | |
@@ -108,7 +106,10 @@ | |||
| 108 | 106 | inputScript('https://iclient.supermap.io/web/libs/geostats/geostats.js'); | |
| 109 | 107 | } | |
| 110 | 108 | if (inArray(includes, 'canvg')) { | |
| 111 | - inputScript('https://cdn.jsdelivr.net/npm/canvg@3.0.6/lib/umd.min.js'); | ||
| 109 | + inputScript('https://iclient.supermap.io/web/libs/canvg/canvg.min.js'); | ||
| 110 | + } | ||
| 111 | + if (inArray(includes, 'tensorflow')) { | ||
| 112 | + inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.9.0/dist/tf.min.js'); | ||
| 112 | 113 | } | |
| 113 | 114 | ||
| 114 | 115 | // dist | |
| Back | FazBrowse Home | New Git URL |
0 commit comments