 Suggested solution: when the map is rotated, add a listener for transitions to finish and resize the map.