Rename ol.interaction.ExtentEventType to ol.interaction.Extent.EventType

This commit is contained in:
Frederic Junod
2016-09-07 10:35:29 +02:00
parent 151e9866ea
commit 302f37ae7a
2 changed files with 15 additions and 15 deletions

View File

@@ -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'
};