[core, ios, osx] Version default style URL APIs; deprecated Emerald
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.
This commit is contained in:
committed by
Minh Nguyễn
parent
d28b6f3719
commit
2a4eeadb29
@@ -4,12 +4,12 @@ namespace mbgl {
|
||||
namespace util {
|
||||
namespace default_styles {
|
||||
|
||||
const DefaultStyle streets = { "mapbox://styles/mapbox/streets-v8", "Streets" };
|
||||
const DefaultStyle emerald = { "mapbox://styles/mapbox/emerald-v8", "Emerald" };
|
||||
const DefaultStyle light = { "mapbox://styles/mapbox/light-v8", "Light" };
|
||||
const DefaultStyle dark = { "mapbox://styles/mapbox/dark-v8", "Dark" };
|
||||
const DefaultStyle satellite = { "mapbox://styles/mapbox/satellite-v8", "Satellite" };
|
||||
const DefaultStyle hybrid = { "mapbox://styles/mapbox/satellite-hybrid-v8", "Hybrid" };
|
||||
const DefaultStyle streets = { "mapbox://styles/mapbox/streets-v9", "Streets" };
|
||||
const DefaultStyle outdoors = { "mapbox://styles/mapbox/outdoors-v9", "Outdoors" };
|
||||
const DefaultStyle light = { "mapbox://styles/mapbox/light-v9", "Light" };
|
||||
const DefaultStyle dark = { "mapbox://styles/mapbox/dark-v9", "Dark" };
|
||||
const DefaultStyle satellite = { "mapbox://styles/mapbox/satellite-v9", "Satellite" };
|
||||
const DefaultStyle hybrid = { "mapbox://styles/mapbox/satellite-hybrid-v9", "Hybrid" };
|
||||
|
||||
} // namespace default_styles
|
||||
} // end namespace util
|
||||
|
||||
Reference in New Issue
Block a user