import { MapComponentSchema } from '@open-formulieren/types'; import { CoordinatePair, GeoJsonGeometry } from '@open-formulieren/types/dist/components/map'; export interface LeafletMapProps { /** * Optional initial map value. */ geoJsonGeometry?: GeoJsonGeometry | null; /** * Optional initial point where the map will center around. */ defaultCenter?: CoordinatePair; /** * Optional initial zoom level. * Leaflet zoom level is a range of 1-20, but the Dutch tile service only supports up * to level 13. */ defaultZoomLevel?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13; /** * URL to the tile layer which should be used. */ tileLayerUrl?: string; /** * Additional element which will be used as child element of the MapField. */ mapContainerChild?: React.ReactNode; /** * The interaction(s) to use for the map. */ interactions?: MapComponentSchema['interactions']; /** * The overlay(s) to use for the map. */ overlays?: MapComponentSchema['overlays']; /** * A callback which is called upon changes to the current map value. */ onGeoJsonGeometrySet?: (geoJsonGeometry: GeoJsonGeometry | null) => void; onBlur?: () => void; } declare const LeafletMap: React.FC; export default LeafletMap;