Added the first version of spatial grid visualisation code.