Save the state of the map during configuration change.