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:
Thiago Marcos P. Santos
2015-05-06 15:22:43 +03:00
committed by Konstantin Käfer
parent 0d16110733
commit 168d7c4f17
7 changed files with 73 additions and 3 deletions

View 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