rc-leaflet
Version:
React Map Components of Leaflet
16 lines (15 loc) • 467 B
TypeScript
import L from 'leaflet';
import BaseIcon, { Props as BaseIconProps } from '../BaseIcon';
interface PartialProps {
iconUrl: string;
}
declare type Props = Readonly<L.IconOptions & BaseIconProps>;
interface State {
instance: L.Icon;
}
export default class Icon extends BaseIcon<L.Icon, Props> {
static defaultProps: PartialProps;
static getDerivedStateFromProps(nextProps: Props, prevState: State): State;
componentWillUnmount(): void;
}
export {};