Rename ol.interaction.ExtentEventType to ol.interaction.Extent.EventType
This commit is contained in:
@@ -18,6 +18,7 @@ A number of internal types have been renamed. This will not affect those who us
|
||||
* rename `ol.control.MousePositionProperty` to `ol.control.MousePosition.Property`
|
||||
* rename `ol.format.IGCZ` to `ol.format.IGC.Z`
|
||||
* rename `ol.interaction.ExtentEvent` to `ol.interaction.Extent.Event`
|
||||
* rename `ol.interaction.ExtentEventType` to `ol.interaction.Extent.EventType`
|
||||
* rename `ol.interaction.DragAndDropEvent` to `ol.interaction.DragAndDrop.Event`
|
||||
* rename `ol.interaction.DragAndDropEventType` to `ol.interaction.DragAndDrop.EventType`
|
||||
* rename `ol.interaction.TranslateEvent` to `ol.interaction.Translate.Event`
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
goog.provide('ol.interaction.Extent');
|
||||
goog.provide('ol.interaction.ExtentEventType');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.Feature');
|
||||
@@ -17,19 +16,6 @@ goog.require('ol.source.Vector');
|
||||
goog.require('ol.style.Style');
|
||||
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
ol.interaction.ExtentEventType = {
|
||||
/**
|
||||
* Triggered after the extent is changed
|
||||
* @event ol.interaction.Extent.Event
|
||||
* @api
|
||||
*/
|
||||
EXTENTCHANGED: 'extentchanged'
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Allows the user to draw a vector box by clicking and dragging on the map.
|
||||
@@ -465,7 +451,7 @@ ol.interaction.Extent.prototype.setExtent = function(extent) {
|
||||
* @extends {ol.events.Event}
|
||||
*/
|
||||
ol.interaction.Extent.Event = function(extent) {
|
||||
ol.events.Event.call(this, ol.interaction.ExtentEventType.EXTENTCHANGED);
|
||||
ol.events.Event.call(this, ol.interaction.Extent.EventType.EXTENTCHANGED);
|
||||
|
||||
/**
|
||||
* The current extent.
|
||||
@@ -475,3 +461,16 @@ ol.interaction.Extent.Event = function(extent) {
|
||||
this.extent_ = extent;
|
||||
};
|
||||
ol.inherits(ol.interaction.Extent.Event, ol.events.Event);
|
||||
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
ol.interaction.Extent.EventType = {
|
||||
/**
|
||||
* Triggered after the extent is changed
|
||||
* @event ol.interaction.Extent.Event
|
||||
* @api
|
||||
*/
|
||||
EXTENTCHANGED: 'extentchanged'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user