@goongmaps/goong-map-react
Version:
A fork of react-map-gl. React components for Goong JS
39 lines (37 loc) • 952 B
Flow
/**
* Flowtype definitions for source
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
*/
import { PureComponent, Element } from "react";
import * as GeoJSON from "geojson";
export interface SourceProps {
id?: string;
type: string;
url?: string;
tiles?: string[];
tileSize?: number;
bounds?: number[];
scheme?: "xyz" | "tms";
minzoom?: number;
maxzoom?: number;
attribution?: string;
encoding?: "terrarium" | "mapbox";
data?:
| GeoJSON.Feature<GeoJSON.Geometry>
| GeoJSON.FeatureCollection<GeoJSON.Geometry>
| string;
buffer?: number;
tolerance?: number;
cluster?: boolean;
clusterRadius?: number;
clusterProperties?: { [key: string]: any };
clusterMaxZoom?: number;
lineMetrics?: boolean;
generateId?: boolean;
coordinates?: number[][];
urls?: string[];
children?: any;
promoteId?: string;
}
declare export default class Source mixins PureComponent<SourceProps> {}