Add ol.interaction.Select

This commit is contained in:
Tom Payne
2014-01-28 19:37:31 +01:00
parent f0c1f03ae7
commit 2b71154bb2
3 changed files with 163 additions and 0 deletions

View File

@@ -394,6 +394,25 @@
* @todo stability experimental
*/
/**
* @typedef {Object} olx.interaction.SelectOptions
* @property {ol.events.ConditionType|undefined} addCondition A conditional
* modifier (e.g. shift key) that determines if the selection is added to
* the current selection. By default, a shift-click adds to the current
* selection.
* @property {ol.events.ConditionType|undefined} condition A conditional
* modifier (e.g. shift key) that determines if the interaction is active
* (i.e. selection occurs) or not. By default, a click with no modifier keys
* toggles the selection.
* @property {function(ol.layer.Layer): boolean|undefined} layerFilter Filter
* function to restrict selection to a subset of layers.
* @property {ol.layer.Layer|undefined} layer Layer. The single layer from which
* features should be selected.
* @property {Array.<ol.layer.Layer>|undefined} layers Layers. Zero or more
* layers from which features should be selected.
* @property {ol.render.FeaturesOverlay} featuresOverlay Features overlay.
*/
/**
* @typedef {Object} olx.interaction.TouchPanOptions
* @property {ol.Kinetic|undefined} kinetic Kinetic inertia to apply to the