config.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. *公司初始化配置
  3. */
  4. export const esriConfig = {
  5. 'baseUrl': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/dojo/dojo.js',
  6. 'baseCssUrl': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/esri/css/main.css',
  7. 'font_url': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/fonts/',
  8. }
  9. export const iserverConfig = {
  10. // 'baseUrl': 'http://117.174.10.73:8090/iserver/'
  11. 'baseUrl': 'http://221.182.8.141:8090/iserver/'
  12. }
  13. export const appconfig = {
  14. // 底图是否采用在线地图,true在线,false离线
  15. 'isonline': true,
  16. // 是否根据后台配置服务
  17. 'isloadServer': true,
  18. // 天地图秘钥
  19. // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d',
  20. 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  21. // 打印模板
  22. 'templateFolder': 'D:/xrty/template',
  23. // 地图初始视角中心
  24. // 临时使用
  25. // 当前地图坐标系, 用于转换
  26. 'currPRJ': 'proj47',
  27. 'currCenter': { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "50159.21860055598" },
  28. 'initLayers': 'pipemap&&smlayergroup', // 用于配置图层树 pipemap&&group
  29. // 地图初始视角级别
  30. 'initZoom': 15,
  31. // token
  32. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w',
  33. }
  34. export function setParams (xzq) {
  35. console.log('设置坐标')
  36. const parmas = {
  37. '宜昌': { proj: 'proj46', center: { "lon": "111.291353", "lat": "30.705687", "height": "30159.21860055598" } },
  38. '岳阳': { proj: 'proj47', center: { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "30159.21860055598" } },
  39. }
  40. let { proj, center } = parmas[xzq]
  41. appconfig.currCenter = center
  42. appconfig.currPRJ = proj
  43. //AppX.appConfig.initPosition = center
  44. }