Did Spain own panama?

that is why they speak spansih and why they have a city after the conquestador balboa