2025-08-13 18:05:26 +02:00

9 lines
446 B
JavaScript

import { createElementObject, createPathComponent, extendContext, updateCircle } from '@react-leaflet/core';
import { Circle as LeafletCircle } from 'leaflet';
export const Circle = createPathComponent(function createCircle({ center , children: _c , ...options }, ctx) {
const circle = new LeafletCircle(center, options);
return createElementObject(circle, extendContext(ctx, {
overlayContainer: circle
}));
}, updateCircle);