config.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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: false,
  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: 'sl',
  68. title: '天地矢量地图',
  69. epsg: 4326,
  70. type: 'TDT',
  71. show: false,
  72. minimumLevel: 0,
  73. maximumLevel: 18,
  74. url: [
  75. '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',
  76. ],
  77. subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
  78. },
  79. {
  80. id: 'satellite',
  81. title: "库区遥感影像", //卫星遥感影像
  82. epsg: 4326,
  83. type: 'SUPER',
  84. show: false,
  85. minimumLevel: 0,
  86. maximumLevel: 18,
  87. //url: iserverConfig.baseUrl + 'services/3D-local3DCache-YRGPHHLYDOM1m/rest/realspace/datas/YRGP_HHLY_DOM_1m'
  88. url: iserverConfig.baseUrl + 'services/3D-local3DCache-DOMXLDKQ2022080d2m01/rest/realspace/datas/DOM_XLD_KQ_202208_0d2m_01',
  89. },
  90. {
  91. id: 'kq_hp_06',
  92. title: '库区航拍影像2024年6月',
  93. epsg: 4326,
  94. type: 'SUPER_3D',
  95. show: false,
  96. minimumLevel: 0,
  97. maximumLevel: 18,
  98. url: iserverConfig.baseUrl + 'services/DOM_XLDKQ_L2_202406_050cm_WGS84/rest/maps/小浪底库区202406期影像_WGS84',
  99. },
  100. {
  101. id: 'kq_hp_07',
  102. title: '库区航拍影像2024年7月',
  103. epsg: 4326,
  104. type: 'SUPER_3D',
  105. show: false,
  106. minimumLevel: 0,
  107. maximumLevel: 18,
  108. url: iserverConfig.baseUrl + 'services/DOM_XLDKQ_L2_202407_050cm_WGS84/rest/maps/小浪底库区202407期影像_WGS84',
  109. },
  110. ],
  111. layers3D: [
  112. // {
  113. // id: 'db_model',
  114. // url: iserverConfig.baseUrl + 'services/3D-local3DCache-YRGPXLDDAM/rest/realspace',
  115. // height: 0,
  116. // flyTo: false,
  117. // show: false,
  118. // type: 'S3M',
  119. // },
  120. {
  121. id: 'xldqxsy', //小浪底倾斜摄影
  122. url: iserverConfig.baseUrl + 'services/3D-XLDQXSY/rest/realspace',
  123. height: 0,
  124. flyTo: false,
  125. show: false,
  126. type: 'S3M',
  127. },
  128. {
  129. id: 'xxyqxsy', //西霞院倾斜摄影
  130. url: iserverConfig.baseUrl + 'services/3D-local3DCache-xxyqxsy/rest/realspace',
  131. height: 0,
  132. flyTo: false,
  133. show: false,
  134. type: 'S3M',
  135. },
  136. {
  137. id: 'XLD_CF_BIM', //小浪底厂房BIM模型
  138. url: iserverConfig.baseUrl + 'services/3D-BIM_XLD_L2_DZCFDQSJ_202205/rest/realspace',
  139. height: 0,
  140. flyTo: true,
  141. show: false,
  142. type: 'S3M',
  143. },
  144. {
  145. id: 'DEM0304', //地形DEM
  146. url: iserverConfig.baseUrl + 'services/3D-BIM_XLD_L2_DZCFDQSJ_202205/rest/realspace',
  147. height: 0,
  148. flyTo: true,
  149. show: false,
  150. type: 'S3M',
  151. },
  152. ],
  153. asyncLayer3D: [
  154. ]
  155. },
  156. // 图层树
  157. layerControl: [
  158. {
  159. title: "基础底图",
  160. key: "basic_map",
  161. children: [],
  162. disabled: true,
  163. isLeaf: false
  164. },
  165. // {
  166. // title: "小浪底",
  167. // key: "xld",
  168. // children: [],
  169. // disabled: true,
  170. // isLeaf: false,
  171. // uper:'basic_map',
  172. // },
  173. {
  174. title: "倾斜摄影",
  175. key: "base_scene",
  176. children: [],
  177. disabled: true,
  178. isLeaf: false,
  179. uper:'basic_map',
  180. },
  181. {
  182. title: "库区航拍影像",
  183. key: "base_kq_hp",
  184. children: [],
  185. disabled: true,
  186. isLeaf: false,
  187. uper:'basic_map',
  188. },
  189. {
  190. title: "BIM模型",
  191. key: "bim_model",
  192. children: [],
  193. disabled: true,
  194. isLeaf: false,
  195. uper:'basic_map',
  196. },
  197. {
  198. title: "地形DEM",
  199. key: "DEM0304",
  200. isLeaf: true,
  201. uper: 'basic_map',
  202. fusionLayers: {
  203. model: 'DEM0304'
  204. },
  205. isEdit:false,
  206. },
  207. // {
  208. // title: "大坝模型",
  209. // key: "db_model",
  210. // isLeaf: true,
  211. // uper: 'xld',
  212. // fusionLayers: {
  213. // model: 'db_model'
  214. // },
  215. // isEdit:false,
  216. // },
  217. {
  218. title: "小浪底倾斜摄影",
  219. key: "xldqxsy",
  220. isLeaf: true,
  221. uper: 'base_scene',
  222. fusionLayers: {
  223. model: 'xldqxsy'
  224. },
  225. isEdit:false,
  226. },
  227. {
  228. title: "西霞院倾斜摄影",
  229. key: "xxyqxsy",
  230. isLeaf: true,
  231. uper: 'base_scene',
  232. fusionLayers: {
  233. model: 'xxyqxsy'
  234. },
  235. isEdit:false,
  236. },
  237. {
  238. title: "小浪底厂房BIM模型",
  239. key: "XLD_CF_BIM",
  240. isLeaf: true,
  241. uper: 'bim_model',
  242. fusionLayers: {
  243. model: 'XLD_CF_BIM'
  244. },
  245. isEdit:false,
  246. },
  247. {
  248. title: "西霞院厂房BIM模型(暂无)",
  249. key: "XXY_CF_BIM",
  250. isLeaf: true,
  251. uper: 'bim_model',
  252. fusionLayers: {
  253. model: 'XLD_CF_BIM'
  254. },
  255. isEdit:false,
  256. },
  257. {
  258. title: "库区遥感影像", //卫星遥感影像
  259. key: "satellite",
  260. isLeaf: true,
  261. uper: 'basic_map',
  262. fusionLayers: {
  263. layer2d: ['satellite']
  264. },
  265. isEdit:false,
  266. },
  267. {
  268. title: "库区航拍影像202406", //卫星遥感影像
  269. key: "kq_hp_06",
  270. isLeaf: true,
  271. uper: 'base_kq_hp',
  272. fusionLayers: {
  273. layer2d: ['kq_hp_06']
  274. },
  275. isEdit:false,
  276. },
  277. {
  278. title: "库区航拍影像202407", //卫星遥感影像
  279. key: "kq_hp_07",
  280. isLeaf: true,
  281. uper: 'base_kq_hp',
  282. fusionLayers: {
  283. layer2d: ['kq_hp_07']
  284. },
  285. isEdit:false,
  286. },
  287. ],
  288. // 视角配置
  289. layerView: {
  290. qxsy1: {
  291. isFlyTo: true, //是否支持定位
  292. viewExtent: {
  293. destination: {
  294. x: 112.39415697775746,
  295. y: 34.91332337135989,
  296. z: 1557.5457612960613
  297. },
  298. orientation: {
  299. heading: 5.126025171871763,
  300. pitch: -0.41165893655816665,
  301. roll: 3.108624468950438e-14
  302. }
  303. }// 定位默认范围,如果没配置的话则使用中心坐标去定位
  304. },
  305. dem: {
  306. isFlyTo: true, //是否支持定位
  307. viewExtent: {
  308. destination: {
  309. x: 112.39415697775746,
  310. y: 34.91332337135989,
  311. z: 1557.5457612960613
  312. },
  313. orientation: {
  314. heading: 5.126025171871763,
  315. pitch: -0.41165893655816665,
  316. roll: 3.108624468950438e-14
  317. }
  318. }// 定位默认范围,如果没配置的话则使用中心坐标去定位
  319. },
  320. dam: {
  321. isFlyTo: true, //是否支持定位
  322. viewExtent: {
  323. "destination": {
  324. "x": 112.5262240096781,
  325. "y": 34.863677273837936,
  326. "z": 1880.2777799562828
  327. },
  328. "orientation": {
  329. "heading": 0.06743990496026964,
  330. "pitch": -0.6999909887287021,
  331. "roll": 5.1514348342607263e-14
  332. }
  333. }// 定位默认范围,如果没配置的话则使用中心坐标去定位
  334. }
  335. },
  336. };