rc-leaflet
Version:
React Map Components of Leaflet
22 lines (21 loc) • 637 B
TypeScript
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import L from 'leaflet';
import { ContextType } from './Context';
interface PartialProps {
className: string;
[key: string]: any;
}
declare type Props = Readonly<Partial<PartialProps>>;
export default class Content extends PureComponent<Props> {
static propTypes: {
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
};
static contextType: React.Context<Readonly<{
instance: L.Layer;
icon: L.Icon<L.IconOptions> | L.DivIcon;
}>>;
context: ContextType;
render(): React.ReactNode;
}
export {};