Refactor zoomMap method