/// /// import * as React from 'react'; import * as PropTypes from 'prop-types'; import { Map, GeoJSONSource, GeoJSONSourceRaw } from 'mapbox-gl'; import { TilesJson } from './util/types'; export interface Context { map: Map; } export interface Props { id: string; geoJsonSource?: GeoJSONSourceRaw; tileJsonSource?: TilesJson; onSourceAdded?: (source: GeoJSONSource | TilesJson) => void; onSourceLoaded?: (source: GeoJSONSource | TilesJson) => void; } export default class Source extends React.Component { context: Context; static contextTypes: { map: PropTypes.Requireable; }; private id; private onStyleDataChange; componentWillMount(): void; private initialize; private onData; componentWillUnmount(): void; componentWillReceiveProps(props: Props): void; render(): null; }