part of initial commit
Fixes map positioning when zooming, so that map stays centered if possible