Refactor submap::trp to use public getters and setters instead.