Rename ol.source.TileEvent to ol.source.Tile.Event
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
goog.provide('ol.source.Tile');
|
||||
goog.provide('ol.source.TileEvent');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.Tile');
|
||||
@@ -318,11 +317,11 @@ ol.source.Tile.prototype.useTile = ol.nullFunction;
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.events.Event}
|
||||
* @implements {oli.source.TileEvent}
|
||||
* @implements {oli.source.Tile.Event}
|
||||
* @param {string} type Type.
|
||||
* @param {ol.Tile} tile The tile.
|
||||
*/
|
||||
ol.source.TileEvent = function(type, tile) {
|
||||
ol.source.Tile.Event = function(type, tile) {
|
||||
|
||||
ol.events.Event.call(this, type);
|
||||
|
||||
@@ -334,31 +333,31 @@ ol.source.TileEvent = function(type, tile) {
|
||||
this.tile = tile;
|
||||
|
||||
};
|
||||
ol.inherits(ol.source.TileEvent, ol.events.Event);
|
||||
ol.inherits(ol.source.Tile.Event, ol.events.Event);
|
||||
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
ol.source.TileEventType = {
|
||||
ol.source.Tile.EventType = {
|
||||
|
||||
/**
|
||||
* Triggered when a tile starts loading.
|
||||
* @event ol.source.TileEvent#tileloadstart
|
||||
* @event ol.source.Tile.Event#tileloadstart
|
||||
* @api stable
|
||||
*/
|
||||
TILELOADSTART: 'tileloadstart',
|
||||
|
||||
/**
|
||||
* Triggered when a tile finishes loading.
|
||||
* @event ol.source.TileEvent#tileloadend
|
||||
* @event ol.source.Tile.Event#tileloadend
|
||||
* @api stable
|
||||
*/
|
||||
TILELOADEND: 'tileloadend',
|
||||
|
||||
/**
|
||||
* Triggered if tile loading results in an error.
|
||||
* @event ol.source.TileEvent#tileloaderror
|
||||
* @event ol.source.Tile.Event#tileloaderror
|
||||
* @api stable
|
||||
*/
|
||||
TILELOADERROR: 'tileloaderror'
|
||||
|
||||
Reference in New Issue
Block a user