Made map object available in scope and added a setZoom() method