Do not dispatch selection events for now
This commit is contained in:
@@ -2,8 +2,7 @@ goog.provide('ol.interaction.Select');
|
|||||||
|
|
||||||
goog.require('goog.array');
|
goog.require('goog.array');
|
||||||
goog.require('goog.asserts');
|
goog.require('goog.asserts');
|
||||||
goog.require('goog.events');
|
goog.require('ol.Feature');
|
||||||
goog.require('goog.events.EventType');
|
|
||||||
goog.require('ol.interaction.ConditionType');
|
goog.require('ol.interaction.ConditionType');
|
||||||
goog.require('ol.interaction.Interaction');
|
goog.require('ol.interaction.Interaction');
|
||||||
goog.require('ol.interaction.condition');
|
goog.require('ol.interaction.condition');
|
||||||
@@ -12,16 +11,6 @@ goog.require('ol.layer.VectorLayerRenderIntent');
|
|||||||
goog.require('ol.source.Vector');
|
goog.require('ol.source.Vector');
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {{layer: ol.layer.Layer,
|
|
||||||
* map: ol.Map,
|
|
||||||
* selected: (Array.<ol.Feature>|undefined),
|
|
||||||
* type: goog.events.EventType,
|
|
||||||
* unselected: (Array.<ol.Feature>|undefined)}}
|
|
||||||
*/
|
|
||||||
ol.interaction.SelectEventObject;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
@@ -181,12 +170,6 @@ ol.interaction.Select.prototype.select =
|
|||||||
}
|
}
|
||||||
selectionLayer.removeFeatures(featuresToRemove);
|
selectionLayer.removeFeatures(featuresToRemove);
|
||||||
selectionLayer.addFeatures(featuresToAdd);
|
selectionLayer.addFeatures(featuresToAdd);
|
||||||
this.dispatchEvent(/** @type {ol.interaction.SelectEventObject} */ ({
|
// TODO: Dispatch an event with selectedFeatures and unselectedFeatures
|
||||||
layer: layer,
|
|
||||||
map: map,
|
|
||||||
selected: selectedFeatures,
|
|
||||||
type: goog.events.EventType.CHANGE,
|
|
||||||
unselected: unselectedFeatures
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user