UNPKG

@razi91/types-ol-ext

Version:
32 lines (31 loc) 985 B
import Feature from 'ol/Feature'; import { Vector as VectorSource } from 'ol/source'; import { AttributionLike } from 'ol/source/Source'; import { Options as VectorSourceOptions } from 'ol/source/Vector'; /** * @constructor source.WikiCommons * @extends {VectorSource} * @param {olx.source.WikiCommons=} options */ export default class WikiCommons extends VectorSource { constructor(options?: VectorSourceOptions); /** Max resolution to load features */ _maxResolution: any; /** Result language */ _lang: any; /** Query limit */ _limit: any; /** 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, attibute: AttributionLike): boolean; /** Overwrite #Vector clear to fire clearstart / clearend event */ clear(): void; }