mapConfig.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. const BASE_IP = '36.142.248.4'
  2. var iserverConfig = {
  3. // baseUrl: `http://${BASE_IP}:16090/iserver/`,
  4. // 现场网络
  5. baseUrl: `http://${BASE_IP}:8090/iserver/`,
  6. // subdomains: [`${BASE_IP}:16090`, `${BASE_IP}:16091`, `${BASE_IP}:16092`]
  7. }
  8. export const appconfig = {
  9. dataService: {
  10. name: '数据服务',
  11. url: iserverConfig.baseUrl + 'services/data-tf_wdq/rest/data',
  12. dataSource: 'tofly',
  13. dataSet: ['psmap'],
  14. dataSetInfo: [{
  15. pipe: 'GS',
  16. name: 'TF_JSJS_PIPE_B',
  17. title: '供水管道',
  18. label: '供水管道'
  19. },
  20. {
  21. pipe: 'GS',
  22. name: 'TF_JSJS_NODE_B',
  23. title: '供水节点',
  24. label: '供水节点'
  25. },
  26. {
  27. pipe: 'YS',
  28. name: 'TF_PSHS_PIPE_B',
  29. title: '雨水管道',
  30. label: '雨水管道'
  31. },
  32. {
  33. pipe: 'YS',
  34. name: 'TF_PSHS_NODE_B',
  35. title: '雨水节点',
  36. label: '雨水节点'
  37. },
  38. {
  39. pipe: 'WS',
  40. name: 'TF_PSHS_PIPE_B',
  41. title: '污水管道',
  42. label: '污水管道'
  43. },
  44. {
  45. pipe: 'WS',
  46. name: 'TF_PSHS_NODE_B',
  47. title: '污水节点',
  48. label: '污水节点'
  49. },
  50. {
  51. pipe: 'DL',
  52. name: 'TF_DLLD_PIPE_B',
  53. title: '路灯管道',
  54. label: '路灯管道'
  55. },
  56. {
  57. pipe: 'DL',
  58. name: 'TF_DLLD_NODE_B',
  59. title: '路灯节点',
  60. label: '路灯节点'
  61. },
  62. {
  63. pipe: 'DL',
  64. name: 'TF_DLGD_PIPE_B',
  65. title: '电力供电管道',
  66. label: '电力供电管道'
  67. },
  68. {
  69. pipe: 'DL',
  70. name: 'TF_DLGD_NODE_B',
  71. title: '电力供电节点',
  72. label: '电力供电节点'
  73. },
  74. {
  75. pipe: 'DL',
  76. name: 'TF_DLJD_PIPE_B',
  77. title: '交通信号管道',
  78. label: '交通信号管道'
  79. },
  80. {
  81. pipe: 'DL',
  82. name: 'TF_DLJD_NODE_B',
  83. title: '交通信号节点',
  84. label: '交通信号节点'
  85. },
  86. {
  87. pipe: 'RQ',
  88. name: 'TF_RQTQ_PIPE_B',
  89. title: '燃气管道',
  90. label: '燃气管道'
  91. },
  92. {
  93. pipe: 'RQ',
  94. name: 'TF_RQTQ_NODE_B',
  95. title: '燃气节点',
  96. label: '燃气节点'
  97. },
  98. {
  99. pipe: 'TX',
  100. name: 'TF_TXDX_PIPE_B',
  101. title: '通信管道',
  102. label: '通信管道'
  103. },
  104. {
  105. pipe: 'TX',
  106. name: 'TF_TXDX_NODE_B',
  107. title: '通信节点',
  108. label: '通信节点'
  109. },
  110. {
  111. pipe: 'QT',
  112. name: 'TF_QTQT_PIPE_B',
  113. title: '其他管道',
  114. label: '其他管道'
  115. },
  116. {
  117. pipe: 'QT',
  118. name: 'TF_QTQT_NODE_B',
  119. title: '其他管道节点',
  120. label: '其他管道节点'
  121. },
  122. {
  123. pipe: 'GR',
  124. name: 'TF_RLRS_PIPE_B',
  125. title: '供热管道',
  126. label: '供热管道'
  127. },
  128. {
  129. pipe: 'GR',
  130. name: 'TF_RLRS_NODE_B',
  131. title: '供热节点',
  132. label: '供热节点'
  133. },
  134. ]
  135. }
  136. }
  137. var tdtWebKey = '15f7b01aababbb39ab568f4ba12ea21c'
  138. export const olMapConfig = {
  139. center: [104.0563789825739, 30.057025035476304],
  140. zoom: 13,
  141. layerTdt: {
  142. sl: [
  143. 'http://t{0-7}.tianditu.gov.cn/vec_c/wmts?tk=' + tdtWebKey,
  144. 'http://t{0-7}.tianditu.gov.cn/cva_c/wmts?tk=' + tdtWebKey
  145. ],
  146. yx: [
  147. 'http://t{0-7}.tianditu.gov.cn/img_c/wmts?tk=' + tdtWebKey,
  148. 'http://t{0-7}.tianditu.gov.cn/cia_c/wmts?tk=' + tdtWebKey
  149. ]
  150. },
  151. layersPipe: {
  152. GS: [
  153. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_JSJS',
  154. ],
  155. YS: [
  156. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_PSYS'
  157. ],
  158. WS: [
  159. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_PSWS',
  160. ],
  161. DL: [
  162. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_DLLD',
  163. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_DLJD',
  164. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_DLGD',
  165. ],
  166. TX: [
  167. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_TXDX',
  168. ],
  169. RQ: [
  170. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_RQTQ',
  171. ],
  172. GR: [
  173. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_RLRS',
  174. ],
  175. QT: [
  176. iserverConfig.baseUrl + 'services/map-tf_wdq/rest/maps/pipemap_QTQT'
  177. ]
  178. },
  179. dataSetMap: [
  180. {
  181. dataSet: 'TF_JSJS_PIPE_B',
  182. type: '给水',
  183. flag: 'GS'
  184. },
  185. {
  186. dataSet: 'TF_PSYS_PIPE_B',
  187. type: '雨水',
  188. flag: 'YS'
  189. },
  190. {
  191. dataSet: 'TF_PSWS_PIPE_B',
  192. type: '污水',
  193. flag: 'WS'
  194. },
  195. {
  196. dataSet: 'TF_RQTQ_PIPE_B',
  197. type: '天然气',
  198. flag: 'RQ'
  199. },
  200. {
  201. dataSet: 'TF_RLRS_PIPE_B',
  202. type: '热水',
  203. flag: 'GR'
  204. }
  205. ]
  206. }