Rename ol/objectutil.js to ol/obj.js
This commit is contained in:
@@ -4,7 +4,7 @@ goog.require('ol');
|
||||
goog.require('ol.MapBrowserEvent.EventType');
|
||||
goog.require('ol.MapBrowserPointerEvent');
|
||||
goog.require('ol.interaction.Interaction');
|
||||
goog.require('ol.object');
|
||||
goog.require('ol.obj');
|
||||
|
||||
|
||||
/**
|
||||
@@ -131,7 +131,7 @@ ol.interaction.Pointer.prototype.updateTrackedPointers_ = function(mapBrowserEve
|
||||
// update only when there was a pointerdown event for this pointer
|
||||
this.trackedPointers_[event.pointerId] = event;
|
||||
}
|
||||
this.targetPointers = ol.object.getValues(this.trackedPointers_);
|
||||
this.targetPointers = ol.obj.getValues(this.trackedPointers_);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ goog.require('ol.events.condition');
|
||||
goog.require('ol.geom.GeometryType');
|
||||
goog.require('ol.interaction.Interaction');
|
||||
goog.require('ol.layer.Vector');
|
||||
goog.require('ol.object');
|
||||
goog.require('ol.obj');
|
||||
goog.require('ol.source.Vector');
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) {
|
||||
// Replace the currently selected feature(s) with the feature(s) at the
|
||||
// pixel, or clear the selected feature(s) if there is no feature at
|
||||
// the pixel.
|
||||
ol.object.clear(this.featureLayerAssociation_);
|
||||
ol.obj.clear(this.featureLayerAssociation_);
|
||||
map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
|
||||
/**
|
||||
* @param {ol.Feature|ol.render.Feature} feature Feature.
|
||||
|
||||
@@ -13,7 +13,7 @@ goog.require('ol.extent');
|
||||
goog.require('ol.geom.Geometry');
|
||||
goog.require('ol.interaction.Pointer');
|
||||
goog.require('ol.functions');
|
||||
goog.require('ol.object');
|
||||
goog.require('ol.obj');
|
||||
goog.require('ol.source.Vector');
|
||||
goog.require('ol.source.VectorEvent');
|
||||
goog.require('ol.source.VectorEventType');
|
||||
@@ -605,7 +605,7 @@ ol.interaction.Snap.handleEvent_ = function(evt) {
|
||||
* @private
|
||||
*/
|
||||
ol.interaction.Snap.handleUpEvent_ = function(evt) {
|
||||
var featuresToUpdate = ol.object.getValues(this.pendingFeatures_);
|
||||
var featuresToUpdate = ol.obj.getValues(this.pendingFeatures_);
|
||||
if (featuresToUpdate.length) {
|
||||
featuresToUpdate.forEach(this.updateFeature_, this);
|
||||
this.pendingFeatures_ = {};
|
||||
|
||||
Reference in New Issue
Block a user