Rename _ol_events_EventType_ to EventType
This commit is contained in:
committed by
Frederic Junod
parent
ec64789940
commit
479c7a4668
@@ -6,7 +6,7 @@ import {getUid, inherits} from '../index.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_Feature_ from '../Feature.js';
|
||||
import _ol_coordinate_ from '../coordinate.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {buffer, createEmpty, createOrUpdateFromCoordinate} from '../extent.js';
|
||||
import Point from '../geom/Point.js';
|
||||
import _ol_source_Vector_ from '../source/Vector.js';
|
||||
@@ -67,7 +67,7 @@ var _ol_source_Cluster_ = function(options) {
|
||||
*/
|
||||
this.source = options.source;
|
||||
|
||||
this.source.on(_ol_events_EventType_.CHANGE,
|
||||
this.source.on(EventType.CHANGE,
|
||||
_ol_source_Cluster_.prototype.refresh, this);
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {inherits} from '../index.js';
|
||||
import _ol_Image_ from '../Image.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {containsExtent, getHeight, getWidth} from '../extent.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import _ol_source_Image_ from '../source/Image.js';
|
||||
@@ -174,7 +174,7 @@ _ol_source_ImageArcGISRest_.prototype.getImageInternal = function(extent, resolu
|
||||
|
||||
this.renderedRevision_ = this.getRevision();
|
||||
|
||||
_ol_events_.listen(this.image_, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(this.image_, EventType.CHANGE,
|
||||
this.handleImageChange, this);
|
||||
|
||||
return this.image_;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_Image_ from '../Image.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {containsExtent, getCenter, getHeight, getWidth, scaleFromCenter} from '../extent.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import _ol_source_Image_ from '../source/Image.js';
|
||||
@@ -144,7 +144,7 @@ _ol_source_ImageMapGuide_.prototype.getImageInternal = function(extent, resoluti
|
||||
image = new _ol_Image_(extent, resolution, pixelRatio,
|
||||
imageUrl, this.crossOrigin_,
|
||||
this.imageLoadFunction_);
|
||||
_ol_events_.listen(image, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(image, EventType.CHANGE,
|
||||
this.handleImageChange, this);
|
||||
} else {
|
||||
image = null;
|
||||
|
||||
@@ -6,7 +6,7 @@ import _ol_Image_ from '../Image.js';
|
||||
import _ol_ImageState_ from '../ImageState.js';
|
||||
import {createCanvasContext2D} from '../dom.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {intersects, getHeight, getWidth} from '../extent.js';
|
||||
import {get as getProjection} from '../proj.js';
|
||||
import _ol_source_Image_ from '../source/Image.js';
|
||||
@@ -48,7 +48,7 @@ var _ol_source_ImageStatic_ = function(options) {
|
||||
*/
|
||||
this.imageSize_ = options.imageSize ? options.imageSize : null;
|
||||
|
||||
_ol_events_.listen(this.image_, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(this.image_, EventType.CHANGE,
|
||||
this.handleImageChange, this);
|
||||
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ import {inherits} from '../index.js';
|
||||
import _ol_Image_ from '../Image.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {containsExtent, getCenter, getForViewAndSize, getHeight, getWidth} from '../extent.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import {get as getProjection, transform} from '../proj.js';
|
||||
@@ -237,7 +237,7 @@ _ol_source_ImageWMS_.prototype.getImageInternal = function(extent, resolution, p
|
||||
|
||||
this.renderedRevision_ = this.getRevision();
|
||||
|
||||
_ol_events_.listen(this.image_, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(this.image_, EventType.CHANGE,
|
||||
this.handleImageChange, this);
|
||||
|
||||
return this.image_;
|
||||
|
||||
@@ -7,7 +7,7 @@ import _ol_TileQueue_ from '../TileQueue.js';
|
||||
import {createCanvasContext2D} from '../dom.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import Event from '../events/Event.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {Processor as _ol_ext_pixelworks_Processor_} from 'pixelworks';
|
||||
import {equals, getCenter, getHeight, getWidth} from '../extent.js';
|
||||
import _ol_layer_Image_ from '../layer/Image.js';
|
||||
@@ -61,7 +61,7 @@ var _ol_source_Raster_ = function(options) {
|
||||
this.renderers_ = _ol_source_Raster_.createRenderers_(options.sources);
|
||||
|
||||
for (var r = 0, rr = this.renderers_.length; r < rr; ++r) {
|
||||
_ol_events_.listen(this.renderers_[r], _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(this.renderers_[r], EventType.CHANGE,
|
||||
this.changed, this);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import _ol_ImageTile_ from '../ImageTile.js';
|
||||
import _ol_TileCache_ from '../TileCache.js';
|
||||
import _ol_TileState_ from '../TileState.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {equivalent, get as getProjection} from '../proj.js';
|
||||
import _ol_reproj_Tile_ from '../reproj/Tile.js';
|
||||
import _ol_source_UrlTile_ from '../source/UrlTile.js';
|
||||
@@ -225,7 +225,7 @@ _ol_source_TileImage_.prototype.createTile_ = function(z, x, y, pixelRatio, proj
|
||||
this.tileLoadFunction,
|
||||
this.tileOptions);
|
||||
tile.key = key;
|
||||
_ol_events_.listen(tile, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(tile, EventType.CHANGE,
|
||||
this.handleTileChange, this);
|
||||
return tile;
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ import _ol_TileState_ from '../TileState.js';
|
||||
import _ol_TileUrlFunction_ from '../TileUrlFunction.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {applyTransform, intersects} from '../extent.js';
|
||||
import _ol_net_ from '../net.js';
|
||||
import {get as getProjection, getTransformFromProjections} from '../proj.js';
|
||||
@@ -374,7 +374,7 @@ _ol_source_TileUTFGrid_.Tile_.prototype.getData = function(coordinate) {
|
||||
*/
|
||||
_ol_source_TileUTFGrid_.Tile_.prototype.forDataAtCoordinate = function(coordinate, callback, opt_this, opt_request) {
|
||||
if (this.state == _ol_TileState_.IDLE && opt_request === true) {
|
||||
_ol_events_.listenOnce(this, _ol_events_EventType_.CHANGE, function(e) {
|
||||
_ol_events_.listenOnce(this, EventType.CHANGE, function(e) {
|
||||
callback.call(opt_this, this.getData(coordinate));
|
||||
}, this);
|
||||
this.loadInternal_();
|
||||
|
||||
@@ -10,7 +10,7 @@ import _ol_array_ from '../array.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import Event from '../events/Event.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {containsExtent, equals} from '../extent.js';
|
||||
import _ol_featureloader_ from '../featureloader.js';
|
||||
import {TRUE} from '../functions.js';
|
||||
@@ -204,7 +204,7 @@ _ol_source_Vector_.prototype.addFeatureInternal = function(feature) {
|
||||
*/
|
||||
_ol_source_Vector_.prototype.setupChangeEvents_ = function(featureKey, feature) {
|
||||
this.featureChangeKeys_[featureKey] = [
|
||||
_ol_events_.listen(feature, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.listen(feature, EventType.CHANGE,
|
||||
this.handleFeatureChange_, this),
|
||||
_ol_events_.listen(feature, _ol_ObjectEventType_.PROPERTYCHANGE,
|
||||
this.handleFeatureChange_, this)
|
||||
|
||||
Reference in New Issue
Block a user