Newer
Older
KaiFengPC / public / static / libs / mapbox / style / preventionSFQ.json
@zhangdeliang zhangdeliang on 21 Oct 2 KB update
  1. {
  2. "params": {
  3. "basemap": "https://supermap2.wh-nf.cn:8090/bm",
  4. "mvt": "https://supermap0.wh-nf.cn:8090/vt",
  5. "sprites": ["/static/libs/mapbox/style/sprite/sprite4"],
  6. "init": {
  7. "center": [114.362, 34.802],
  8. "zoom": 11.5,
  9. "style": "/static/libs/mapbox/style/customs/night-style.json"
  10. },
  11. "l7": {
  12. "images": [
  13. {
  14. "name": "02",
  15. "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg"
  16. }
  17. ]
  18. }
  19. },
  20. "orders": [["poi_label"], ["place_label_city"], ["road_major_label"], ["place_label_other"], ["point"]],
  21. "filter": {
  22. "wsLine1": {
  23. "layerName": ["pipeline_info", "pipeline_point"],
  24. "filter": [
  25. ["WS", "HS"],
  26. ["污水点", "合流点"]
  27. ]
  28. },
  29. "ysLine1": {
  30. "layerName": ["pipeline_info", "pipeline_point"],
  31. "filter": [["YS"], ["雨水点"]]
  32. },
  33. "oldCity": {
  34. "layerName": ["city_boundary"],
  35. "filter": [["老城区"]],
  36. "easeTo": {
  37. "center": [113.933, 30.926],
  38. "zoom": 13.6,
  39. "pitch": 55
  40. }
  41. },
  42. "southCity": {
  43. "layerName": ["city_boundary"],
  44. "filter": [["南城新区"]],
  45. "easeTo": {
  46. "center": [113.933, 30.886],
  47. "zoom": 13.6,
  48. "pitch": 55
  49. }
  50. },
  51. "newCity": {
  52. "layerName": ["city_boundary"],
  53. "filter": [["东城新区"]],
  54. "easeTo": {
  55. "center": [113.983, 30.896],
  56. "zoom": 13.6,
  57. "pitch": 55
  58. }
  59. },
  60. "allCity": {
  61. "layerName": ["city_boundary"],
  62. "filter": [["东城新区", "南城新区", "老城区"]],
  63. "easeTo": {
  64. "center": [113.953, 30.906],
  65. "zoom": 13.6,
  66. "pitch": 55
  67. }
  68. }
  69. },
  70. "mapbox": [
  71. {
  72. "id": "point",
  73. "key": "point",
  74. "type": "symbol",
  75. "minzoom": 0,
  76. "maxzoom": 24,
  77. "filter": ["in", "type", ""],
  78. "paint": {
  79. "text-color": "#ffffff"
  80. },
  81. "layout": {
  82. "icon-image": ["match", ["get", "type"], "success_zishui", "ysj", "error_zishui", "wsj", "yuanTou"],
  83. "text-allow-overlap": false,
  84. "icon-allow-overlap": false,
  85. "icon-anchor": "center",
  86. "icon-size": 0.8,
  87. "text-field": "{name}",
  88. "text-font": ["KlokanTech Noto Sans Regular"],
  89. "text-size": 16,
  90. "text-line-height": 3,
  91. "text-anchor": "bottom",
  92. "text-max-width": 50,
  93. "text-offset": [0, -1]
  94. },
  95. "mType": "geojson"
  96. }
  97. ]
  98. }