config.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. export default {
  2. mapDefaultOptions: {
  3. crs: L.CRS.EPSG3857, // 坐标参考系统
  4. center: null, // 地图的初始地理中心坐标
  5. zoom: 16, // 初始地图缩放级别
  6. minZoom: 14,
  7. maxZoom: 20,
  8. zoomControl: true,
  9. // zoomSnap: 0.5,
  10. // zoomDelta: 0.5,
  11. trackResize: false, // 地图是否自动处理浏览器窗口大小调整以自行更新
  12. maxBounds: null,
  13. // maxBounds: [
  14. // [36.659365, 117.105246],
  15. // [36.653753, 117.122841]
  16. // ],
  17. updateWhenIdle: false,
  18. updateInterval: 10,
  19. keepBuffer: 20,
  20. attributionControl: false
  21. },
  22. // 全局样式
  23. gStyle: {
  24. // 通用样式
  25. common: {
  26. stroke: true, // 是否描边
  27. color: 'white', // 描边颜色
  28. },
  29. // 玩家定位标记点
  30. marker: {
  31. default: {
  32. radius: 8, // 圆的半径 px
  33. // stroke: true, // 是否描边
  34. // color: 'white', // 描边颜色
  35. weight: 1.6, // 描边宽度 px
  36. opacity: 1.0, // 描边不透明度
  37. fill: true, // 是否填充
  38. fillColor: 'blue', // 填充颜色
  39. fillOpacity: 1.0, // 填充不透明度
  40. pane: 'markerPane'
  41. },
  42. focus: {
  43. radius: 8,
  44. // stroke: true, // 是否描边
  45. // color: 'white', // 描边颜色
  46. weight: 1.6, // 描边宽度 px
  47. opacity: 1.0, // 描边不透明度
  48. fill: true, // 是否填充
  49. fillColor: 'red', // 填充颜色
  50. fillOpacity: 1.0, // 填充不透明度
  51. pane: 'markerPane'
  52. },
  53. tooltip: {
  54. permanent: true,
  55. offset: [0, -10],
  56. direction: 'top',
  57. interactive: true
  58. }
  59. },
  60. // 玩家运动轨迹
  61. trail: {
  62. default: {
  63. smoothFactor: 0.5, // 值越大线条越平滑,值越小线条越精确
  64. stroke: true, // 是否描边
  65. color: 'blue', // 描边颜色
  66. // weight: 8, // 描边宽度 px
  67. opacity: 1.0, // 描边不透明度
  68. fill: false, // 是否填充
  69. // fillColor: 'blue', // 填充颜色
  70. // fillOpacity: 1.0, // 填充不透明度
  71. pane: 'markerPane'
  72. },
  73. focus: {
  74. smoothFactor: 0.5, // 值越大线条越平滑,值越小线条越精确
  75. stroke: true, // 是否描边
  76. color: 'red', // 描边颜色
  77. // weight: 8, // 描边宽度 px
  78. opacity: 1.0, // 描边不透明度
  79. fill: false, // 是否填充
  80. // fillColor: 'red', // 填充颜色
  81. // fillOpacity: 1.0, // 填充不透明度
  82. pane: 'markerPane'
  83. }
  84. },
  85. // 检查点
  86. checkPoint: {
  87. default: {
  88. radius: 15,
  89. color: '#ac33c1',
  90. weight: 2,
  91. fill: false,
  92. interactive: true
  93. },
  94. focus: {
  95. radius: 13,
  96. color: '#ac33c1',
  97. weight: 2,
  98. fill: false,
  99. interactive: true
  100. },
  101. tooltip: {
  102. permanent: true,
  103. offset: [0, -15],
  104. direction: 'top',
  105. interactive: true
  106. }
  107. },
  108. // 检查点组成的路径
  109. checkPointPath: {
  110. default: {
  111. // dashArray: '8 12',
  112. // dashOffset: '1',
  113. stroke: true, // 是否描边
  114. color: '#ac33c1', // 描边颜色
  115. weight: 2, // 描边宽度 px
  116. opacity: 1.0, // 描边不透明度
  117. fill: false, // 是否填充
  118. interactive: true
  119. },
  120. focus: {
  121. stroke: true, // 是否描边
  122. color: '#ac33c1', // 描边颜色
  123. weight: 2, // 描边宽度 px
  124. opacity: 1.0, // 描边不透明度
  125. fill: false, // 是否填充
  126. interactive: true
  127. }
  128. },
  129. },
  130. playerColorList: [
  131. "#D112B7", "#5312D1", "#1272D1", "#21AEAE", "#612D61",
  132. "#F6DE00", "#FF7904", "#FF8E97", "#003C71", "#850000"
  133. ],
  134. trailTime: 90000, // 轨迹持续时间 毫秒
  135. }