config1.js 16 KB

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