config.js 2.5 KB

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