@react-leaflet/core
Version:
React Leaflet core
13 lines (12 loc) • 648 B
TypeScript
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;