Merge pull request #3402 from elemoine/selectfilter

Add "filter" option to Select interaction
This commit is contained in:
Éric Lemoine
2015-03-30 13:45:46 +02:00
3 changed files with 87 additions and 9 deletions

View File

@@ -2602,7 +2602,8 @@ olx.interaction.PointerOptions.prototype.handleUpEvent;
* style: (ol.style.Style|Array.<ol.style.Style>|ol.style.StyleFunction|undefined),
* removeCondition: (ol.events.ConditionType|undefined),
* toggleCondition: (ol.events.ConditionType|undefined),
* multi: (boolean|undefined)}}
* multi: (boolean|undefined),
* filter: (ol.interaction.SelectFilterFunction|undefined)}}
* @api
*/
olx.interaction.SelectOptions;
@@ -2688,6 +2689,14 @@ olx.interaction.SelectOptions.prototype.toggleCondition;
*/
olx.interaction.SelectOptions.prototype.multi;
/**
* A function that takes an {@link ol.Feature} and an {@link ol.layer.Layer} and
* returns `true` if the feature may be selected or `false` otherwise.
* @type {ol.interaction.SelectFilterFunction|undefined}
* @api
*/
olx.interaction.SelectOptions.prototype.filter;
/**
* Options for snap