config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. export default {
  2. // 全局样式
  3. gStyle: {
  4. // 通用样式
  5. common: {
  6. stroke: true, // 是否描边
  7. color: 'white', // 描边颜色
  8. },
  9. // 玩家定位标记点
  10. marker: {
  11. default: {
  12. radius: 8, // 圆的半径 px
  13. // stroke: true, // 是否描边
  14. // color: 'white', // 描边颜色
  15. weight: 1.6, // 描边宽度 px
  16. opacity: 1.0, // 描边不透明度
  17. fill: true, // 是否填充
  18. fillColor: 'blue', // 填充颜色
  19. fillOpacity: 1.0, // 填充不透明度
  20. pane: 'markerPane'
  21. },
  22. focus: {
  23. radius: 8,
  24. // stroke: true, // 是否描边
  25. // color: 'white', // 描边颜色
  26. weight: 1.6, // 描边宽度 px
  27. opacity: 1.0, // 描边不透明度
  28. fill: true, // 是否填充
  29. fillColor: 'red', // 填充颜色
  30. fillOpacity: 1.0, // 填充不透明度
  31. pane: 'markerPane'
  32. },
  33. tooltip: {
  34. permanent: true,
  35. offset: [0, -10],
  36. direction: 'top',
  37. interactive: true
  38. }
  39. },
  40. // 玩家运动轨迹
  41. trail: {
  42. default: {
  43. smoothFactor: 0.5, // 值越大线条越平滑,值越小线条越精确
  44. stroke: true, // 是否描边
  45. color: 'blue', // 描边颜色
  46. // weight: 8, // 描边宽度 px
  47. opacity: 1.0, // 描边不透明度
  48. fill: false, // 是否填充
  49. // fillColor: 'blue', // 填充颜色
  50. // fillOpacity: 1.0, // 填充不透明度
  51. pane: 'markerPane'
  52. },
  53. focus: {
  54. smoothFactor: 0.5, // 值越大线条越平滑,值越小线条越精确
  55. stroke: true, // 是否描边
  56. color: 'red', // 描边颜色
  57. // weight: 8, // 描边宽度 px
  58. opacity: 1.0, // 描边不透明度
  59. fill: false, // 是否填充
  60. // fillColor: 'red', // 填充颜色
  61. // fillOpacity: 1.0, // 填充不透明度
  62. pane: 'markerPane'
  63. }
  64. },
  65. // 检查点
  66. checkPoint: {
  67. default: {
  68. radius: 15,
  69. color: '#ff00ff',
  70. weight: 2,
  71. fill: false,
  72. interactive: true
  73. },
  74. focus: {
  75. radius: 15,
  76. color: '#ff00ff',
  77. weight: 2,
  78. fill: false,
  79. interactive: true
  80. },
  81. tooltip: {
  82. permanent: true,
  83. offset: [0, -15],
  84. direction: 'top',
  85. interactive: true
  86. }
  87. },
  88. // 检查点组成的路径
  89. checkPointPath: {
  90. default: {
  91. dashArray: '8 12',
  92. // dashOffset: '1',
  93. stroke: true, // 是否描边
  94. color: '#ff00ff', // 描边颜色
  95. weight: 3, // 描边宽度 px
  96. opacity: 0.6, // 描边不透明度
  97. fill: false, // 是否填充
  98. interactive: true
  99. },
  100. focus: {
  101. stroke: true, // 是否描边
  102. color: '#ff00ff', // 描边颜色
  103. weight: 3, // 描边宽度 px
  104. opacity: 1.0, // 描边不透明度
  105. fill: false, // 是否填充
  106. interactive: true
  107. }
  108. },
  109. },
  110. playerColorList: [
  111. "#D112B7", "#5312D1", "#1272D1", "#21AEAE", "#612D61",
  112. "#F6DE00", "#FF7904", "#FF8E97", "#003C71", "#850000"
  113. ]
  114. }