Before the two powers clashed in World War II, a strategic alliance allowed Tokyo’s military to map British India.