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
9 lines
463 B
JavaScript
9 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
|
|
}));
|
|
});
|