The €3 million one is a new "temporary" tax since this year from the central goverment. "Impuesto al patrimonio" has existed for long and it depends on where in Spain you live. It's not applied in the region of Madrid, and the it kicks from a net worth of €400k in Aragón. In all regions your main residence is exempted.
For a net worth of €4m, you'll pay €60k in Aragón to €22k in Vizcaya to €0 in Madrid.