code: function (elem) {
  
                  self.animate(elem.mapElem, {"opacity": 0}, animDuration, function () {
                      elem.mapElem.remove();
                  });
  
                  self.animate(elem.textElem, {"opacity": 0}, animDuration, function () {
                      elem.textElem.remove();
                  });
              }
docs: This function remove an element using animation (or not, depending on animDuration) Used for deletePlotKeys and deleteLinkKeys