Newer
Older
urbanLifeline_YanAn / public / static / libs / mapbox / style / planningcontrolCX.json
@zhangqy zhangqy on 3 Oct 4 KB first commit
  1. {
  2. "params": {
  3. "basemap": "https://supermap2.wh-nf.cn:8090/bm",
  4. "mvt": "https://supermap0.wh-nf.cn:8090/vt",
  5. "sprites": [
  6. "/static/libs/mapbox/style/sprite/sprite4"
  7. ],
  8. "init": {
  9. "center": [
  10. 114.312,
  11. 34.802
  12. ],
  13. "zoom": 12.15,
  14. "style": "/static/libs/mapbox/style/customs/night-style.json"
  15. },
  16. "l7": {
  17. "images": [
  18. {
  19. "name": "02",
  20. "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg"
  21. }
  22. ]
  23. }
  24. },
  25. "orders": [
  26. [
  27. "poi_label"
  28. ],
  29. [
  30. "place_label_city"
  31. ],
  32. [
  33. "road_major_label"
  34. ],
  35. [
  36. "place_label_other"
  37. ],
  38. [
  39. "point"
  40. ]
  41. ],
  42. "filter": {
  43. "wsLine1": {
  44. "layerName": [
  45. "pipeline_info",
  46. "pipeline_point"
  47. ],
  48. "filter": [
  49. [
  50. "WS",
  51. "HS"
  52. ],
  53. [
  54. "污水点",
  55. "合流点"
  56. ]
  57. ]
  58. },
  59. "ysLine1": {
  60. "layerName": [
  61. "pipeline_info",
  62. "pipeline_point"
  63. ],
  64. "filter": [
  65. [
  66. "YS"
  67. ],
  68. [
  69. "雨水点"
  70. ]
  71. ]
  72. },
  73. "oldCity": {
  74. "layerName": [
  75. "city_boundary"
  76. ],
  77. "filter": [
  78. [
  79. "老城区"
  80. ]
  81. ],
  82. "easeTo": {
  83. "center": [
  84. 113.933,
  85. 30.926
  86. ],
  87. "zoom": 13.6,
  88. "pitch": 55
  89. }
  90. },
  91. "southCity": {
  92. "layerName": [
  93. "city_boundary"
  94. ],
  95. "filter": [
  96. [
  97. "南城新区"
  98. ]
  99. ],
  100. "easeTo": {
  101. "center": [
  102. 113.933,
  103. 30.886
  104. ],
  105. "zoom": 13.6,
  106. "pitch": 55
  107. }
  108. },
  109. "newCity": {
  110. "layerName": [
  111. "city_boundary"
  112. ],
  113. "filter": [
  114. [
  115. "东城新区"
  116. ]
  117. ],
  118. "easeTo": {
  119. "center": [
  120. 113.983,
  121. 30.896
  122. ],
  123. "zoom": 13.6,
  124. "pitch": 55
  125. }
  126. },
  127. "allCity": {
  128. "layerName": [
  129. "city_boundary"
  130. ],
  131. "filter": [
  132. [
  133. "东城新区",
  134. "南城新区",
  135. "老城区"
  136. ]
  137. ],
  138. "easeTo": {
  139. "center": [
  140. 113.953,
  141. 30.906
  142. ],
  143. "zoom": 13.6,
  144. "pitch": 55
  145. }
  146. }
  147. },
  148. "mapbox": [
  149. {
  150. "id": "all_boundary",
  151. "key": "all_boundary",
  152. "source-layer": "all_boundary",
  153. "type": "line",
  154. "paint": {
  155. "line-color": "rgba(255,18,60,1)",
  156. "line-width": 1
  157. },
  158. "layout": {},
  159. "minzoom": 0,
  160. "maxzoom": 24,
  161. "mType": "mvt"
  162. },
  163. {
  164. "id": "hubei_xiaogan_hm_psfq_text",
  165. "key": "hubei_xiaogan_hm_psfq",
  166. "source-layer": "hubei_xiaogan_hm_psfq",
  167. "filter": [
  168. "in",
  169. "type",
  170. "YS"
  171. ],
  172. "type": "symbol",
  173. "paint": {
  174. "text-color": "#ffffff",
  175. "text-halo-color": "rgba(0,0,0,0)",
  176. "text-halo-width": 1,
  177. "text-halo-blur": 1
  178. },
  179. "layout": {
  180. "text-field": "{name}",
  181. "text-font": [
  182. "KlokanTech Noto Sans Regular"
  183. ],
  184. "text-size": 18,
  185. "text-line-height": 1.5,
  186. "text-anchor": "top",
  187. "text-max-width": 50,
  188. "text-radial-offset": 2
  189. },
  190. "minzoom": 14,
  191. "maxzoom": 24,
  192. "mType": "mvt_center",
  193. "columns": "type,name"
  194. },
  195. {
  196. "id": "point",
  197. "key": "point",
  198. "type": "symbol",
  199. "filter": [
  200. "in",
  201. "type",
  202. ""
  203. ],
  204. "paint": {
  205. "text-color": "#ffffff",
  206. "text-halo-color": "rgba(0,0,0,1)",
  207. "text-halo-width": 1,
  208. "text-halo-blur": 1
  209. },
  210. "layout": {
  211. "icon-image": [
  212. "match",
  213. [
  214. "get",
  215. "type"
  216. ],
  217. "success_zishui",
  218. "ysj",
  219. "error_zishui",
  220. "error_zishui",
  221. "wsj"
  222. ],
  223. "icon-allow-overlap": true,
  224. "text-allow-overlap": true,
  225. "icon-size": 0.7,
  226. "text-field": "{name}",
  227. "text-font": [
  228. "KlokanTech Noto Sans Regular"
  229. ],
  230. "text-size": 13,
  231. "text-line-height": 1.5,
  232. "text-anchor": "top",
  233. "text-max-width": 50,
  234. "text-justify": "center",
  235. "text-radial-offset": 2
  236. },
  237. "minzoom": 5,
  238. "maxzoom": 24,
  239. "mType": "geojson"
  240. }
  241. ]
  242. }