UNPKG

446 BJavaScriptView Raw
1import { createElementObject, createPathComponent, extendContext, updateCircle } from '@react-leaflet/core';
2import { Circle as LeafletCircle } from 'leaflet';
3export 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);