Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency. Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp. Replaced Emerald with Outdoors in iosapp and osxapp. Fixes the iOS and OS X side of #4577 and #4702.
35 lines
760 B
C++
35 lines
760 B
C++
#ifndef MBGL_PLATFORM_DEFAULT_STYLES
|
|
#define MBGL_PLATFORM_DEFAULT_STYLES
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace mbgl {
|
|
namespace util {
|
|
namespace default_styles {
|
|
|
|
struct DefaultStyle {
|
|
const char* url;
|
|
const char* name;
|
|
};
|
|
|
|
extern const DefaultStyle streets;
|
|
extern const DefaultStyle outdoors;
|
|
extern const DefaultStyle light;
|
|
extern const DefaultStyle dark;
|
|
extern const DefaultStyle satellite;
|
|
extern const DefaultStyle hybrid;
|
|
|
|
const DefaultStyle orderedStyles[] = {
|
|
streets, outdoors, light, dark, satellite, hybrid,
|
|
};
|
|
const size_t numOrderedStyles = sizeof(orderedStyles) / sizeof(DefaultStyle);
|
|
|
|
static const unsigned currentVersion = 9;
|
|
|
|
} // end namespace default_styles
|
|
} // end namespace util
|
|
} // end namespace mbgl
|
|
|
|
#endif
|