1 | #pragma once |
2 | |
3 | #include <vector> |
4 | #include <string> |
5 | |
6 | namespace mbgl { |
7 | namespace util { |
8 | namespace default_styles { |
9 | |
10 | struct DefaultStyle { |
11 | const char* url; |
12 | const char* name; |
13 | const unsigned currentVersion; |
14 | }; |
15 | |
16 | constexpr const DefaultStyle streets = { .url: "mapbox://styles/mapbox/streets-v10" , .name: "Streets" , .currentVersion: 10 }; |
17 | constexpr const DefaultStyle outdoors = { .url: "mapbox://styles/mapbox/outdoors-v10" , .name: "Outdoors" , .currentVersion: 10 }; |
18 | constexpr const DefaultStyle light = { .url: "mapbox://styles/mapbox/light-v9" , .name: "Light" , .currentVersion: 9 }; |
19 | constexpr const DefaultStyle dark = { .url: "mapbox://styles/mapbox/dark-v9" , .name: "Dark" , .currentVersion: 9 }; |
20 | constexpr const DefaultStyle satellite = { .url: "mapbox://styles/mapbox/satellite-v9" , .name: "Satellite" , .currentVersion: 9 }; |
21 | constexpr const DefaultStyle satelliteStreets = { .url: "mapbox://styles/mapbox/satellite-streets-v10" , .name: "Satellite Streets" , .currentVersion: 10 }; |
22 | |
23 | const DefaultStyle orderedStyles[] = { |
24 | streets, outdoors, light, dark, satellite, satelliteStreets, |
25 | }; |
26 | const size_t numOrderedStyles = sizeof(orderedStyles) / sizeof(DefaultStyle); |
27 | |
28 | } // end namespace default_styles |
29 | } // end namespace util |
30 | } // end namespace mbgl |
31 | |