File size: 462 Bytes
d2efaca |
1 2 3 4 5 6 7 8 9 10 |
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
}));
});
|