UNPKG

626 BTypeScriptView Raw
1import { type FitBoundsOptions, type LatLngBoundsExpression, Map as LeafletMap, type MapOptions } from 'leaflet';
2import React, { type CSSProperties, type ReactNode } from 'react';
3export type MapRef = LeafletMap | null;
4export interface MapContainerProps extends MapOptions {
5 bounds?: LatLngBoundsExpression;
6 boundsOptions?: FitBoundsOptions;
7 children?: ReactNode;
8 className?: string;
9 id?: string;
10 placeholder?: ReactNode;
11 style?: CSSProperties;
12 whenReady?: () => void;
13}
14export declare const MapContainer: React.ForwardRefExoticComponent<MapContainerProps & React.RefAttributes<LeafletMap>>;