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
299 B
JavaScript
9 lines
299 B
JavaScript
export function updateGridLayer(layer, props, prevProps) {
|
|
const { opacity , zIndex } = props;
|
|
if (opacity != null && opacity !== prevProps.opacity) {
|
|
layer.setOpacity(opacity);
|
|
}
|
|
if (zIndex != null && zIndex !== prevProps.zIndex) {
|
|
layer.setZIndex(zIndex);
|
|
}
|
|
}
|