title: Heatmap - Generating Simple 'HeatPoint' Google Maps Android
body: <p>Android SDK 2.3.3
  Google Maps V2</p>
  
  <p>Currently I'm drawing circles overlays and adding them to a MapView. The size is dictated by a certain value and I'm looking to determine the RadialGradient color of the circle by something else.</p>
  
  <pre><code>            circle.setShader(new RadialGradient(pt.x, pt.y, 40, Color.argb(150, 252, 5, 5), Color.argb(60, 234, 231, 0), TileMode.MIRROR));
              canvas.drawCircle(pt.x, pt.y, radius, circle);
  </code></pre>
  
  <p>It works, however I'd prefer the edges to look more similar to the classic heatpoint map.</p>
  
  <p>Current</p>
  
  <p><img src="https://i.stack.imgur.com/iiBKd.png" alt="current heat map"></p>
  
  <p>What I'd like to achieve (I'd still like the shape to be circular)</p>
  
  <p><img src="https://i.stack.imgur.com/olYVj.jpg" alt="desired heat map"></p>
  
  <p>I'm thinking of possibly drawing a circle directly underneath the current with a sightly bigger area in order to achieve a more typical heatmap look, however this has performance implications considering I'm doing this on a mobile device which has to re-render per zoom in or out action.</p>