It examines their romance and 5-year marriage during the Spanish Civil War and in Shanghai, Havana and Key West. None of the film is set in San Francisco, but the director says the city’s historic buildings and topography make it ideal to shoot some of the scenes.

City officials say HBO plans to hire about 230-local employees and is expected to spend more than $10 million locally.