config.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. window.ApplicationConfig = {
  2. // baseUrl: "https://zlzd.zrzyt.zj.gov.cn/app215/ybz-api/",
  3. baseUrl: '/ysgzybz',
  4. mapLayerConfig: {
  5. use: "innerNet",
  6. projection: {
  7. "EPSG:4490": "+proj=longlat +ellps=GRS80 +no_defs" // proj4.defs("EPSG:4490","+proj=longlat +ellps=GRS80 +no_defs");
  8. },
  9. innerNet: {
  10. view: {
  11. center: [120.19308, 30.19711],
  12. zoom: 13,
  13. fitExtent: [
  14. 119.93054011309823,
  15. 27.58795490358181,
  16. 121.24821284259042,
  17. 28.05212726686306
  18. ],
  19. minZoom: 7,
  20. maxZoom: 21
  21. },
  22. layers: [
  23. {
  24. id: "jcdl", // id 一经指定,切勿轻易修改
  25. name: "基础地理",
  26. enabled: true, // 是否启用,启用才会显示在页面中
  27. expand: false, // 是否展开折叠
  28. visible: true, // 是否显示子图层
  29. base: true, // 是否底图,底图 在 设置 visible-layer-ids 时会跳过,向下传递
  30. opacity: 1, // 图层透明度,取值0~1或false,false禁用透明度调节功能,可选配置
  31. hidden: false, // 只在 layerTree 组件里面不显示,代码上依旧能获取到,可选配置
  32. children: [
  33. {
  34. id: "zjyx-g",
  35. name: "浙江-影像",
  36. enabled: true,
  37. expand: false,
  38. visible: true,
  39. children: [
  40. {
  41. id: 'tdt',
  42. name: "天地图影像",
  43. enabled: true,
  44. visible: true,
  45. wmtsForceUrl: true,
  46. serverType: "tdtxyz",
  47. url: "http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=f2f2a746d8ec501d1c60d1ac7d7e063c"
  48. },
  49. ]
  50. },
  51. {
  52. id: "xzqh",
  53. name: "行政区划",
  54. enabled: true,
  55. expand: false,
  56. visible: false,
  57. children: [
  58. {
  59. id: "xzqh-s",
  60. name: "市级行政区",
  61. enabled: true,
  62. visible: true,
  63. serverType: "ArcGISTile",
  64. // url: 'https://zlzd.zrzyt.zj.gov.cn/gtkj/SZSW/ef622c03738048d2962fb27c0e28aa64/arcgis/rest/services/GCS330000_1001_XZQH_2021_TM/GCS330000_1001_XZQH_DS_2021_TM/MapServer'
  65. url:
  66. "https://zlzd.zrzyt.zj.gov.cn/gtkj/SZSW/ef622c03738048d2962fb27c0e28aa64/arcgis/rest/services/GCS330000_1001_XZQH_2021_TM/GCS330000_1001_XZQH_DS_2021_TM/MapServer"
  67. },
  68. {
  69. id: "xzqh-s-search",
  70. name: "市级行政区",
  71. enabled: true,
  72. visible: false,
  73. serverType: "wms",
  74. params: {
  75. version: '1.1.1',
  76. layers: 'sde:sjxzq',
  77. },
  78. url:
  79. "https://zlzd.zrzyt.zj.gov.cn/geoserver/sde/wms",
  80. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde',
  81. },
  82. {
  83. id: "xzqh-x-search",
  84. name: "县级行政区",
  85. enabled: true,
  86. visible: false,
  87. serverType: "wms",
  88. params: {
  89. version: '1.1.1',
  90. layers: 'sde:xjxzq',
  91. },
  92. url:
  93. "https://zlzd.zrzyt.zj.gov.cn/geoserver/sde/wms",
  94. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde',
  95. },
  96. {
  97. id: "xzqh-x",
  98. name: "县级行政区",
  99. enabled: true,
  100. visible: false,
  101. serverType: "ArcGISTile",
  102. url:
  103. "https://zlzd.zrzyt.zj.gov.cn/gtkj/SZSW/8eebbfb5f4154884b948fffdd0925158/arcgis/rest/services/GCS330000_1001_XZQH_2021_TM/GCS330000_1001_XZQH_QX_2021_TM/MapServer"
  104. },
  105. {
  106. id: "xzqh-z-search",
  107. name: "镇级行政区",
  108. enabled: true,
  109. visible: false,
  110. serverType: "dynamic",
  111. url:
  112. "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/zp/XZQ_ZJ/MapServer"
  113. }
  114. ]
  115. }
  116. ]
  117. },
  118. {
  119. id: "dktc",
  120. name: "图层服务",
  121. enabled: true,
  122. expand: true,
  123. visible: false,
  124. children: [
  125. {
  126. id: "hzyx-202311",
  127. name: "杭州-影像-11",
  128. enabled: true,
  129. visible: false,
  130. serverType: "ArcGISTile",
  131. url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202311_BX.gis`
  132. },
  133. {
  134. id: "hzyx-202310",
  135. name: "杭州-影像-10",
  136. enabled: true,
  137. visible: false,
  138. serverType: "ArcGISTile",
  139. url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202310.gis`
  140. },
  141. {
  142. id: "hzyx-202309",
  143. name: "杭州-影像-09",
  144. enabled: true,
  145. visible: false,
  146. serverType: "ArcGISTile",
  147. url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202309.gis`
  148. },
  149. {
  150. id: "hzyx-202308",
  151. name: "杭州-影像-08",
  152. enabled: true,
  153. visible: false,
  154. serverType: "ArcGISTile",
  155. url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202308.gis`
  156. },
  157. {
  158. id: "hzyx-202307",
  159. name: "杭州-影像-07",
  160. enabled: true,
  161. visible: false,
  162. serverType: "ArcGISTile",
  163. url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202307.gis`
  164. },
  165. {
  166. id: "bj-dkgl",
  167. name: "滨江地块管理",
  168. enabled: true,
  169. visible: false,
  170. serverType: 'wms',
  171. params: {
  172. version: '1.1.1',
  173. layers: 'sde:bjwkfly2000',
  174. },
  175. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde/wms',
  176. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde',
  177. legend: {
  178. title: "管地单位",
  179. defs: {
  180. 区城管局: {
  181. color: "rgba(255, 190, 190, 255)",
  182. query: {}
  183. },
  184. 城建发展公司: {
  185. color: "rgba(255, 211, 127, 255)",
  186. query: {}
  187. },
  188. "城建发展公司;智慧新天地": {
  189. color: "rgba(255, 211, 127, 255)",
  190. query: {}
  191. },
  192. 建管中心: {
  193. color: "rgba(80, 20, 173, 255)",
  194. query: {}
  195. },
  196. 智慧新天地: {
  197. color: "rgba(255, 127, 127, 255)",
  198. query: {}
  199. },
  200. 浦沿街道: {
  201. color: "rgba(255, 115, 223, 255)",
  202. query: {}
  203. },
  204. 滨江环境公司: {
  205. color: "rgba(230, 76, 0, 255)",
  206. query: {}
  207. },
  208. "滨江环境公司;长河街道": {
  209. color: "rgba(0, 255, 197, 255)",
  210. query: {}
  211. },
  212. 物联网: {
  213. color: "rgba(0, 112, 255, 255)",
  214. query: {}
  215. },
  216. "物联网/滨江环境公司": {
  217. color: "rgba(0, 112, 255, 255)",
  218. query: {}
  219. },
  220. 白马湖创意城: {
  221. color: "rgba(197, 0, 255, 255)",
  222. query: {}
  223. },
  224. 西兴街道: {
  225. color: "rgba(85, 255, 0, 255)",
  226. query: {}
  227. },
  228. 资产经营公司: {
  229. color: "rgba(255, 0, 0, 255)",
  230. query: {}
  231. },
  232. "资产经营公司/长河街道": {
  233. color: "rgba(0, 255, 197, 255)",
  234. query: {}
  235. },
  236. 长河街道: {
  237. color: "rgba(0, 255, 197, 255)",
  238. query: {}
  239. },
  240. }
  241. }
  242. },
  243. {
  244. id: "bj-wlyd",
  245. name: "滨江未供地块",
  246. enabled: true,
  247. visible: false,
  248. serverType: 'wms',
  249. params: {
  250. version: '1.1.1',
  251. layers: 'ysybz:bjwlyd2000',
  252. },
  253. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  254. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  255. legend: {
  256. title: "未供地块资源",
  257. defs: {
  258. }
  259. }
  260. },
  261. {
  262. id: "bj-lsyd",
  263. name: "滨江临时用地",
  264. enabled: true,
  265. visible: false,
  266. serverType: 'wms',
  267. params: {
  268. version: '1.1.1',
  269. layers: 'sde:bjlsyd',
  270. },
  271. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde/wms',
  272. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde',
  273. legend: {
  274. title: "滨江临时用地",
  275. defs: {
  276. 滨江临时用地: {
  277. color: "#9999FF",
  278. query: {}
  279. },
  280. }
  281. }
  282. },
  283. {
  284. id: "bjq-gd",
  285. name: "滨江区供地地块",
  286. enabled: true,
  287. visible: false,
  288. serverType: 'wms',
  289. params: {
  290. version: '1.1.1',
  291. layers: 'ysybz:gdxminfo_bj_1',
  292. },
  293. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  294. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  295. },
  296. {
  297. id: "syyd",
  298. name: "商业用地",
  299. enabled: true,
  300. visible: false,
  301. serverType: 'wms',
  302. params: {
  303. version: '1.1.1',
  304. layers: 'sde:bjsyyd',
  305. },
  306. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde/wms',
  307. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/sde',
  308. legend: {
  309. title: "商业用地",
  310. defs: {
  311. 商业用地: {
  312. color: "#FF0000",
  313. query: {}
  314. }
  315. }
  316. }
  317. },
  318. {
  319. id: "bj-gyyd-new",
  320. name: "滨江工业用地",
  321. enabled: true,
  322. visible: false,
  323. serverType: 'wms',
  324. params: {
  325. version: '1.1.1',
  326. layers: 'ysybz:ydb_bj_gyyd',
  327. },
  328. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  329. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  330. legend: {
  331. title: "滨江工业用地",
  332. defs: {
  333. 滨江工业用地: {
  334. color: "#BB9674",
  335. query: {}
  336. }
  337. }
  338. }
  339. },
  340. {
  341. id: "bj-zzyd-new",
  342. name: "滨江住宅用地",
  343. enabled: true,
  344. visible: false,
  345. serverType: 'wms',
  346. params: {
  347. version: '1.1.1',
  348. layers: 'ysybz:zzyd',
  349. },
  350. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  351. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  352. legend: {
  353. title: "滨江住宅用地",
  354. defs: {
  355. 滨江住宅用地: {
  356. color: "#FFFF2D",
  357. query: {}
  358. }
  359. }
  360. }
  361. },
  362. {
  363. id: "bj-jyyd",
  364. name: "滨江教育用地",
  365. enabled: true,
  366. visible: false,
  367. serverType: 'wms',
  368. params: {
  369. version: '1.1.1',
  370. layers: 'ysybz:jyyd',
  371. },
  372. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  373. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  374. legend: {
  375. title: "滨江教育用地",
  376. defs: {
  377. 滨江教育用地: {
  378. color: "#00FFC5",
  379. query: {}
  380. }
  381. }
  382. }
  383. },
  384. {
  385. id: "bj-xz",
  386. name: "滨江小镇",
  387. enabled: true,
  388. visible: false,
  389. serverType: 'wms',
  390. params: {
  391. version: '1.1.1',
  392. layers: 'ysybz:特色小镇',
  393. },
  394. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  395. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  396. legend: {
  397. title: "滨江小镇",
  398. defs: {
  399. 小镇: {
  400. color: "red",
  401. query: {}
  402. },
  403. }
  404. }
  405. },
  406. {
  407. id: "bj-stbhhx",
  408. name: "滨江生态保护红线",
  409. enabled: true,
  410. visible: false,
  411. serverType: 'wms',
  412. params: {
  413. version: '1.1.1',
  414. layers: 'ysybz:bjstbhhx',
  415. },
  416. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  417. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  418. legend: {
  419. title: "滨江生态保护红线",
  420. defs: {
  421. 保护红线: {
  422. color: "#00A57D",
  423. query: {}
  424. },
  425. }
  426. }
  427. },
  428. {
  429. id: "bj-czkfbj",
  430. name: "滨江城镇开发边界",
  431. enabled: true,
  432. visible: false,
  433. serverType: 'wms',
  434. params: {
  435. version: '1.1.1',
  436. layers: 'ysybz:bjczkfbj_1',
  437. },
  438. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  439. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  440. legend: {
  441. title: "滨江城镇开发边界",
  442. defs: {
  443. 开发边界: {
  444. color: "#FF0064",
  445. query: {}
  446. },
  447. }
  448. }
  449. },
  450. {
  451. id: "bj-kfbjw",
  452. name: "滨江城镇开发边界外",
  453. enabled: true,
  454. visible: false,
  455. serverType: 'wms',
  456. params: {
  457. version: '1.1.1',
  458. layers: 'ysybz:kfbjw',
  459. },
  460. url: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
  461. queryUrl: 'https://zlzd.zrzyt.zj.gov.cn/geoserver/ysybz',
  462. legend: {
  463. title: "滨江城镇开发边界外",
  464. defs: {
  465. 开发边界外: {
  466. color: "#FFFF2D",
  467. query: {}
  468. },
  469. }
  470. }
  471. },
  472. ]
  473. }
  474. ]
  475. },
  476. outerNet: {
  477. view: {
  478. center: [120.50451781233137, 27.842990408642258],
  479. zoom: 11.33,
  480. // extent: [], // 限制视图的范围,此范围之外的任何内容都不能在地图上看到。
  481. fitExtent: [
  482. 119.93054011309823,
  483. 27.58795490358181,
  484. 121.24821284259042,
  485. 28.05212726686306
  486. ],
  487. minZoom: 7,
  488. maxZoom: 21
  489. },
  490. layers: [
  491. {
  492. id: "jcdl", // id 一经指定,切勿轻易修改
  493. name: "基础地理",
  494. enabled: true, // 是否启用,启用才会显示在页面中
  495. expand: false, // 是否展开折叠
  496. visible: true, // 是否显示子图层
  497. base: true, // 是否底图,底图 在 设置 visible-layer-ids 时会跳过,向下传递
  498. opacity: 1, // 图层透明度,取值0~1或false,false禁用透明度调节功能,可选配置
  499. hidden: false, // 只在 layerTree 组件里面不显示,代码上依旧能获取到,可选配置
  500. children: [
  501. {
  502. id: "tdt",
  503. name: "天地图",
  504. enabled: true,
  505. expand: false,
  506. visible: true,
  507. children: [
  508. {
  509. id: "tdtsl",
  510. name: "天地图-矢量",
  511. enabled: true,
  512. visible: true,
  513. serverType: "tdtxyz",
  514. url:
  515. "http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=d8c6e3fba331097a5bd07e4c42f55d4a"
  516. },
  517. {
  518. id: "tdtyx",
  519. name: "天地图-影像",
  520. enabled: true,
  521. visible: true,
  522. serverType: "tdtxyz",
  523. url:
  524. "http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=d8c6e3fba331097a5bd07e4c42f55d4a"
  525. },
  526. {
  527. id: "tdtzj",
  528. name: "天地图-注记",
  529. enabled: true,
  530. visible: true,
  531. serverType: "tdtxyz",
  532. url:
  533. "http://t0.tianditu.gov.cn/DataServer?T=cva_w&X={x}&Y={y}&L={z}&tk=d8c6e3fba331097a5bd07e4c42f55d4a"
  534. }
  535. ]
  536. }
  537. ]
  538. },
  539. {
  540. id: "dktc",
  541. name: "图层服务",
  542. enabled: true,
  543. expand: true,
  544. visible: false,
  545. children: [
  546. {
  547. id: "xzqh",
  548. name: "行政区划",
  549. enabled: true,
  550. expand: false,
  551. visible: false,
  552. children: [
  553. {
  554. id: "xzqh-s",
  555. name: "市级行政区",
  556. enabled: true,
  557. visible: false,
  558. serverType: "dynamic",
  559. url:
  560. "/arcMapServer/tdcsservices/arcgis/rest/services/zp/XZQ_SJ/MapServer"
  561. },
  562. {
  563. id: "xzqh-x",
  564. name: "县级行政区",
  565. enabled: true,
  566. visible: false,
  567. serverType: "dynamic",
  568. url:
  569. "/arcMapServer/tdcsservices/arcgis/rest/services/zp/XZQ_XJ/MapServer"
  570. },
  571. {
  572. id: "xzqh-z",
  573. name: "镇级行政区",
  574. enabled: true,
  575. visible: false,
  576. serverType: "dynamic",
  577. url:
  578. "/arcMapServer/tdcsservices/arcgis/rest/services/zp/XZQ_ZJ/MapServer"
  579. }
  580. ]
  581. }
  582. ]
  583. }
  584. ]
  585. }
  586. },
  587. mockData: {
  588. yhLandInfo: {
  589. gyyd: 34211,
  590. ss: 325.62,
  591. mjss: 95.18,
  592. ss_after: 333.76,
  593. mjss_after: 97.56,
  594. add_ss: 8.13,
  595. add_mjss: 2.38,
  596. },
  597. yhMjxyData: {
  598. mjgx: 1.25,
  599. mjdx: 2.17
  600. }
  601. }
  602. };