Created MapElement class to extract certain common attributes and behaviors from CandidateRegion, Region, Connection, and Decoration.