Rename ol.MapEventType to ol.MapEvent.Type
This commit is contained in:
+22
-23
@@ -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'
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user