How can I create a 2D map?

How can I create a map similar to this? The map is divided into many small blocks, each of which can respond to mouse events individually. I need to be able to change the color of each block separately as needed."