Pulled map zooming out into a library function
Fixes #201