This example shows how to read data from a TileUTFGrid layer.
Point to a country to see its name and flag.
Tiles made with TileMill. Hosting on MapBox.com or with open-source TileServer.
See the tileutfgrid.js source to see how this is done.