Moved ViewMap into layer.py and removed viewmap.py