Officials are trying to deal with an influx of out-of-state investors and reverse decades-long population declines.