UNPKG

@siedlerchr/types-ol-ext

Version:
28 lines (24 loc) 843 B
import type Feature from 'ol/Feature' import { Vector as VectorSource } from 'ol/source' import type { AttributionLike } from 'ol/source/Source' import type { Options as VectorSourceOptions } from 'ol/source/Vector' /** * @constructor source.WikiCommons * @extends {VectorSource} */ export default class WikiCommons extends VectorSource { /** * @param {olx.source.WikiCommons=} options */ constructor(options?: VectorSourceOptions<Feature>); /** Decode wiki attributes and choose to add feature to the layer * @param {feature} the feature * @param {attributes} wiki attributes * @return {boolean} true: add the feature to the layer * @API stable */ readFeature(featue: Feature, attributes: AttributionLike): boolean; /** Overwrite #Vector clear to fire clearstart / clearend event */ clear(): void; }