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
8 lines
446 B
JavaScript
8 lines
446 B
JavaScript
import { createElementObject, createPathComponent, extendContext, updateCircle } from '@react-leaflet/core';
|
|
import { Circle as LeafletCircle } from 'leaflet';
|
|
export const Circle = createPathComponent(function createCircle({ center , children: _c , ...options }, ctx) {
|
|
const circle = new LeafletCircle(center, options);
|
|
return createElementObject(circle, extendContext(ctx, {
|
|
overlayContainer: circle
|
|
}));
|
|
}, updateCircle);
|