Skip to content

Commit

Permalink
fix stats
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocudini committed Jan 6, 2020
1 parent a4a6da9 commit 3cd2527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/stats/client/Map_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ Tracker.autorun(function(comp) {
K.Map.layers.stats = L.geoJSON([], {
pointToLayer: function(point, loc) {
var r = point.properties.rank;
var radius = Math.min(r, 15);
radius = Math.max(r, 5);
r = Math.min(r, 15);
r = Math.max(r, 5);
return L.circleMarker(loc, {
radius: radius
radius: r
}).on('click', function(e) {
L.DomEvent.stopPropagation(e);
K.Map.map.removeLayer(K.Map.layers.stats);
Expand Down

0 comments on commit 3cd2527

Please sign in to comment.