@@ -19,7 +19,7 @@ window.map_marker = (map, options = {}) -> |
||
19 | 19 |
|
20 | 20 |
if options.course |
21 | 21 |
p1 = new LatLon(pos.lat(), pos.lng()) |
22 |
- speed = if options.speed? then options.speed else 1 |
|
22 |
+ speed = options.speed ? 1 |
|
23 | 23 |
p2 = p1.destinationPoint(options.course, Math.max(0.2, speed) * 0.1) |
24 | 24 |
|
25 | 25 |
lineCoordinates = [ |