frontend_nyla/src/components/UiComponents/MapView/MapView.tsx
2025-12-01 17:01:25 +01:00

33 lines
700 B
TypeScript

// Export types
export interface MapPoint {
x: number; // LV95 X coordinate
y: number; // LV95 Y coordinate
}
export interface ParcelGeometry {
id: string;
egrid?: string;
number?: string;
coordinates: MapPoint[];
isSelected?: boolean;
isAdjacent?: boolean;
}
export interface MapViewProps {
parcels?: ParcelGeometry[];
center?: MapPoint;
zoomBounds?: {
min_x: number;
min_y: number;
max_x: number;
max_y: number;
};
onMapClick?: (point: MapPoint) => void;
onParcelClick?: (parcelId: string) => void;
height?: string;
className?: string;
emptyMessage?: string;
}
// Re-export the Leaflet implementation
export { default } from './MapViewLeaflet';