def METHOD_NAME(self, name, ltype="auto"):
    """Add selected map to the layer tree
    :param name: name of raster/vector map to be added
    :param type: map type ('raster', 'vector', 'auto' for autodetection)
    """
    fname = None
    if ltype == "raster" or ltype != "vector":
        # check for raster
        fname = grass.find_file(name, element="cell")["fullname"]
        if fname:
            ltype = "raster"
            lcmd = "d.rast"
    if not fname and (ltype == "vector" or ltype != "raster"):
        # if not found check for vector
        fname = grass.find_file(name, element="vector")["fullname"]
        if fname:
            ltype = "vector"
            lcmd = "d.vect"
    if not fname:
        return _("Raster or vector map <%s> not found") % (name)
    self.giface.GetLayerTree().METHOD_NAME(
        ltype=ltype, lname=fname, lchecked=True, lcmd=[lcmd, "map=%s" % fname]
    )
    if ltype == "raster":
        return _("Raster map <%s> added") % fname
    return _("Vector map <%s> added") % fname