mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-26 17:12:23 +00:00
9 lines
446 B
JavaScript
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);
|