config.js 16 KB

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