UNPKG

mobility-toolbox-js

Version:

Toolbox for JavaScript applications in the domains of mobility and logistics.

39 lines (38 loc) 1.05 kB
import type { ControlPosition, IControl } from 'maplibre-gl'; /** * Display layer's attributions trying to remove duplicated ones. * * @example * import { Map } from 'maplibre-gl'; * import { CopyrightControl } from 'mobility-toolbox-js/maplibre'; * * const map = new Map({ * container: 'map', * style: `https://maps.geops.io/styles/travic_v2/style.json?key=${window.apiKey}`, * }); * * const control = new CopyrightControl(); * map.addControl(control); * * * @see <a href="/example/mb-realtime>MapLibre Realtime layer example</a> * * @implements {maplibregl.IControl} * * @public */ declare class CopyrightControl implements IControl { container?: HTMLElement; content?: string; map?: maplibregl.Map; options?: { customAttribution?: string | string[]; separator?: string; }; constructor(options?: {}); getDefaultPosition(): ControlPosition; onAdd(map: maplibregl.Map): HTMLElement; onRemove(): HTMLElement | undefined; render(): void; } export default CopyrightControl;