File size: 444 Bytes
d2efaca
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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);