@classmethod
def get_robot_mapfile(cls, site, mapfile):
    """ Download robot mapfile.

        :params site: Map info for site
        :params mapfile: select type in ('mapconfig', 'mapimage', 'dockconfig')
        :returns: Image content or json loaded structure
        """
    assert mapfile in ('map/config', 'map/image', 'dock/config')
    raw = mapfile in ('map/image',)
    api = cls(None, None)
    url = 'robots/%s/%s' % (site, mapfile)
    return api.method(url, raw=raw)
