Files
Housekeeping-web-admin/node_modules/react-leaflet/lib/FeatureGroup.js
T
2026-06-24 09:48:54 +02:00

10 lines
463 B
JavaScript

import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';
import { FeatureGroup as LeafletFeatureGroup } from 'leaflet';
export const FeatureGroup = createPathComponent(function createFeatureGroup({ children: _c , ...options }, ctx) {
const group = new LeafletFeatureGroup([], options);
return createElementObject(group, extendContext(ctx, {
layerContainer: group,
overlayContainer: group
}));
});