Changes following code review

Add a type for FilterFunction and add tests for filter option.
This commit is contained in:
André Garneau
2019-06-04 17:45:28 -04:00
parent b42ee8ca0f
commit 7817cf31c6
2 changed files with 48 additions and 0 deletions
+7
View File
@@ -35,6 +35,13 @@ const TranslateEventType = {
TRANSLATEEND: 'translateend'
};
/**
* A function that takes an {@link module:ol/Feature} or
* {@link module:ol/render/Feature} and an
* {@link module:ol/layer/Layer} and returns `true` if the feature may be
* translated or `false` otherwise.
* @typedef {function(import("../Feature.js").FeatureLike, import("../layer/Layer.js").default):boolean} FilterFunction
*/
/**
* @typedef {Object} Options