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