UNPKG

@razi91/types-ol-ext

Version:
28 lines (25 loc) 942 B
import { Vector as VectorSource } from 'ol/source'; import SelectBase from './SelectBase'; export interface Options { className?: string; target?: Element; source?: VectorSource | VectorSource[]; property?: string; onchoice?: () => void } /** * Select features by property using a simple text input * * @constructor * @extends {contrSelectBase} * @fires select * @param {Object=} options * @param {string} options.className control class name * @param {Element | undefined} options.target Specify a target if you want the control to be rendered outside of the map's viewport. * @param {Vector | Array<Vector>} options.source the source to search in * @param {string} options.property property to select on * @param {function|undefined} options.onchoice function triggered the text change, default nothing */ export default class SelectFulltext extends SelectBase { constructor(options?: Options); }