called scrollMapToPosition in displayLocation function, allowing it to work properly