Cartographer.js

Map of 10,000 random Twitter users

This data was collected from Twittervision via Tweemap (two Twitter mapping projects). The 10,000 data points shown here are a sample of all Twitter users that give their locations. The data is likely skewed to overrepresent English-speaking regions, since Tweemap was released in English. This map illustrates the efficiencty of Cartographer's cluster function—try doing this with standard push-pins!

Click here to see the data used to generate this map.

var cartographer; 

function load() {
  if( GBrowserIsCompatible() ) {
    var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(18, 0), 2);
    map.setMapType(G_PHYSICAL_MAP);
    cartographer = Cartographer( map, { colorize:"#fff" } );
    cartographer.cluster( twitter_users, { 
      gridSize:30.0, 
      color:"#f0f", 
      colorHover:"#ff0",
      stroke:"#fff" 
    });
  }
}