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
13 lines
586 B
TypeScript
13 lines
586 B
TypeScript
import { type FitBoundsOptions, type LatLngBoundsExpression, Map as LeafletMap, type MapOptions } from 'leaflet';
|
|
import React, { type CSSProperties, type ReactNode } from 'react';
|
|
export interface MapContainerProps extends MapOptions {
|
|
bounds?: LatLngBoundsExpression;
|
|
boundsOptions?: FitBoundsOptions;
|
|
children?: ReactNode;
|
|
className?: string;
|
|
id?: string;
|
|
placeholder?: ReactNode;
|
|
style?: CSSProperties;
|
|
whenReady?: () => void;
|
|
}
|
|
export declare const MapContainer: React.ForwardRefExoticComponent<MapContainerProps & React.RefAttributes<LeafletMap>>;
|