DieselDepot-APP/node_modules/react-leaflet/lib/LayerGroup.js
SJCoetz 34608475cb feat: add depot map integration
Add Leaflet and react-leaflet dependencies for interactive map functionality
Extend DDDepot type with optional latitude/longitude fields for map markers
Update site metadata and admin settings page text
Add client-side DepotMap component to render depot locations
Update PocketBase admin token in environment configuration
2026-07-20 12:31:18 +02:00

8 lines
422 B
JavaScript

import { createElementObject, createLayerComponent, extendContext } from '@react-leaflet/core';
import { LayerGroup as LeafletLayerGroup } from 'leaflet';
export const LayerGroup = createLayerComponent(function createLayerGroup({ children: _c , ...options }, ctx) {
const group = new LeafletLayerGroup([], options);
return createElementObject(group, extendContext(ctx, {
layerContainer: group
}));
});