Move map centring into separate function
Merge pull request #1 from rjralgar/patch-1

Move map centring into separate function