Completed the implementation of the map viewer.