Move map loading to Document class.