| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bc185bd commit 2eee7c3
38 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,10 +59,10 @@ | |||
| 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://mapv.baidu.com/build/mapv.min.js"); | ||
| 62 | + inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.42/build/mapv.min.js"); | ||
| 63 | 63 | } | |
| 64 | 64 | if (inArray(includes, 'echarts')) { | |
| 65 | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | ||
| 65 | + inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | ||
| 66 | 66 | } | |
| 67 | 67 | if (inArray(includes, 'nanoscroller')) { | |
| 68 | 68 | inputCSS("https://iclient.supermap.io/web/libs/iclient8c/examples/css/nanoscroller.css"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,8 +53,8 @@ | |||
| 53 | 53 | var excludes = (targetScript.getAttribute('exclude') || "").split(","); | |
| 54 | 54 | // 在线 | |
| 55 | 55 | if (!inArray(excludes, 'leaflet')) { | |
| 56 | - inputCSS("https://cdn.bootcss.com/leaflet/1.5.1/leaflet.css"); | ||
| 57 | - inputScript("https://cdn.bootcss.com/leaflet/1.5.1/leaflet.js"); | ||
| 56 | + inputCSS('https://cdn.bootcss.com/leaflet/1.6.0/leaflet.css'); | ||
| 57 | + inputScript('https://cdn.bootcss.com/leaflet/1.6.0/leaflet.js'); | ||
| 58 | 58 | } | |
| 59 | 59 | if (inArray(includes, 'leaflet.heat')) { | |
| 60 | 60 | inputScript("https://cdn.bootcss.com/leaflet.heat/0.2.0/leaflet-heat.js"); | |
@@ -68,35 +68,35 @@ | |||
| 68 | 68 | inputCSS("https://cdn.bootcss.com/leaflet.draw/1.0.4/leaflet.draw.css"); | |
| 69 | 69 | inputScript("https://cdn.bootcss.com/leaflet.draw/1.0.4/leaflet.draw.js"); | |
| 70 | 70 | } | |
| 71 | - if (inArray(includes, 'leaflet.pm')) { | ||
| 72 | - inputCSS("https://cdn.bootcss.com/leaflet.pm/2.2.0/leaflet.pm.css"); | ||
| 73 | - inputScript("https://cdn.bootcss.com/leaflet.pm/2.2.0/leaflet.pm.min.js"); | ||
| 71 | + if (inArray(includes, 'leaflet-geoman')) { | ||
| 72 | + inputCSS('https://unpkg.com/@geoman-io/leaflet-geoman-free@latest/dist/leaflet-geoman.css'); | ||
| 73 | + inputScript('https://unpkg.com/@geoman-io/leaflet-geoman-free@2.3.0/dist/leaflet-geoman.min.js'); | ||
| 74 | 74 | } | |
| 75 | 75 | if (inArray(includes, 'leaflet.miniMap')) { | |
| 76 | 76 | inputCSS("https://cdn.bootcss.com/leaflet-minimap/3.6.1/Control.MiniMap.min.css"); | |
| 77 | 77 | inputScript("https://cdn.bootcss.com/leaflet-minimap/3.6.1/Control.MiniMap.min.js"); | |
| 78 | 78 | } | |
| 79 | 79 | if (inArray(includes, 'mapv')) { | |
| 80 | - inputScript("https://mapv.baidu.com/build/mapv.min.js"); | ||
| 80 | + inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.42/build/mapv.min.js"); | ||
| 81 | 81 | } | |
| 82 | 82 | if (inArray(includes, 'turf')) { | |
| 83 | 83 | inputScript("https://cdn.bootcss.com/Turf.js/5.1.6/turf.min.js"); | |
| 84 | 84 | } | |
| 85 | 85 | if (inArray(includes, 'echarts')) { | |
| 86 | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | ||
| 86 | + inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | ||
| 87 | 87 | } | |
| 88 | 88 | if (inArray(includes, 'elasticsearch')) { | |
| 89 | - inputScript("https://cdn.bootcss.com/elasticsearch/16.3.0/elasticsearch.js"); | ||
| 89 | + inputScript('https://cdn.bootcss.com/elasticsearch/16.5.0/elasticsearch.js'); | ||
| 90 | 90 | } | |
| 91 | 91 | if (inArray(includes, 'xlsx')) { | |
| 92 | - inputScript("https://cdn.bootcss.com/xlsx/0.15.1/xlsx.core.min.js"); | ||
| 92 | + inputScript('https://cdn.jsdelivr.net/npm/xlsx@0.15.4/dist/xlsx.core.min.js'); | ||
| 93 | 93 | } | |
| 94 | 94 | // 本地 | |
| 95 | 95 | if (inArray(includes, 'leaflet.sidebyside')) { | |
| 96 | 96 | inputScript("https://iclient.supermap.io/web/libs/leaflet/plugins/leaflet-side-by-side/leaflet-side-by-side.min.js"); | |
| 97 | 97 | } | |
| 98 | 98 | if (inArray(includes, 'd3')) { | |
| 99 | - inputScript("https://iclient.supermap.io/web/libs/d3/5.12.0/d3.js"); | ||
| 99 | + inputScript('https://cdnjs.cloudflare.com/ajax/libs/d3/5.14.2/d3.min.js'); | ||
| 100 | 100 | } | |
| 101 | 101 | if (inArray(includes, 'd3-hexbin')) { | |
| 102 | 102 | inputScript("https://d3js.org/d3-hexbin.v0.2.min.js"); | |
@@ -145,7 +145,7 @@ | |||
| 145 | 145 | inputScript("https://unpkg.com/ant-design-vue@1.3.9/dist/antd.min.js"); | |
| 146 | 146 | } | |
| 147 | 147 | if (inArray(includes, 'echarts-vue')) { | |
| 148 | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | ||
| 148 | + inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | ||
| 149 | 149 | inputScript("https://cdn.jsdelivr.net/npm/vue-echarts@4.0.4/dist/vue-echarts.min.js"); | |
| 150 | 150 | inputScript("https://iclient.supermap.io/web/libs/echarts-liquidfill/echarts-liquidfill.min.js"); | |
| 151 | 151 | inputScript("https://iclient.supermap.io/web/libs/echartsLayer/EchartsLayer.min.js"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,8 +53,8 @@ | |||
| 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,31 +65,35 @@ | |||
| 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,7 +112,7 @@ | |||
| 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"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,16 +66,16 @@ | |||
| 66 | 66 | inputScript("https://cdn.bootcss.com/openlayers/4.6.5/ol-debug.js"); | |
| 67 | 67 | } | |
| 68 | 68 | if (inArray(includes, 'mapv')) { | |
| 69 | - inputScript("https://mapv.baidu.com/build/mapv.min.js"); | ||
| 69 | + inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.42/build/mapv.min.js"); | ||
| 70 | 70 | } | |
| 71 | 71 | if (inArray(includes, 'turf')) { | |
| 72 | 72 | inputScript("https://cdn.bootcss.com/Turf.js/5.1.6/turf.min.js"); | |
| 73 | 73 | } | |
| 74 | 74 | if (inArray(includes, 'echarts')) { | |
| 75 | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | ||
| 75 | + inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | ||
| 76 | 76 | } | |
| 77 | 77 | if (inArray(includes, 'proj4')) { | |
| 78 | - inputScript("https://cdn.bootcss.com/proj4js/2.5.0/proj4.js"); | ||
| 78 | + inputScript('https://cdn.bootcss.com/proj4js/2.6.0/proj4.js'); | ||
| 79 | 79 | } | |
| 80 | 80 | if (inArray(includes, 'ol3-echarts')) { | |
| 81 | 81 | inputScript("https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.1/dist/ol3Echarts.min.js"); | |
@@ -106,7 +106,7 @@ | |||
| 106 | 106 | inputScript("https://iclient.supermap.io/web/libs/geostats/geostats.js"); | |
| 107 | 107 | } | |
| 108 | 108 | if (inArray(includes, 'canvg')) { | |
| 109 | - inputScript("https://iclient.supermap.io/web/libs/canvg/canvg.min.js"); | ||
| 109 | + inputScript("https://cdn.jsdelivr.net/npm/canvg@3.0.2/lib/umd.min.js"); | ||
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | 112 | // dist | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,16 +66,16 @@ | |||
| 66 | 66 | inputScript("https://cdn.bootcss.com/openlayers/4.6.5/ol-debug.js"); | |
| 67 | 67 | } | |
| 68 | 68 | if (inArray(includes, 'mapv')) { | |
| 69 | - inputScript("https://mapv.baidu.com/build/mapv.min.js"); | ||
| 69 | + inputScript("https://cdn.jsdelivr.net/npm/mapv@2.0.42/build/mapv.min.js"); | ||
| 70 | 70 | } | |
| 71 | 71 | if (inArray(includes, 'turf')) { | |
| 72 | 72 | inputScript("https://cdn.bootcss.com/Turf.js/5.1.6/turf.min.js"); | |
| 73 | 73 | } | |
| 74 | 74 | if (inArray(includes, 'echarts')) { | |
| 75 | - inputScript("https://cdn.bootcss.com/echarts/4.3.0-rc.2/echarts.min.js"); | ||
| 75 | + inputScript('https://cdn.jsdelivr.net/npm/echarts@4.5.0/dist/echarts.min.js'); | ||
| 76 | 76 | } | |
| 77 | 77 | if (inArray(includes, 'proj4')) { | |
| 78 | - inputScript("https://cdn.bootcss.com/proj4js/2.5.0/proj4.js"); | ||
| 78 | + inputScript('https://cdn.bootcss.com/proj4js/2.6.0/proj4.js'); | ||
| 79 | 79 | } | |
| 80 | 80 | if (inArray(includes, 'ol3-echarts')) { | |
| 81 | 81 | inputScript("https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.1/dist/ol3Echarts.min.js"); | |
@@ -106,7 +106,7 @@ | |||
| 106 | 106 | inputScript("https://iclient.supermap.io/web/libs/geostats/geostats.js"); | |
| 107 | 107 | } | |
| 108 | 108 | if (inArray(includes, 'canvg')) { | |
| 109 | - inputScript("https://iclient.supermap.io/web/libs/canvg/canvg.min.js"); | ||
| 109 | + inputScript("https://cdn.jsdelivr.net/npm/canvg@3.0.2/lib/umd.min.js"); | ||
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | 112 | // dist | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | <meta charset="UTF-8"> | |
| 10 | 10 | <title data-i18n='resources.title_dataServiceQuery'></title> | |
| 11 | 11 | <script type="text/javascript" src="../js/include-web.js"></script> | |
| 12 | - <script type="text/javascript" include="leaflet.pm,iclient-leaflet-css" src="../../dist/leaflet/include-leaflet.js"></script> | ||
| 12 | + <script type="text/javascript" include="leaflet-geoman,iclient-leaflet-css" src="../../dist/leaflet/include-leaflet.js"></script> | ||
| 13 | 13 | </head> | |
| 14 | 14 | ||
| 15 | 15 | <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | </head> | |
| 11 | 11 | <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;"> | |
| 12 | 12 | <div id="map" style="width: 100%;height:100%"></div> | |
| 13 | - <script type="text/javascript" include="leaflet.pm" src="../../dist/leaflet/include-leaflet.js"></script> | ||
| 13 | + <script type="text/javascript" include="leaflet-geoman" src="../../dist/leaflet/include-leaflet.js"></script> | ||
| 14 | 14 | <script type="text/javascript"> | |
| 15 | 15 | var host = window.isLocal ? window.server : "https://iserver.supermap.io"; | |
| 16 | 16 | var map, url = host+"/iserver/services/map-china400/rest/maps/China"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,8 +7,7 @@ | |||
| 7 | 7 | <meta charset="UTF-8"> | |
| 8 | 8 | <title data-i18n="resources.title_surfaceAnalystService"></title> | |
| 9 | 9 | <script type="text/javascript" src="../js/include-web.js"></script> | |
| 10 | - <script type="text/javascript" src="../../dist/mapboxgl/include-mapboxgl.js"></script> | ||
| 11 | - <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.3/proj4.js"></script> | ||
| 10 | + <script type="text/javascript" include="proj4" src="../../dist/mapboxgl/include-mapboxgl.js"></script> | ||
| 12 | 11 | </head> | |
| 13 | 12 | <body style="margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;"> | |
| 14 | 13 | <div id="map" style="margin:0 auto;width: 100%;height: 100%"></div> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments