code: function () {
          var events = {
              resize: this._onLayerDidResize,
              moveend: this._onLayerDidMove
          };
          if (this._map.options.zoomAnimation && L.Browser.any3d) {
              events.zoomanim = this._animateZoom;
          }
  
          return events;
      }
docs: -------------------------------------------------------------