eurostat-map
Version:
Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.
14 lines (11 loc) • 323 B
TypeScript
import type { MapInstance } from '../core/MapInstance'
/** Base legend configuration */
export interface LegendConfig {
title?: string
titleFontSize?: number
labelFontSize?: number
labelDelimiter?: string
noDataText?: string
}
/** Creates a legend instance */
export function legend(config?: LegendConfig): any