diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-03-28 23:54:51 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-03-28 23:54:51 +0000 |
| commit | 834843e6179c94e25157f50d94c3ed3b41802b0b (patch) | |
| tree | 93d6dbff0cd914fc157077aebefa339cbd59f748 /web/public/javascripts/map.js | |
| parent | 54b1457a6e641650263b04db15d6d1341a7a1a37 (diff) | |
bug with liveupdates adding duplicate pointsfeat/34
Diffstat (limited to 'web/public/javascripts/map.js')
| -rw-r--r-- | web/public/javascripts/map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js index 17b9208..5b75bc3 100644 --- a/web/public/javascripts/map.js +++ b/web/public/javascripts/map.js @@ -178,7 +178,7 @@ if (window.EventSource) { var data = JSON.parse(e.data); if (data.coordinates) { points.push(data); - plotPointsOnMap(points); + plotPointsOnMap(data); } }, false) |
