Heat Map API

Jeffrey Barke has written up a tutorial detailing how to create a density map with Prototype, the Google Maps API and the HeatMapAPI.

The heat map API looks cool indeed, and that piece of code looks simple:

JAVASCRIPT:

  1.  
  2. addHeatMap: function() {
  3. var heatMap = new GEOHeatmap();
  4. heatMap.Init(this.width, this.height);
  5. heatMap.SetData(this.data);
  6. var preUrl = heatMap.GetURL();
  7. var heatmapOverlay = new HMGoogleOverlay(preUrl);
  8. this.map.addOverlay(heatmapOverlay);
  9. }
  10.  

Source: Ajaxian » Front Page
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/337975278/a-tutorial-on-prototype-google-maps-api-and-the-heatmapapi

Comments are closed.



Site Navigation