import ol_control_Control from 'ol/control/Control'; import Feature from 'ol/Feature'; import { StyleLike } from 'ol/style/Style'; import { Style } from 'ol/style'; import ol_legend_Legend from '../legend/Legend'; export interface Options { className: string; legend: ol_legend_Legend; title: string; collapsed?: boolean ; collapsible?: boolean ; target?: Element | string; } /** Create a legend for styles * @constructor * @extends {ol_control_CanvasBase} * @fires select * @param {*} options * @param {String} options.className class of the control * @param {ol_legend_Legend} options.legend * @param {boolean | undefined} options.collapsed Specify if attributions should be collapsed at startup. Default is true. * @param {boolean | undefined} options.collapsible Specify if legend can be collapsed, default true. * @param {Element | string | undefined} options.target Specify a target if you want the control to be rendered outside of the map's viewport. */ export default class Legend extends ol_control_Control { constructor(options: Options); /** Set the style * @param { Style | Array