Skip to content
Snippets Groups Projects
Commit 1209307a authored by Fabian Schmidt's avatar Fabian Schmidt
Browse files

type & example data

parent 6bac0355
No related branches found
No related tags found
No related merge requests found
[
{
id: 1,
latlng: [],
name: 'test',
description: 'test',
address: 'test123 22022 Hamburg',
category: 'WERKSTATT'
},
{
id: 1,
latlng: [],
name: 'test',
description: 'test',
address: 'test123 22022 Hamburg',
category: 'WERKSTATT'
},
{
id: 1,
latlng: [],
name: 'test',
description: 'test',
address: 'test123 22022 Hamburg',
category: 'WERKSTATT'
},
{
id: 1,
latlng: [],
name: 'test',
description: 'test',
address: 'test123 22022 Hamburg',
category: 'WERKSTATT'
}
]
\ No newline at end of file
import type { LatLngExpression } from "leaflet";
export interface PointOfInterest {
id: number,
latlng: LatLngExpression,
name: string,
description: string,
address: string,
category: string
}
interface Map {
values: PointOfInterest[],
onSelect: (entry : PointOfInterest) => void,
selectedEntry : PointOfInterest
}
interface Sidebar {
values: PointOfInterest[],
onSelect: (entry : PointOfInterest) => void,
selectedEntry : PointOfInterest
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment