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
10 lines
677 B
TypeScript
10 lines
677 B
TypeScript
import type { InteractiveLayerOptions, Layer, LayerOptions } from 'leaflet';
|
|
import { type LeafletContextInterface } from './context.js';
|
|
import type { LeafletElement, ElementHook } from './element.js';
|
|
import { type EventedProps } from './events.js';
|
|
export interface LayerProps extends EventedProps, LayerOptions {
|
|
}
|
|
export interface InteractiveLayerProps extends LayerProps, InteractiveLayerOptions {
|
|
}
|
|
export declare function useLayerLifecycle(element: LeafletElement<Layer>, context: LeafletContextInterface): void;
|
|
export declare function createLayerHook<E extends Layer, P extends LayerProps>(useElement: ElementHook<E, P>): (props: P) => ReturnType<ElementHook<E, P>>;
|