Correct map_viewer code. Add resources.