Satisfying linter, jsdoc & compiler

This commit is contained in:
simonseyock
2016-10-19 18:10:21 +02:00
committed by simonseyock
parent 2493eb2c20
commit 80e392ea52
7 changed files with 82 additions and 53 deletions

View File

@@ -301,6 +301,49 @@ olx.MapOptions.prototype.target;
*/
olx.MapOptions.prototype.view;
/**
* The filter function will receive one argument, the
* {@link ol.layer.Layer layer-candidate} and it should return a boolean
* value.
* @typedef {(function(ol.layer.Layer): boolean)}
*/
olx.LayerFilterFunction;
/**
* Object literal with options for the forEachFeatureAtCoordinate methods.
* @typedef {{layerFilter: (olx.LayerFilterFunction|undefined),
* layerFilterThis: (Object|undefined),
* hitTolerance: (number|undefined)}}
*/
olx.ForEachFeatureOptions;
/**
* Layer filter function. Only layers which are visible and for which this function returns
* `true` will be tested for features. By default, all visible layers will
* be tested.
* @type {olx.LayerFilterFunction|undefined}
* @api stable
*/
olx.ForEachFeatureOptions.prototype.layerFilter;
/**
* Value to use as `this` when executing `layerFilter`.
* @type {Object}
* @api stable
*/
olx.ForEachFeatureOptions.prototype.layerFilterThis;
/**
* Value of a radius in whichs area around the given coordinate features are
* called.
* @type {number}
* @api stable
*/
olx.ForEachFeatureOptions.prototype.hitTolerance;
/**
* Object literal with config options for the overlay.