react-ol-choropleth
Version:
A React plugin for creating choropleth maps using OpenLayers
10 lines (9 loc) • 356 B
TypeScript
import { ColorScale } from '../types/map';
import { FeatureLike } from 'ol/Feature';
interface UseColorScaleOptions {
data: FeatureLike[];
valueProperty: string;
colorScale: ColorScale;
}
export declare const useColorScale: ({ data, valueProperty, colorScale }: UseColorScaleOptions) => (value: number) => string;
export default useColorScale;