Browse Source

船速样式

CzRger 2 months ago
parent
commit
5991cb5541
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/stores/ship-map/map-style.ts

+ 4 - 4
src/stores/ship-map/map-style.ts

@@ -57,13 +57,13 @@ const ShipNormalStyle = ({course = 0, speed = 0, head = null, color = '#01f200',
     let lineRadius = 0
     if (speed > 0) {
         if (speed <= 5) {
-            lineRadius = 2
+            lineRadius = 2 + speed * 4
         } else if (speed <= 10) {
-            lineRadius = 6
+            lineRadius = 10 + speed * 2
         } else if (speed <= 20) {
-            lineRadius = 18
+            lineRadius = 20 + speed * 2
         } else if (speed > 20) {
-            lineRadius = 30
+            lineRadius = 30 + speed * 2
         }
     }
     // 船速