UNPKG

@goongmaps/goong-map-react

Version:

A fork of react-map-gl. React components for Goong JS

42 lines (40 loc) 918 B
/** * Flowtype definitions for layer * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import * as GoongJS from "@goongmaps/goong-js"; import { Element, Ref } from "react"; export interface LayerProps { id?: string; type: | "fill" | "line" | "symbol" | "circle" | "fill-extrusion" | "raster" | "background" | "heatmap" | "hillshade" | "sky"; source?: string; "source-layer"?: string; beforeId?: string; layout?: GoongJS.AnyLayout; paint: | GoongJS.BackgroundPaint | GoongJS.FillPaint | GoongJS.FillExtrusionPaint | GoongJS.LinePaint | GoongJS.SymbolPaint | GoongJS.RasterPaint | GoongJS.CirclePaint | GoongJS.HeatmapPaint | GoongJS.HillshadePaint; filter?: any[]; minzoom?: number; maxzoom?: number; ref?: Ref<LayerProps>; } declare export default function Layer(props: LayerProps): Element;