Added the getMapDimensions() function.