code: function (elem) {
              var self = this;
              if (elem === undefined) return;
  
              /* Handle click when href defined */
              if (!self.panning && elem.options.href !== undefined) {
                  window.open(elem.options.href, elem.options.target);
              }
          }
docs: /*
  Set the behaviour when mouse clicks element ("click" event)
  It may be an area, a plot or a link (but not a legend element which has its own function)
  @param elem the map element