Add style change functionality to the Linux test app
Makes the life of people using Linux as development environment way easier. Just press 's' to cycle through 3 different styles.
This commit is contained in:
committed by
Konstantin Käfer
parent
0d16110733
commit
168d7c4f17
18
platform/default/default_styles.cpp
Normal file
18
platform/default/default_styles.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "default_styles.hpp"
|
||||
|
||||
namespace mbgl {
|
||||
namespace util {
|
||||
|
||||
const std::vector<std::pair<std::string, std::string>> defaultStyles = {
|
||||
{ "asset://styles/mapbox-streets-v7.json", "Mapbox Streets" },
|
||||
{ "asset://styles/emerald-v7.json", "Emerald" },
|
||||
{ "asset://styles/light-v7.json", "Light" },
|
||||
{ "asset://styles/dark-v7.json", "Dark" },
|
||||
{ "asset://styles/bright-v7.json", "Bright" },
|
||||
{ "asset://styles/basic-v7.json", "Basic" },
|
||||
{ "asset://styles/outdoors-v7.json", "Outdoors" },
|
||||
{ "asset://styles/satellite-v7.json", "Satellite" },
|
||||
};
|
||||
|
||||
} // end namespace util
|
||||
} // end namespace mbgl
|
||||
Reference in New Issue
Block a user