Moved the map initialisation to the controller, the heat map now has access to the sorted data