aswi2022code-of-duty-gitlab/frontend/src/config/mapConfig.ts @ 0d90d67b
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: '© <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 |
- « Předchozí
- 1
- 2
- Další »