UNPKG

@react-leaflet/core

Version:
13 lines (12 loc) 648 B
import type { CircleMarkerOptions, CircleOptions, LatLngExpression, Circle as LeafletCircle, CircleMarker as LeafletCircleMarker } from 'leaflet'; import type { ReactNode } from 'react'; import type { PathProps } from './path.js'; export interface CircleMarkerProps extends CircleMarkerOptions, PathProps { center: LatLngExpression; children?: ReactNode; } export interface CircleProps extends CircleOptions, PathProps { center: LatLngExpression; children?: ReactNode; } export declare function updateCircle<P extends CircleMarkerProps | CircleProps>(layer: LeafletCircle<P> | LeafletCircleMarker<P>, props: P, prevProps: P): void;