config.js 3.3 KB

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