Permalink
Browse files

tweaking the heatmap

  • Loading branch information...
1 parent 3404ed1 commit e958e4dc3745207900266a03a418ec6ef4f5fc53 @staugaard committed Mar 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 public/js/canvas_overlay.js
@@ -113,11 +113,11 @@ function HeatMapOverlay(map, options) {
HeatMapOverlay.prototype = new CanvasOverlay();
HeatMapOverlay.prototype.drawDot = function(point) {
- var radius1 = 10;
+ var radius1 = 5;
var radius2 = 20;
var rgr = this.canvasContext.createRadialGradient(point.x, point.y, radius1, point.x, point.y, radius2);
// the center of the radial gradient has .1 alpha value
- rgr.addColorStop(0, 'rgba(0,0,0,0.4)');
+ rgr.addColorStop(0, 'rgba(0,0,0,0.3)');
// and it fades out to 0
rgr.addColorStop(0.9, 'rgba(0,0,0,0)');
// drawing the gradient

0 comments on commit e958e4d

Please sign in to comment.