config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. *公司初始化配置
  3. */
  4. export const esriConfig = {
  5. 'baseUrl': 'http://192.168.2.238:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/dojo/dojo.js',
  6. 'baseCssUrl': 'http://192.168.2.238:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/esri/css/main.css',
  7. 'font_url': 'http://192.168.2.238: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://192.168.2.238: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. // 'initCenter': { 'x': 104.44483, 'y': 30.85523 },
  25. // 临时使用
  26. 'initCenter': [101.724022, 26.580702],
  27. // [101.724022, 26.580702] 攀枝花
  28. // [104.1958, 30.0181] 仁寿
  29. 'initLayers': 'pipemap&&smlayergroup', // 用于配置图层树 pipemap&&group
  30. // 地图初始视角级别
  31. 'initZoom': 15,
  32. // token
  33. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w',
  34. //大屏地图服务
  35. 'bigScreenMapService': {
  36. 'initPosition': { lon: 111.286471, lat: 30.691967, height: 50159.21860055598 },
  37. 'initZoom': 16,
  38. "gisResource": {
  39. "terrain": {
  40. "name": "地形",
  41. "type": "terrain",
  42. "config": [
  43. {
  44. "key": "dixing",
  45. "name": "地形",
  46. "url": "http://192.168.2.238:8090/iserver/services/3D-sxgk_dem/rest/realspace/datas/TF_PAPN_DEM@sxgk_base"
  47. }
  48. ]
  49. },
  50. "img": {
  51. "name": "离线影像服务",
  52. "type": "tiled",
  53. "config": [
  54. {
  55. "key": "chinavec2d",
  56. "name": "中国电子地图",
  57. "url": "https://yeepms.yeec.com.cn/iserver/services/map-citymap/rest/maps/citymap_yc"
  58. },
  59. ]
  60. },
  61. "scenes": {
  62. "name": "场景服务",
  63. "type": "scene",
  64. "config": [
  65. {
  66. "key": "jzcj",
  67. "name": "建筑场景",
  68. "url": "https://yeepms.yeec.com.cn/iserver/services/3D-TF_PAPN_BUILD/rest/realspace"
  69. },
  70. ]
  71. },
  72. "maps": {
  73. "name": "地图服务",
  74. "type": "map",
  75. "config": [
  76. {
  77. "key": "dtcj",
  78. "name": "工程项目管网",
  79. "url": "http://192.168.2.238:8090/iserver/services/map-sxgc_pipe/rest/maps/gcgl_pipe"
  80. }
  81. ]
  82. },
  83. "tiplayers": {
  84. "name": "数据服务",
  85. "type": "data",
  86. "config": [
  87. {
  88. "key": "sjfw",
  89. "name": "数据服务",
  90. "url": "http://192.168.2.238:8090/iserver/services/data-sxgc_pipe/rest/data"
  91. }
  92. ]
  93. },
  94. "theme": {
  95. "name": "专题地图服务",
  96. "type": "theme",
  97. "config": [
  98. // {
  99. // "key": "sjtypedt",
  100. // "name": "岳阳设计管线类型专题图",
  101. // "url":"https://yeepms.yeec.com.cn/iserver/services/map-sxgk/rest/maps/hnyy_type"
  102. // }
  103. ]
  104. }
  105. }
  106. }
  107. }