Source: bu/panoramaevent.js

goog.provide('bu.PanoramaEvent');

goog.require('ol.events.Event');


/**
 * @classdesc
 * Events emitted as panorama events are instances of this type.
 *
 * @constructor
 * @extends {ol.events.Event}
 * @param {string} type Event type.
 * @param {bu.street.Image} image Image of the panorama.
 */
bu.PanoramaEvent = function(type, image) {

  ol.events.Event.call(this, type);

  /**
   * The image of the panorama.
   * @type {bu.street.Image}
   * @api
   */
  this.image = image;

};
ol.inherits(bu.PanoramaEvent, ol.events.Event);