add map printing support for R17+

Addresses issue #212 (add map support)