import Control from 'ol/control/Control'; import type { MapEvent } from 'ol'; import type { Options } from 'ol/control/Control'; export type CopyrightControlOptions = { className?: 'string'; format?: (copyrights: string[]) => string; } & Options; /** * Display layer's copyrights. Adding the possibility to format them as you wish. * * @example * import { Map } from 'ol'; * import { CopyrightControl } from 'mobility-toolbox-js/ol'; * * const map = new Map({ * target: 'map', * }); * * const control = new CopyrightControl(); * map.addControl(control); * * * @see