config.js 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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://192.168.2.20:8090/iserver/',
  11. geoServerUrl: 'http://192.168.2.248:8082/'
  12. }
  13. export const geoServerConfigIn = {
  14. geoServerUrl: 'http://192.168.2.248:8082/'
  15. }
  16. export const geoServerConfigOut = {
  17. //客户
  18. geoServerUrl: 'http://117.177.153.11:12002/',
  19. //公司
  20. geoServerUrl1: 'http://221.182.8.141:12002/'
  21. }
  22. export const geoServerConfig = geoServerConfigOut
  23. export const appconfig = {
  24. // 是否根据后台配置服务
  25. isloadServer: false,
  26. // 底图是否采用在线地图,true在线,false离线
  27. isonline: true,
  28. // 天地图秘钥
  29. // 'tianMapKey': 'd23f3b9d7d2e305366291bbafe5582e6',
  30. tianMapKey: '908404235938aecd5826e630a95c88b0',
  31. // 打印模板
  32. templateFolder: 'D:/xrty/template',
  33. // 地图初始视角中心
  34. initCenter: [105.736636, 32.402062],
  35. //initCenter: [570106.81475, 3588470.94355],
  36. //空间参考
  37. projection: 'EPSG:4326',
  38. initLayers: 'pipemap&&smlayergroup', // 必须配置,管线名称&&超图图层组
  39. // 地图初始视角级别
  40. initZoom: 13,
  41. currPRJ: 'proj44',
  42. // token
  43. usertoken: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w',
  44. // 地图资源服务
  45. gisResource: {
  46. // add iserverResource
  47. iserver_resource: {
  48. printerService: {
  49. name: '打印服务',
  50. url: iserverConfig.baseUrl + 'services/webprinting/rest/webprinting/v1'
  51. },
  52. netAnalysisService: {
  53. name: '网络分析服务',
  54. url: iserverConfig.baseUrl + 'services/transportationAnalyst-tf_pzhps/rest/networkanalyst/NETWORK_PSPS@tofly'
  55. },
  56. dataService: {
  57. name: '数据服务',
  58. url: iserverConfig.baseUrl + 'services/data-tf_pzhps/rest/data',
  59. dataSource: 'tofly',
  60. dataSet: ['psmap'],
  61. dataSetInfo: [
  62. ]
  63. },
  64. layerService: {
  65. name: '图层服务',
  66. layers: [
  67. {
  68. name: '矢量底图',
  69. isLabel: false,
  70. type: 'tdtlayer',
  71. url: 'http://t0.tianditu.gov.cn/vec_c/wmts?tk=',
  72. visible: true
  73. },
  74. {
  75. name: '影像底图',
  76. isLabel: false,
  77. type: 'tdtlayer',
  78. url: 'http://t0.tianditu.gov.cn/img_c/wmts?tk=',
  79. visible: false
  80. },
  81. {
  82. name: '矢量注记',
  83. type: 'tdtlayer',
  84. isLabel: true,
  85. url: 'http://t0.tianditu.gov.cn/cva_c/wmts?tk=',
  86. visible: true
  87. },
  88. {
  89. name: '影像注记',
  90. type: 'tdtlayer',
  91. isLabel: true,
  92. url: 'http://t0.tianditu.gov.cn/cia_c/wmts?tk=',
  93. visible: false
  94. },
  95. //本地发布管网服务
  96. {
  97. name: 'pipemaptest',
  98. title: '管网切片',
  99. type: 'ugcvlayer',
  100. url: iserverConfig.baseUrl + 'services/map-tf_pzhps/rest/maps/pipemap',
  101. visible: false,
  102. legendUrl: iserverConfig.baseUrl + 'services/map-tf_pzhps/rest/maps/pipemap/layers/',
  103. sublayers: []
  104. },
  105. {
  106. name: 'pipemap',
  107. title: '综合管网',
  108. type: 'smlayergroup',
  109. url: iserverConfig.baseUrl + 'services/map-tf_pzhps/rest/maps/pipemap',
  110. visible: true,
  111. legendUrl: iserverConfig.baseUrl + 'services/map-tf_pzhps/rest/maps/pipemap/layers/',
  112. sublayers: []
  113. }
  114. ]
  115. }
  116. },
  117. geoserver_resource: {
  118. basicLayerService: {
  119. name: '图层服务',
  120. layers: [
  121. {
  122. name: '矢量底图', //地图名称
  123. typeName: '球面墨卡托投影', //地图类型名称
  124. isLabel: false,
  125. type: 'tdtlayer', //图层类型
  126. url: 'http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=',//'http://t0.tianditu.gov.cn/vec_w/wmts?tk=',
  127. layer: "vec", //图层 注意每个图层这里不同
  128. matrixSet: "w",
  129. format: "tiles",
  130. style: "default",
  131. opacity: 1, //透明度
  132. visible: true //图层是否显示
  133. },
  134. {
  135. name: '矢量注记',
  136. typeName: '球面墨卡托投影',
  137. isLabel: false,
  138. type: 'tdtlayer',
  139. url: 'http://t0.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=',//'http://t0.tianditu.gov.cn/cva_w/wmts?tk=',
  140. layer: "cva",
  141. matrixSet: "w",
  142. format: "tiles",
  143. style: "default",
  144. opacity: 1,
  145. visible: true
  146. },
  147. {
  148. name: '影像底图',
  149. typeName: '球面墨卡托投影',
  150. isLabel: false,
  151. type: 'tdtlayer',
  152. url: 'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=',//'http://t0.tianditu.gov.cn/cva_w/wmts?tk=',
  153. layer: "img",
  154. matrixSet: "w",
  155. format: "tiles",
  156. style: "default",
  157. opacity: 1,
  158. visible: false
  159. },
  160. {
  161. name: '影像注记',
  162. typeName: '球面墨卡托投影',
  163. isLabel: false,
  164. type: 'tdtlayer',
  165. url: 'http://t0.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=',//'http://t0.tianditu.gov.cn/cva_w/wmts?tk=',
  166. layer: "cia",
  167. matrixSet: "w",
  168. format: "tiles",
  169. style: "default",
  170. opacity: 1,
  171. visible: false
  172. },
  173. ]
  174. },
  175. geoServerSource: {
  176. url: geoServerConfig.geoServerUrl + 'geoserver',
  177. IP: "",
  178. wkid: "EPSG:4326",
  179. namespace: "fxpl",
  180. maxzoom: 21,
  181. minzoom: 2,
  182. terrain: {
  183. name: "行政区划分布",
  184. type: "tilewms",
  185. issplit: true,
  186. key: "dixing",
  187. opacity: 0.8,
  188. visible: true,
  189. description: "行政区划分布",
  190. param: {
  191. url: geoServerConfig.geoServerUrl + 'geoserver/wms',
  192. params: {
  193. FORMAT: 'image/png',
  194. VERSION: '1.1.1',
  195. tiled: true,
  196. LAYERS: 'myws:myws_dxt',
  197. exceptions: 'application/vnd.ogc.se_inimage',
  198. tilesOrigin: 449673.15625 + "," + 3461074
  199. }
  200. }
  201. },
  202. basepipe: {
  203. name: "管网分布",
  204. type: "tilewms",
  205. key: "guanwang",
  206. issplit: true,
  207. opacity: 1,
  208. visible: true,
  209. description: "管网分布",
  210. param: {
  211. url: geoServerConfig.geoServerUrl + 'geoserver/wms',
  212. params: {
  213. FORMAT: 'image/png',
  214. VERSION: '1.1.0',
  215. tiled: true,
  216. LAYERS: 'fxpl:pipemap',
  217. exceptions: 'application/vnd.ogc.se_inimage',
  218. tilesOrigin: 307649.085574611 + "," + 2488394.233887289
  219. },
  220. crossOrigin: 'anonymous', //处理跨域
  221. }
  222. }
  223. },
  224. queryServer: {
  225. uri: geoServerConfig.geoServerUrl + 'geoserver',
  226. url: geoServerConfig.geoServerUrl + "geoserver/fxpl/wfs",
  227. namespace: 'fxpl',
  228. featurePrefix: 'fxpl',
  229. wkid: 4326,
  230. srsName: 'EPSG:4490', //'EPSG:4326',
  231. service: 'WFS',
  232. version: '1.1.0',
  233. request: 'GetFeature',
  234. outputformat: 'JSON',
  235. typeName_uniqueval: 'fxpl:uniqueval', //获取唯一值的类型名
  236. typeName_layerfields: 'fxpl:layerfields', //获取图层的类型名
  237. typeName_statistic: 'fxpl:themastatistics', //统计的类型名
  238. }
  239. },
  240. },
  241. //大屏地图服务
  242. bigScreenMapService: {
  243. initCenter: [105.76437139908836, 32.4173752267069],
  244. initZoom: 14,
  245. projection: 'EPSG:4326',
  246. layerService: {
  247. citymap: {
  248. name: "底图服务",
  249. type: "tilewms",
  250. key: "bigScreenBaseMap",
  251. issplit: false,
  252. opacity: 1,
  253. visible: true,
  254. description: "底图服务",
  255. param: {
  256. url: geoServerConfig.geoServerUrl + 'geoserver/wms',
  257. params: {
  258. FORMAT: 'image/png',
  259. VERSION: '1.1.0',
  260. tiled: true,
  261. LAYERS: 'fxpl:basemap',
  262. exceptions: 'application/vnd.ogc.se_inimage',
  263. tilesOrigin: 307649.085574611 + "," + 2488394.233887289
  264. },
  265. crossOrigin: 'anonymous', //处理跨域
  266. }
  267. },
  268. pipemap: {
  269. name: "管网服务",
  270. type: "tilewms",
  271. key: "bigScreenPipeMap",
  272. issplit: true,
  273. opacity: 1,
  274. visible: true,
  275. description: "管网服务",
  276. param: {
  277. url: geoServerConfig.geoServerUrl + 'geoserver/wms',
  278. params: {
  279. FORMAT: 'image/png',
  280. VERSION: '1.1.0',
  281. tiled: true,
  282. LAYERS: 'fxpl:pipemap',
  283. exceptions: 'application/vnd.ogc.se_inimage',
  284. tilesOrigin: 307649.085574611 + "," + 2488394.233887289
  285. },
  286. crossOrigin: 'anonymous', //处理跨域
  287. }
  288. }
  289. }
  290. }
  291. }
  292. /**
  293. * 轮询时机设置
  294. */
  295. export const notificationInterval = 30000
  296. export const homeInterval = 60000