UNPKG

geostyler

Version:
22 lines (21 loc) 731 B
import { default as React } from 'react'; import { default as OlMap } from 'ol/Map'; import { ProjectionLike } from 'ol/proj'; import { Style } from 'geostyler-style'; import { StandardLonghandProperties } from 'csstype'; export interface PreviewMapProps { /** The projection of the data to visualize */ dataProjection?: ProjectionLike; /** The height of the map */ mapHeight?: StandardLonghandProperties['height']; /** The GeoStyler Style to preview */ style: Style; /** A custom map used for rendering */ map?: OlMap; /** A list of layers to add to the map */ onMapDidMount?: (map: OlMap) => void; } /** * Style preview UI. */ export declare const PreviewMap: React.FC<PreviewMapProps>;