map/tinymap: add editmap as friend class, make private getsubmap function
Re add mapgen stamp feature