config.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /**
  2. * 基础服务配置
  3. */
  4. const BASE_IP = 'http://192.168.119.192';
  5. const iserverConfig = {
  6. baseUrl: `${BASE_IP}:{s}/iserver/`,
  7. subdomains: [
  8. `8090`,
  9. // `7001`,
  10. // `7002`,
  11. // `7003`,
  12. // `7004`,
  13. // `7005`,
  14. ],
  15. };
  16. window.threeMapConfig = {
  17. initDestination: {
  18. x: 112.39415697775746,
  19. y: 34.91332337135989,
  20. z: 1557.5457612960613
  21. },
  22. initOrientation: {
  23. heading: 5.126025171871763,
  24. pitch: -0.41165893655816665,
  25. roll: 3.108624468950438e-14
  26. },
  27. mapConfig: {
  28. demUrl: iserverConfig.baseUrl + 'services/3D-local3DCache-DEM0304/rest/realspace/datas/DEM0304',
  29. isSct: true,
  30. demSubdomains: iserverConfig.subdomains,
  31. defaultView: {
  32. destination: {
  33. x: 112.39415697775746,
  34. y: 34.91332337135989,
  35. z: 1557.5457612960613
  36. },
  37. orientation: {
  38. heading: 5.126025171871763,
  39. pitch: -0.41165893655816665,
  40. roll: 3.108624468950438e-14
  41. }
  42. },
  43. //类型type GD高德,BDBD百度本地,BD百度,GOOGLE谷歌,TX腾讯,SUPER超图,SUPER_3D超图三维,WEBP超图webp
  44. layers2D: [
  45. // {
  46. // id: 'yx',
  47. // title: '天地图影像地图',
  48. // epsg: 4326,
  49. // show: true,
  50. // minimumLevel: 0,
  51. // maximumLevel: 18,
  52. // type: 'TDT',
  53. // url: [
  54. // 'http://t{s}.tianditu.com/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=15f7b01aababbb39ab568f4ba12ea21c',
  55. // ],
  56. // subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
  57. // },
  58. {
  59. id: 'yx',
  60. title: '天地图影像地图',
  61. epsg: 4326,
  62. show: true,
  63. minimumLevel: 0,
  64. maximumLevel: 18,
  65. type: 'SUPER',
  66. url: iserverConfig.baseUrl + 'services/map-ugcv5-YRGPGLOBALDOM2/rest/maps/YRGP_GLOBAL_DOM',
  67. subdomains:iserverConfig.subdomains
  68. },
  69. {
  70. id: 'yx1',
  71. title: '天地图影像地图',
  72. epsg: 4326,
  73. show: true,
  74. minimumLevel: 0,
  75. maximumLevel: 18,
  76. type: 'SUPER',
  77. url: iserverConfig.baseUrl + 'services/map-ugcv5-YRGCXLDDOM1m/rest/maps/YRGC_XLD_DOM_1m',
  78. subdomains:iserverConfig.subdomains
  79. },
  80. {
  81. id: 'f_swx',
  82. title: '水位线',
  83. epsg: 4326,
  84. show: true,
  85. minimumLevel: 0,
  86. maximumLevel: 18,
  87. type: 'SUPER',
  88. flyTo:true,
  89. url: 'http://192.168.119.13:8084/iserver/services/map-ugcv5-sx2D/rest/maps/sx2D',
  90. },
  91. {
  92. id: 'sl',
  93. title: '天地矢量地图',
  94. epsg: 4326,
  95. type: 'TDT',
  96. show: false,
  97. minimumLevel: 0,
  98. maximumLevel: 18,
  99. url: [
  100. 'http://t{s}.tianditu.gov.cn/vec_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=15f7b01aababbb39ab568f4ba12ea21c',
  101. ],
  102. subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
  103. },
  104. {
  105. id: 'satellite',
  106. title: "库区遥感影像", //卫星遥感影像
  107. epsg: 4326,
  108. type: 'SUPER',
  109. show: false,
  110. minimumLevel: 0,
  111. maximumLevel: 18,
  112. //url: iserverConfig.baseUrl + 'services/3D-local3DCache-YRGPHHLYDOM1m/rest/realspace/datas/YRGP_HHLY_DOM_1m'
  113. url: iserverConfig.baseUrl + 'services/3D-local3DCache-DOMXLDKQ2022080d2m01/rest/realspace/datas/DOM_XLD_KQ_202208_0d2m_01',
  114. subdomains:iserverConfig.subdomains
  115. },
  116. {
  117. id: 'kq_hp_06',
  118. title: '库区航拍影像2024年6月',
  119. epsg: 4326,
  120. type: 'SUPER_3D',
  121. show: false,
  122. minimumLevel: 0,
  123. maximumLevel: 18,
  124. url: iserverConfig.baseUrl + 'services/DOM_XLDKQ_L2_202406_050cm_WGS84/rest/maps/小浪底库区202406期影像_WGS84',
  125. subdomains:iserverConfig.subdomains
  126. },
  127. {
  128. id: 'kq_hp_07',
  129. title: '库区航拍影像2024年7月',
  130. epsg: 4326,
  131. type: 'SUPER_3D',
  132. show: false,
  133. minimumLevel: 0,
  134. maximumLevel: 18,
  135. url: iserverConfig.baseUrl + 'services/DOM_XLDKQ_L2_202407_050cm_WGS84/rest/maps/小浪底库区202407期影像_WGS84',
  136. subdomains:iserverConfig.subdomains
  137. },
  138. {
  139. id: 'base_kq_dbs_2021_xq',
  140. title: "2021汛前坝前漏斗区水下地形数据",
  141. epsg: 4326,
  142. type: 'SUPER_3D',
  143. show: false,
  144. minimumLevel: 0,
  145. maximumLevel: 18,
  146. url: iserverConfig.baseUrl + 'services/3D-2021XQDBS/rest/realspace/datas/T2021年汛前小浪底汛前1%40SXDX',
  147. subdomains:iserverConfig.subdomains
  148. },
  149. {
  150. id: 'base_kq_dbs_2021_xh',
  151. title: "2021汛后坝前漏斗区水下地形数据",
  152. epsg: 4326,
  153. type: 'SUPER_3D',
  154. show: false,
  155. minimumLevel: 0,
  156. maximumLevel: 18,
  157. url: iserverConfig.baseUrl + 'services/3D-2021XHDBS/rest/realspace/datas/T2021年汛后小浪底汛后0d1m1%40SXDX',
  158. subdomains:iserverConfig.subdomains
  159. },
  160. {
  161. id: 'base_kq_dbs_2022_xq',
  162. title: "2022汛前坝前漏斗区水下地形数据",
  163. epsg: 4326,
  164. type: 'SUPER_3D',
  165. show: false,
  166. minimumLevel: 0,
  167. maximumLevel: 18,
  168. url: iserverConfig.baseUrl + 'services/3D-XLD_2022-DBS/rest/realspace/datas/XLD_2022@DBS',
  169. subdomains:iserverConfig.subdomains
  170. },
  171. {
  172. id: 'base_kq_dbs_2023_xq',
  173. title: "2023汛前坝前漏斗区水下地形数据",
  174. epsg: 4326,
  175. type: 'SUPER_3D',
  176. show: false,
  177. minimumLevel: 0,
  178. maximumLevel: 18,
  179. url: iserverConfig.baseUrl + 'services/3D-2023XQBQLDQ/rest/realspace/datas/T2023dem_OrthoImage_1@123',
  180. subdomains:iserverConfig.subdomains
  181. },
  182. {
  183. id: 'base_kq_dbs_2023_xh',
  184. title: "2023汛后坝前漏斗区水下地形数据",
  185. epsg: 4326,
  186. type: 'SUPER_3D',
  187. show: false,
  188. minimumLevel: 0,
  189. maximumLevel: 18,
  190. url: iserverConfig.baseUrl + 'services/3D-DEM_XLDBQLDQ_L2_202312_050dm/rest/realspace/datas/DEM_XLDBQLDQ_L2_202312_050dm_OrthoImage',
  191. subdomains:iserverConfig.subdomains
  192. },
  193. {
  194. id: 'base_kq_dbs_2024_xq',
  195. title: "小浪底2024坝前漏斗区水下地形数据",
  196. epsg: 4326,
  197. type: 'SUPER_3D',
  198. show: false,
  199. minimumLevel: 0,
  200. maximumLevel: 18,
  201. url: iserverConfig.baseUrl + 'services/3D-XLD_2024/rest/realspace/datas/xld2024_1@DBS',
  202. subdomains:iserverConfig.subdomains
  203. },
  204. {
  205. id: 'base_kq_dbs_2024_xxybq',
  206. title: "西霞院2024坝前水下地形数据",
  207. epsg: 4326,
  208. type: 'SUPER_3D',
  209. show: false,
  210. minimumLevel: 0,
  211. maximumLevel: 18,
  212. url: iserverConfig.baseUrl + 'services/3D-xxy_2024_bq/rest/realspace/datas/xxy_2024_bq@DBS',
  213. subdomains:iserverConfig.subdomains
  214. },
  215. {
  216. id: 'base_kq_dbs_2024_xxybx',
  217. title: "西霞院2024坝下水下地形数据",
  218. epsg: 4326,
  219. type: 'SUPER_3D',
  220. show: false,
  221. minimumLevel: 0,
  222. maximumLevel: 18,
  223. url: iserverConfig.baseUrl + 'services/3D-xxy_2024_bx/rest/realspace/datas/xxy_2024_bx@DBS',
  224. subdomains:iserverConfig.subdomains
  225. },
  226. ],
  227. layers3D: [
  228. // {
  229. // id: 'db_model',
  230. // url: iserverConfig.baseUrl + 'services/3D-local3DCache-YRGPXLDDAM/rest/realspace',
  231. // height: 0,
  232. // flyTo: false,
  233. // show: false,
  234. // type: 'S3M',
  235. // },
  236. {
  237. id: 'xldqxsy', //小浪底倾斜摄影
  238. url: iserverConfig.baseUrl + 'services/3D-XLDQXSY/rest/realspace',
  239. height: 100,
  240. flyTo: false,
  241. show: false,
  242. type: 'S3M',
  243. subdomains: iserverConfig.subdomains
  244. },
  245. {
  246. id: 'xxyqxsy', //西霞院倾斜摄影
  247. url: iserverConfig.baseUrl + 'services/3D-local3DCache-xxyqxsy/rest/realspace',
  248. height: 100,
  249. flyTo: false,
  250. show: false,
  251. type: 'S3M',
  252. subdomains: iserverConfig.subdomains
  253. },
  254. {
  255. id: 'XLD_CF_BIM_1', //小浪底厂房BIM模型
  256. url: iserverConfig.baseUrl + 'services/3D-BIM_XLD_L2_DZCFDQSJ_202205/rest/realspace',
  257. height: 0,
  258. flyTo: false,
  259. show: false,
  260. type: 'S3M',
  261. subdomains: iserverConfig.subdomains
  262. },
  263. {
  264. id: 'XLD_CF_BIM', //小浪底厂房BIM模型
  265. url: iserverConfig.baseUrl + 'services/3D-local3DCache-xldsj20240827/rest/realspace',
  266. height: 0,
  267. flyTo: false,
  268. show: false,
  269. type: 'S3M',
  270. subdomains: iserverConfig.subdomains
  271. },
  272. {
  273. id: 'base_kq_dbs_2021_xq',
  274. title: "2021汛前坝前漏斗区水下地形数据",
  275. url: iserverConfig.baseUrl + 'services/3D-2021XQDBS/rest/realspace',
  276. height: 500,
  277. flyTo: true,
  278. show: true,
  279. type: 'S3M',
  280. subdomains: iserverConfig.subdomains
  281. },
  282. ],
  283. asyncLayer3D: [
  284. ]
  285. },
  286. // 图层树
  287. layerControl: [
  288. {
  289. title: "基础底图",
  290. key: "basic_map",
  291. children: [],
  292. disabled: false,
  293. isLeaf: false
  294. },
  295. {
  296. title: "倾斜摄影",
  297. key: "base_scene",
  298. children: [],
  299. disabled: false,
  300. isLeaf: false,
  301. uper: 'basic_map',
  302. },
  303. {
  304. title: "库区水下地形", //库区多波束
  305. key: "base_kq_dbs",
  306. children: [],
  307. disabled: false,
  308. isLeaf: false,
  309. uper: 'basic_map',
  310. },
  311. {
  312. title: "库区航拍影像",
  313. key: "base_kq_hp",
  314. children: [],
  315. disabled: false,
  316. isLeaf: false,
  317. uper: 'basic_map',
  318. },
  319. {
  320. title: "BIM模型",
  321. key: "bim_model",
  322. children: [],
  323. disabled: false,
  324. isLeaf: false,
  325. uper: 'basic_map',
  326. },
  327. {
  328. title: "小浪底倾斜摄影",
  329. key: "xldqxsy",
  330. isLeaf: true,
  331. uper: 'base_scene',
  332. fusionLayers: {
  333. model: 'xldqxsy'
  334. },
  335. isEdit: false,
  336. },
  337. {
  338. title: "西霞院倾斜摄影",
  339. key: "xxyqxsy",
  340. isLeaf: true,
  341. uper: 'base_scene',
  342. fusionLayers: {
  343. model: 'xxyqxsy'
  344. },
  345. isEdit: false,
  346. },
  347. {
  348. title: "小浪底",
  349. key: "XLD_CF_BIM",
  350. isLeaf: true,
  351. uper: 'bim_model',
  352. fusionLayers: {
  353. model: 'XLD_CF_BIM'
  354. },
  355. isEdit: false,
  356. },
  357. {
  358. title: "小浪底厂房",
  359. key: "XLD_CF_BIM_1",
  360. isLeaf: true,
  361. uper: 'bim_model',
  362. fusionLayers: {
  363. model: 'XLD_CF_BIM_1'
  364. },
  365. isEdit: false,
  366. },
  367. {
  368. title: "西霞院",
  369. key: "XXY_CF_BIM",
  370. isLeaf: true,
  371. uper: 'bim_model',
  372. fusionLayers: {
  373. model: 'XLD_CF_BIM'
  374. },
  375. isEdit: false,
  376. },
  377. {
  378. title: "库区遥感影像", //卫星遥感影像
  379. key: "satellite",
  380. isLeaf: true,
  381. uper: 'basic_map',
  382. fusionLayers: {
  383. layer2d: ['satellite']
  384. },
  385. isEdit: false,
  386. },
  387. {
  388. title: "2021汛前坝前漏斗区水下地形数据",
  389. key: "base_kq_dbs_2021_xq",
  390. isLeaf: true,
  391. uper: 'base_kq_dbs',
  392. fusionLayers: {
  393. layer2d: ['base_kq_dbs_2021_xq']
  394. },
  395. isEdit: false,
  396. },
  397. {
  398. title: "2021汛后坝前漏斗区水下地形数据",
  399. key: "base_kq_dbs_2021_xh",
  400. isLeaf: true,
  401. uper: 'base_kq_dbs',
  402. fusionLayers: {
  403. layer2d: ['base_kq_dbs_2021_xh']
  404. },
  405. isEdit: false,
  406. },
  407. {
  408. title: "2022汛前坝前漏斗区水下地形数据",
  409. key: "base_kq_dbs_2022_xq",
  410. isLeaf: true,
  411. uper: 'base_kq_dbs',
  412. fusionLayers: {
  413. layer2d: ['base_kq_dbs_2022_xq']
  414. },
  415. isEdit: false,
  416. },
  417. {
  418. title: "2023汛前坝前漏斗区水下地形数据",
  419. key: "base_kq_dbs_2023_xq",
  420. isLeaf: true,
  421. uper: 'base_kq_dbs',
  422. fusionLayers: {
  423. layer2d: ['base_kq_dbs_2023_xq']
  424. },
  425. isEdit: false,
  426. },
  427. {
  428. title: "2023汛后坝前漏斗区水下地形数据",
  429. key: "base_kq_dbs_2023_xh",
  430. isLeaf: true,
  431. uper: 'base_kq_dbs',
  432. fusionLayers: {
  433. layer2d: ['base_kq_dbs_2023_xh']
  434. },
  435. isEdit: false,
  436. },
  437. {
  438. title: "小浪底2024坝前漏斗区水下地形数据",
  439. key: "base_kq_dbs_2024_xq",
  440. isLeaf: true,
  441. uper: 'base_kq_dbs',
  442. fusionLayers: {
  443. layer2d: ['base_kq_dbs_2024_xq']
  444. },
  445. isEdit: false,
  446. },
  447. {
  448. title: "西霞院2024坝前水下地形数据",
  449. key: "base_kq_dbs_2024_xxybq",
  450. isLeaf: true,
  451. uper: 'base_kq_dbs',
  452. fusionLayers: {
  453. layer2d: ['base_kq_dbs_2024_xxybq']
  454. },
  455. isEdit: false,
  456. },
  457. {
  458. title: "西霞院2024坝下水下地形数据",
  459. key: "base_kq_dbs_2024_xxybx",
  460. isLeaf: true,
  461. uper: 'base_kq_dbs',
  462. fusionLayers: {
  463. layer2d: ['base_kq_dbs_2024_xxybx']
  464. },
  465. isEdit: false,
  466. },
  467. {
  468. title: "库区航拍影像202406",
  469. key: "kq_hp_06",
  470. isLeaf: true,
  471. uper: 'base_kq_hp',
  472. fusionLayers: {
  473. layer2d: ['kq_hp_06']
  474. },
  475. isEdit: false,
  476. },
  477. {
  478. title: "库区航拍影像202407", //卫星遥感影像
  479. key: "kq_hp_07",
  480. isLeaf: true,
  481. uper: 'base_kq_hp',
  482. fusionLayers: {
  483. layer2d: ['kq_hp_07']
  484. },
  485. isEdit: false,
  486. },
  487. ],
  488. // 视角配置
  489. layerView: {
  490. qxsy1: {
  491. isFlyTo: true, //是否支持定位
  492. viewExtent: {
  493. destination: {
  494. x: 112.39415697775746,
  495. y: 34.91332337135989,
  496. z: 1557.5457612960613
  497. },
  498. orientation: {
  499. heading: 5.126025171871763,
  500. pitch: -0.41165893655816665,
  501. roll: 3.108624468950438e-14
  502. }
  503. }// 定位默认范围,如果没配置的话则使用中心坐标去定位
  504. },
  505. dem: {
  506. isFlyTo: true, //是否支持定位
  507. viewExtent: {
  508. destination: {
  509. x: 112.39415697775746,
  510. y: 34.91332337135989,
  511. z: 1557.5457612960613
  512. },
  513. orientation: {
  514. heading: 5.126025171871763,
  515. pitch: -0.41165893655816665,
  516. roll: 3.108624468950438e-14
  517. }
  518. }// 定位默认范围,如果没配置的话则使用中心坐标去定位
  519. },
  520. dam: {
  521. isFlyTo: true, //是否支持定位
  522. viewExtent: {
  523. "destination": {
  524. "x": 112.5262240096781,
  525. "y": 34.863677273837936,
  526. "z": 1880.2777799562828
  527. },
  528. "orientation": {
  529. "heading": 0.06743990496026964,
  530. "pitch": -0.6999909887287021,
  531. "roll": 5.1514348342607263e-14
  532. }
  533. }// 定位默认范围,如果没配置的话则使用中心坐标去定位
  534. }
  535. },
  536. dataService: {
  537. name: '数据服务',
  538. url: iserverConfig.baseUrl + 'services/data-XLD_KQYG_R2D/rest/data',
  539. dataSource: 'XLD_KQYG_R2D',
  540. dataSet: ['psmap'], //暂不用
  541. dataSetInfo: [
  542. {
  543. name: 'XLD_FDSB_R2D',
  544. title: '发电设备',
  545. label: '发电设备'
  546. },
  547. ]
  548. // XLD_FDSB_R2D
  549. // XLD_SCAQSB_R2D
  550. // XLD_SGSB_R2D
  551. // XLD_SPJK_R2D
  552. },
  553. // 用于加载项目静态资源
  554. // sourceUrl: 'http://192.168.119.100:12001/twoThreeMap', //本地运行
  555. sourceUrl: 'http://192.168.193.118:8083',//xiaxin运行环境
  556. };