Projekt

Obecné

Profil

Stáhnout (493 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1

    
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: '&copy; <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
    defaultZoom: 8
15
}
16

    
17
export default mapConfig
(2-2/2)