Pingyao still retains its city layout from the Ming and Qing dynasties, conforming to a typical Ba gua pattern.