Mercurial > lbo > hg > geohub
changeset 77:6cae472afb75
Livemap: Add an explanation
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 05 Dec 2020 22:13:07 +0100 |
parents | b0a1fa90c77d |
children | 2e19b2cd2ccb |
files | assets/livemap.html |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/assets/livemap.html Sat Dec 05 12:49:00 2020 +0100 +++ b/assets/livemap.html Sat Dec 05 22:13:07 2020 +0100 @@ -70,7 +70,9 @@ const features = response['geo']['features']; const lastfeature = features[0]; console.log(`xhrcallback: ${features.length} elements received.`); - // Backfill old circles. + // Backfill old circles. This happens when called from a + // backfill() triggered request to `/last` or when a client sent + // several points at once. if (features.length > 0) { for (i = 1; i < features.length; i++) { var coords = features[i]['geometry']['coordinates'];