From b3c49d01a0117649ac86fd0c5ac998282c6cc355 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 19 Apr 2015 13:05:23 +0200 Subject: [PATCH] map: fix drawing of clients --- lib/map/clientlayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/map/clientlayer.js b/lib/map/clientlayer.js index a22d30e..7dd5b57 100644 --- a/lib/map/clientlayer.js +++ b/lib/map/clientlayer.js @@ -30,9 +30,9 @@ define(["leaflet"], var ctx = canvas.getContext("2d") - var distance = 12 var radius = 3 var a = 1.2 + var startDistance = 12 var startAngle = Math.PI ctx.beginPath() @@ -46,6 +46,7 @@ define(["leaflet"], p.x -= s.x p.y -= s.y + var distance = startDistance var angle = startAngle for (var i = 0; i < clients; i++) {