import Control, { ControlOptionsType } from './Control'; /** * @classdesc * A control to allows to display attribution content in a small text box on the map. * @category control * @extends control.Control * @memberOf control * @example * var map = new maptalks.Map('map', { * center: [-0.113049, 51.498568], * zoom: 14, * attribution: { * content : 'my attribution', * position : 'bottom-left' * }, * baseLayer: new maptalks.TileLayer('base', { * urlTemplate: 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', * subdomains: ['a','b','c','d'], * attribution: '© OpenStreetMap contributors, © CARTO' * }) * }); * map.addLayer(new maptalks.TileLayer('base', { * urlTemplate: 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', * subdomains: ['a','b','c','d'], * attribution: '© OpenStreetMap contributors, © CARTO' * })); */ declare class Attribution extends Control { buildOn(): HTMLDivElement; getContent(): string | HTMLElement; setContent(content: string | HTMLElement): this; onAdd(): void; onRemove(): void; } export default Attribution; export type AttributionOptionsTypeSpec = { content?: string | HTMLElement; custom?: boolean; }; export type AttributionOptionsType = AttributionOptionsTypeSpec & ControlOptionsType; //# sourceMappingURL=Control.Attribution.d.ts.map