1 |
8754af5c
|
Vaclav Honzik
|
|
2 |
|
|
// Map configuration interface
|
3 |
|
|
export interface MapConfig {
|
4 |
|
|
attribution: string,
|
5 |
|
|
url: string
|
6 |
|
|
defaultCoordinates: number[] // pair of numbers
|
7 |
|
|
defaultZoom: number
|
8 |
|
|
}
|
9 |
|
|
|
10 |
|
|
const mapConfig: MapConfig = {
|
11 |
|
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
12 |
|
|
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
13 |
|
|
defaultCoordinates: [33.5138, 36.2765], // Damascus, Syria
|
14 |
11fca75a
|
Vaclav Honzik
|
defaultZoom: 6
|
15 |
8754af5c
|
Vaclav Honzik
|
}
|
16 |
|
|
|
17 |
|
|
export default mapConfig
|