Rename ol.MapEventType to ol.MapEvent.Type

This commit is contained in:
Frederic Junod
2016-09-07 10:05:38 +02:00
parent a40717b7c9
commit 107dd6a85f
6 changed files with 31 additions and 32 deletions
+22 -23
View File
@@ -1,32 +1,9 @@
goog.provide('ol.MapEvent');
goog.provide('ol.MapEventType');
goog.require('ol');
goog.require('ol.events.Event');
/**
* @enum {string}
*/
ol.MapEventType = {
/**
* Triggered after a map frame is rendered.
* @event ol.MapEvent#postrender
* @api
*/
POSTRENDER: 'postrender',
/**
* Triggered after the map is moved.
* @event ol.MapEvent#moveend
* @api stable
*/
MOVEEND: 'moveend'
};
/**
* @classdesc
* Events emitted as map events are instances of this type.
@@ -59,3 +36,25 @@ ol.MapEvent = function(type, map, opt_frameState) {
};
ol.inherits(ol.MapEvent, ol.events.Event);
/**
* @enum {string}
*/
ol.MapEvent.Type = {
/**
* Triggered after a map frame is rendered.
* @event ol.MapEvent#postrender
* @api
*/
POSTRENDER: 'postrender',
/**
* Triggered after the map is moved.
* @event ol.MapEvent#moveend
* @api stable
*/
MOVEEND: 'moveend'
};