Newer
Older
DH_Apicture / public / static / libs / mapbox / style / budian.json
@zhangqy zhangqy on 29 Nov 10 KB first commit
  1. {
  2. "params": {
  3. "basemap": "https://supermap2.wh-nf.cn:8090/bm",
  4. "mvt": "https://supermap0.wh-nf.cn:8090/vt/mvt",
  5. "geojson": "https://supermap0.wh-nf.cn:8090/vt/v1/geojson",
  6. "sprites": [
  7. "/static/libs/mapbox/style/sprite/sprite",
  8. "/static/libs/mapbox/style/sprite/sprite1"
  9. ],
  10. "init": {
  11. "center": [
  12. 114.45370037156442, 30.525710664701975
  13. ],
  14. "zoom": 11.27664,
  15. "pitch": 0,
  16. "style":"",
  17. "localStyle": "/static/libs/mapbox/mapbox-street-style.json"
  18. },
  19. "l7": {
  20. "images": [
  21. {
  22. "name": "map_selected",
  23. "url": "/static/libs/mapbox/images/选中.png"
  24. }
  25. ]
  26. }
  27. },
  28. "ogc": [
  29. {
  30. "id": "newfiber-XYZLayer",
  31. "type": "XYZLayer",
  32. "params": {
  33. "id": "newfiber-XYZLayer",
  34. "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa",
  35. "subdomains": [
  36. "0",
  37. "1",
  38. "2",
  39. "3",
  40. "4",
  41. "5",
  42. "6",
  43. "7"
  44. ],
  45. "minZoom": 1,
  46. "maxZoom": 17,
  47. "tileType": ""
  48. },
  49. "methods": [
  50. {
  51. "name": "addTo",
  52. "params": [
  53. "''||map"
  54. ]
  55. },
  56. {
  57. "name": "hide",
  58. "params": []
  59. }
  60. ]
  61. }
  62. ],
  63. "l7": [],
  64. "mapbox": [
  65. {
  66. "id": "all_boundary",
  67. "key": "all_boundary",
  68. "source-layer": "all_boundary",
  69. "type": "line",
  70. "paint": {
  71. "line-color": "rgba(255,18,60,1)",
  72. "line-width": 1
  73. },
  74. "layout": {},
  75. "minzoom": 0,
  76. "maxzoom": 24,
  77. "mType": "mvt"
  78. },
  79. {
  80. "id": "hb_wh_dhgx_merge",
  81. "key": "hb_wh_dhgx_merge_thematic",
  82. "type": "fill",
  83. "filter": [
  84. "all",
  85. ["<=", ["zoom"], ["-", ["get", "max_z"], 0]],
  86. [">=", ["zoom"], ["-", ["get", "min_z"], 0]],
  87. ["in", ["get", "geometry_type"], ["literal", ["3"]]]
  88. ],
  89. "paint": {
  90. "fill-color": [
  91. "get",
  92. "color"
  93. ],
  94. "fill-opacity": 0.5
  95. },
  96. "layout": {},
  97. "minzoom": 7,
  98. "maxzoom": 24,
  99. "mType": "geojsonMvt",
  100. "columns": "c_layer,min_z,max_z,layer,geometry_type,name,color,b_color,st_asText(geometrys) as geometry"
  101. },
  102. {
  103. "id": "hb_wh_dhgx_merge_border",
  104. "key": "hb_wh_dhgx_merge_thematic",
  105. "type": "line",
  106. "filter": [
  107. "all",
  108. ["<=", ["zoom"], ["-", ["get", "max_z"], 0]],
  109. [">=", ["zoom"], ["-", ["get", "min_z"], 0]],
  110. ["in", ["get", "geometry_type"],["literal", ["2"]]]
  111. ],
  112. "paint": {
  113. "line-color": [
  114. "get",
  115. "color"
  116. ],
  117. "line-width": [
  118. "interpolate",["linear"],["zoom"],
  119. 1,1,
  120. 8,2,
  121. 13,5
  122. ],
  123. "line-dasharray": [
  124. "match",
  125. ["get", "c_layer"],
  126. "轮廓", [2, 2],
  127. "尾水路径_路线1", [2, 2],
  128. [1]
  129. ]
  130. },
  131. "layout": {
  132. "line-join": [
  133. "match",
  134. ["get", "c_layer"],
  135. "轮廓", "round",
  136. "尾水路径_路线1", "round",
  137. "butt"
  138. ]
  139. },
  140. "minzoom": 7,
  141. "maxzoom": 24,
  142. "mType": "geojsonMvt",
  143. "columns": "c_layer,min_z,max_z,layer,geometry_type,name,color,b_color,st_asText(geometrys) as geometry"
  144. },
  145. {
  146. "id": "hb_wh_dhgx_merge_text",
  147. "key": "hb_wh_dhgx_merge_thematic",
  148. "type": "symbol",
  149. "filter": [
  150. "all",
  151. ["<=", ["zoom"], ["-", ["get", "max_z"], 0]],
  152. [">=", ["zoom"], ["-", ["get", "min_z"], 0]]
  153. ],
  154. "minzoom": 0,
  155. "maxzoom": 24,
  156. "paint": {
  157. "text-color": [
  158. "get",
  159. "b_color"
  160. ],
  161. "text-halo-color": "rgba(0,0,0,1)",
  162. "text-halo-width": 1,
  163. "text-halo-blur": 1
  164. },
  165. "layout": {
  166. "icon-image": [
  167. "match",
  168. ["get", "c_layer"],
  169. "泵站","泵站",
  170. "汤逊湖雨水布点","lan_五角星",
  171. "东湖雨水布点","lan_五角星",
  172. "南湖小流域出口布点","lan_五角星",
  173. "南湖小流域初雨截留点","cheng_五角星",
  174. "南湖小流域加密布点","hong_五角星",
  175. "洪山交界点","正三角形",
  176. "支管接入干管处t","倒三角",
  177. "泵前","半圆",
  178. "主干管","园",
  179. "transparent"
  180. ],
  181. "icon-allow-overlap": true,
  182. "icon-anchor": "center",
  183. "icon-size": 0.2,
  184. "text-allow-overlap": false,
  185. "text-field": "{name}",
  186. "text-font": [
  187. "KlokanTech Noto Sans Regular"
  188. ],
  189. "text-size": 16,
  190. "text-justify": "left",
  191. "text-anchor": "center",
  192. "text-line-height": 1.2,
  193. "text-max-width": 50,
  194. "text-offset": [0, 1.2],
  195. "text-optional": true
  196. },
  197. "mType": "geojsonMvt",
  198. "columns": "c_layer,min_z,max_z,layer,geometry_type,name,color,b_color,st_asText(geometrys_center) as geometry",
  199. "geom_column": "geometrys_center"
  200. },
  201. {
  202. "id": "point",
  203. "key": "point",
  204. "type": "symbol",
  205. "minzoom": 0,
  206. "maxzoom": 24,
  207. "filter": [
  208. "in",
  209. "type",
  210. "",
  211. "1_泵站",
  212. "1_污水处理厂"
  213. ],
  214. "paint": {
  215. "text-color": "#ffffff",
  216. "text-halo-blur": 1.5,
  217. "text-halo-color": "rgba(0,0,0,1)",
  218. "text-halo-width": 1.5,
  219. "text-opacity": ["step", ["zoom"], 0, 14, 1]
  220. },
  221. "layout": {
  222. "icon-image": [
  223. "match",
  224. [
  225. "get",
  226. "type"
  227. ],
  228. "rain","雨量站扎点@2x",
  229. "port_channel_info","港渠扎点@2x",
  230. "rainwater_pipeline_water_level","雨水管网液位扎点@2x",
  231. "water_region_info","分区信息扎点@2x",
  232. "waterlogging","渍水监测点扎点@2x",
  233. "waterlogging_point_info","渍水点扎点@2x",
  234. "sewage_pump_station_info","污水泵站扎点@2x",
  235. "sewage_factory_info","污水处理厂扎点@2x",
  236. "channel_water_level","港渠水位扎点@2x",
  237. "outlet_quality","排口水质扎点@2x",
  238. "channel_quality","港渠水质扎点@2x",
  239. "outlet_info","排口扎点@2x",
  240. "lake_info","湖泊扎点@2x",
  241. "diversion_well_info","分流井扎点@2x",
  242. "lake_water_level","湖泊水位扎点@2x",
  243. "water_gate_info","水闸扎点@2x",
  244. "storage_tank_info","调蓄池扎点@2x",
  245. "outlet_water_level","排口水质扎点@2x",
  246. "region_info","分区信息扎点@2x",
  247. "rain_water_pump_station_info","雨水泵站扎点@2x",
  248. "sewage_pipeline_quality","污水管网水质扎点@2x",
  249. "drainage_info","排水户扎点@2x",
  250. "rainwater_pipeline_quality","雨水管网水质扎点@2x",
  251. "reservoir_info","水库扎点@2x",
  252. "reservoir_water_level","水库水位@2x",
  253. "1_泵站", "污水泵站扎点@2x",
  254. "1_污水处理厂", "污水处理厂扎点@2x",
  255. "0"
  256. ],
  257. "icon-allow-overlap": true,
  258. "icon-anchor": "center",
  259. "icon-offset": [
  260. "match",
  261. ["get", "type"],
  262. "问题管线", [50,50],
  263. [0,0]
  264. ],
  265. "icon-size": 1,
  266. "text-allow-overlap": true,
  267. "text-field": "{name}",
  268. "text-font": [
  269. "KlokanTech Noto Sans Regular"
  270. ],
  271. "text-size": 15,
  272. "text-justify": "left",
  273. "text-anchor": "center",
  274. "text-line-height": 1.3,
  275. "text-max-width": 50,
  276. "text-offset": [
  277. "match",
  278. ["get", "type"],
  279. "问题管线", [3,6],
  280. [0,3]
  281. ],
  282. "text-optional": true
  283. },
  284. "mType": "geojson"
  285. },
  286. {
  287. "id": "polygon",
  288. "key": "polygon",
  289. "filter": [
  290. "in",
  291. "type",
  292. ""
  293. ],
  294. "type": "fill-extrusion",
  295. "paint": {
  296. "fill-extrusion-color": [
  297. "get",
  298. "color"
  299. ]
  300. },
  301. "layout": {},
  302. "minzoom": 0,
  303. "maxzoom": 24,
  304. "mType": "geojson"
  305. },
  306. {
  307. "id": "linestring",
  308. "key": "linestring",
  309. "type": "line",
  310. "filter": [
  311. "in",
  312. "type",
  313. ""
  314. ],
  315. "paint": {
  316. "line-opacity": [
  317. "interpolate",
  318. [
  319. "linear"
  320. ],
  321. [
  322. "zoom"
  323. ],
  324. 15,
  325. 1,
  326. 18.05,
  327. 0
  328. ],
  329. "line-color": [
  330. "get",
  331. "color"
  332. ],
  333. "line-width": 4
  334. },
  335. "layout": {},
  336. "minzoom": 0,
  337. "maxzoom": 24,
  338. "mType": "geojson"
  339. },
  340. {
  341. "id": "pipeline_info",
  342. "key": "hb_wh_dhgx_pipe_line",
  343. "source-layer": "hb_wh_dhgx_pipe_line",
  344. "type": "line",
  345. "paint": {
  346. "line-color": [
  347. "match",
  348. ["get", "管段类型"],
  349. "雨水", "#184375",
  350. "污水", "#E6061A",
  351. "合流", "#ccff12",
  352. "#000000"
  353. ],
  354. "line-width": [
  355. "match",
  356. ["get", "级别"],
  357. 1, 5,
  358. 2, 2,
  359. 2
  360. ]
  361. },
  362. "layout": {},
  363. "minzoom": 0,
  364. "maxzoom": 24,
  365. "mType": "mvt",
  366. "columns": "*,concat(trim(流域),trim(管段类型)) as f_type,st_asText(geometrys) as geometry"
  367. },
  368. {
  369. "id": "pipeline_point",
  370. "key": "hb_wh_dhgx_pipe_point",
  371. "source-layer": "hb_wh_dhgx_pipe_point",
  372. "type": "symbol",
  373. "paint": {"text-color": "#333"},
  374. "layout": {
  375. "icon-image": [
  376. "match",
  377. ["concat", ["get", "类型"], ["get", "附属物"]],
  378. "雨水进水口", "ys_排水口",
  379. "雨水检修井", "ysj",
  380. "雨水污水篦", "雨水箅",
  381. "雨水窨井", "ysj",
  382. "雨水出水口", "ys_排水口",
  383. "雨水雨水箅", "雨水箅",
  384.  
  385. "污水进水口", "ws_排水口",
  386. "污水检修井", "wsj",
  387. "污水污水篦", "污水箅",
  388. "污水窨井", "wsj",
  389. "污水出水口", "ws_排水口",
  390. "污水雨水箅", "污水箅",
  391. "预留口"
  392. ],
  393. "icon-size": 1,
  394. "text-field": "{设施编号}",
  395. "text-font": [
  396. "KlokanTech Noto Sans Regular"
  397. ],
  398. "text-size": 13,
  399. "text-line-height": 3,
  400. "text-anchor": "top"
  401. },
  402. "minzoom": 14,
  403. "maxzoom": 24,
  404. "mType": "mvt",
  405. "columns": "*,concat(trim(流域),trim(类型)) as f_type,st_asText(geometrys) as geometry"
  406. }
  407. ],
  408. "orders": [
  409. ["all_boundary"],
  410. ["hb_wh_dhgx_merge_border"],
  411. ["hb_wh_dhgx_merge_text"],
  412. ["poi_label"],
  413. ["place_label_city"],
  414. ["road_major_label"],
  415. ["place_label_other"],
  416. ["point"]
  417. ],
  418. "filter": {
  419.  
  420. }
  421. }