Allow style function to return a style

This commit is contained in:
Tim Schaub
2015-11-11 17:01:54 -07:00
parent afba132c13
commit e8c99e4e63
6 changed files with 61 additions and 22 deletions

View File

@@ -199,7 +199,7 @@ ol.style.Style.prototype.setZIndex = function(zIndex) {
* {@link ol.style.Style}. This way e.g. a vector layer can be styled.
*
* @typedef {function((ol.Feature|ol.render.Feature), number):
* Array.<ol.style.Style>}
* (ol.style.Style|Array.<ol.style.Style>)}
* @api
*/
ol.style.StyleFunction;