constructor(type, layer) {
    super(type);

    /**
     * The added or removed layer.
     * @type {BaseLayer}
     * @api
     */
    this.layer = layer;
  }
@param {GroupEventType} type The event type.
@param {BaseLayer} layer The layer.