1 | import { createPathComponent, updateCircle } from '@react-leaflet/core';
|
2 | import { Circle as LeafletCircle } from 'leaflet';
|
3 | export const Circle = createPathComponent(function createCircle({
|
4 | center,
|
5 | children: _c,
|
6 | ...options
|
7 | }, ctx) {
|
8 | const instance = new LeafletCircle(center, options);
|
9 | return {
|
10 | instance,
|
11 | context: { ...ctx,
|
12 | overlayContainer: instance
|
13 | }
|
14 | };
|
15 | }, updateCircle); |
\ | No newline at end of file |