package.render.canvas.style.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ol Show documentation
Show all versions of ol Show documentation
OpenLayers mapping library
The newest version!
/**
* This function adapts a rule evaluator to the existing style function interface.
* After we have deprecated the style function, we can use the compiled rules directly
* and pass a more complete evaluation context (variables, zoom, time, etc.).
*
* @param {Array} rules The rules.
* @return {import('../../style/Style.js').StyleFunction} A style function.
*/
export function rulesToStyleFunction(rules: Array): import("../../style/Style.js").StyleFunction;
/**
* This function adapts a style evaluator to the existing style function interface.
* After we have deprecated the style function, we can use the compiled rules directly
* and pass a more complete evaluation context (variables, zoom, time, etc.).
*
* @param {Array} flatStyles The flat styles.
* @return {import('../../style/Style.js').StyleFunction} A style function.
*/
export function flatStylesToStyleFunction(flatStyles: Array): import("../../style/Style.js").StyleFunction;
/**
* @typedef {function(EvaluationContext):Array