UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

14 lines (13 loc) 673 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { Circle, Popup } from 'react-leaflet'; var MapCircle = function (_a) { var position = _a.position, radius = _a.radius, fill = _a.fill, stroke = _a.stroke, fillOpacity = _a.fillOpacity, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b, popupContent = _a.popupContent; return (_jsx(Circle, { center: position, radius: radius, pathOptions: { fillColor: fill, fillOpacity: fillOpacity, color: stroke ? fill : undefined, opacity: opacity, }, children: popupContent && _jsx(Popup, { children: popupContent }) })); }; export default MapCircle;