react-ol-choropleth
Version:
A React plugin for creating choropleth maps using OpenLayers
11 lines (10 loc) • 340 B
TypeScript
import { default as React } from 'react';
import { ColorScaleOptions } from '../types/map';
interface LegendProps {
colorScale: ColorScaleOptions;
position: "top-left" | "top-right" | "bottom-left" | "bottom-right";
values: number[];
className?: string;
}
declare const Legend: React.FC<LegendProps>;
export default Legend;