| | |
| | | /* 修改 木遥(微信: http://marsgis.cn/weixin.html ) */ |
| | | //第三方类库加载管理js,方便切换lib |
| | | /* eslint-disable */ |
| | | ; (function () { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | //marsgis版本号,用于官网标题处版本号 |
| | | window.mars3d_version = '3.0' |
| | | |
| | | // cssExpr 用于判断资源是否是css |
| | | var cssExpr = new RegExp('\\.css') |
| | |
| | | function load() { |
| | | var arrInclude = (targetScript.getAttribute('include') || '').split(',') |
| | | var libpath = targetScript.getAttribute('libpath') || '' |
| | | |
| | | |
| | | |
| | | if (libpath.lastIndexOf('/') !== libpath.length - 1) { |
| | |
| | | 'bootstrap-checkbox': [ |
| | | libpath + "bootstrap/bootstrap-checkbox/awesome-bootstrap-checkbox.css", |
| | | ], |
| | | 'bootstrap-slider': [ |
| | | libpath + "bootstrap/bootstrap-slider/bootstrap-slider.min.css", |
| | | libpath + "bootstrap/bootstrap-slider/bootstrap-slider.min.js", |
| | | ], |
| | | 'nprogress': [ |
| | | libpath + "nprogress/nprogress.css", |
| | | libpath + "nprogress/nprogress.min.js", |
| | |
| | | 'toastr': [ |
| | | libpath + "toastr/toastr.css", |
| | | libpath + "toastr/toastr.js", |
| | | ], |
| | | 'formvalidation': [ |
| | | libpath + "formvalidation/formValidation.css", |
| | | libpath + "formvalidation/formValidation.min.js", |
| | | libpath + "formvalidation/framework/bootstrap.min.js", |
| | | libpath + "formvalidation/language/zh_CN.min.js", |
| | | ], |
| | | 'admin-lte': [ |
| | | libpath + "fonts/font-awesome/css/font-awesome.min.css", |
| | | libpath + "admin-lte/css/AdminLTE.min.css", |
| | | libpath + "admin-lte/css/skins/skin-blue.min.css", |
| | | libpath + "admin-lte/js/adminlte.min.js" |
| | | ], |
| | | 'ace': [ |
| | | libpath + "ace/ace.js" |
| | | ], |
| | | 'layer': [ |
| | | libpath + "layer/theme/default/layer.css", |
| | |
| | | 'haoutil': [ |
| | | libpath + "hao/haoutil.js" |
| | | ], |
| | | 'localforage': [ |
| | | libpath + "localforage/localforage.js" |
| | | ], |
| | | 'echarts': [ |
| | | libpath + "echarts/echarts.min.js", |
| | | libpath + "echarts/dark.js" |
| | | ], |
| | | 'echarts-gl': [ |
| | | libpath + "echarts/echarts.min.js", |
| | | libpath + "echarts/echarts-gl.min.js" |
| | | libpath + "echarts/echarts-gl/echarts-gl.min.js" |
| | | ], |
| | | 'echarts-liquidfill': [ |
| | | libpath + "echarts/echarts.min.js", |
| | | libpath + "echarts/echarts-liquidfill/echarts-liquidfill.js" |
| | | ], |
| | | 'highlight': [ |
| | | libpath + "highlight/styles/foundation.css", |
| | |
| | | 'turf': [ |
| | | libpath + "turf/turf.min.js" |
| | | ], |
| | | 'mars2d': [//地图 主库 |
| | | "http://mars2d.cn/lib/leafletjs/leaflet/leaflet.css", //leaflet |
| | | "http://mars2d.cn/lib/leafletjs/leaflet/leaflet.js", |
| | | "http://mars2d.cn/lib/leafletjs/mars2d/mars2d.css", //mars2d |
| | | "http://mars2d.cn/lib/leafletjs/mars2d/mars2d.js", |
| | | "http://mars2d.cn/lib/leafletjs/plugins/esri/esri-leaflet.js", |
| | | ], |
| | | 'terraformer': [ |
| | | libpath + "terraformer/terraformer-1.0.9.min.js", |
| | | libpath + "terraformer/terraformer-wkt-parser-1.2.0.min.js", |
| | | ], |
| | | 'ammo': [ |
| | | libpath + "ammo/ammo.js" |
| | | ], |
| | | 'kriging': [ |
| | | libpath + "kriging/kriging.min.js" |
| | | ], |
| | | 'cesium-tdt': [ |
| | | libpath + "mars3d/thirdParty/tdt/cesiumTdt.js", |
| | | libpath + "mars3d/thirdParty/tdt/TdtDmLayer.js", |
| | | 'three': [ |
| | | libpath + "three/three.js" |
| | | ], |
| | | 'cesium-tdt': [//天地图三维 |
| | | libpath + "mars3d/plugins/tdt/mars3d-tdt.js", |
| | | ], |
| | | 'cesium-pbf': [ |
| | | libpath + "mars3d/thirdParty/pbf/ol.js", |
| | | libpath + "mars3d/thirdParty/pbf/mvt.js", |
| | | libpath + "mars3d/thirdParty/pbf/style/MapboxStreetsV6.js", |
| | | ], |
| | | "mars3d-esri": [//arcgis的wfs服务支持 |
| | | libpath + "mars3d/plugins/esri/mars3d-esri.js" |
| | | ], |
| | | 'mars3d-space': [ |
| | | //卫星插件 |
| | |
| | | ], |
| | | 'mars3d-echarts': [ |
| | | //echarts支持插件 |
| | | libpath + 'echarts/echarts.min.js', |
| | | libpath + 'echarts/echarts-gl.min.js', |
| | | libpath + "echarts/echarts.min.js", |
| | | libpath + "echarts/echarts-gl/echarts-gl.min.js", |
| | | libpath + 'mars3d/plugins/echarts/mars3d-echarts.js', |
| | | ], |
| | | 'mars3d-mapv': [ |
| | |
| | | //三维地球“主库” |
| | | libpath + 'Cesium/Widgets/widgets.css', //cesium |
| | | libpath + 'Cesium/Cesium.js', |
| | | libpath + 'mars3d/plugins/compatible/cesium-version.js', //cesium版本兼容处理 |
| | | // libpath + 'mars3d/plugins/compatible/cesium-version.js', //cesium版本兼容处理 |
| | | libpath + 'mars3d/mars3d.css', //mars3d |
| | | libpath + 'mars3d/mars3d.js', |
| | | libpath + 'mars3d/plugins/navigation/mars3d-navigation.css', //导航插件 |
| | | libpath + 'mars3d/plugins/navigation/mars3d-navigation.js', |
| | | ], |
| | | } |
| | | |
| | | |
| | | |
| | | var keys = {} |