added getCenter function that respects UI visibility
moved centering that respects UI visibility to OSRM.MapView