Periods of continuous maps on some compact spaces