Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles. Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs. Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles. /ref #1462
16 lines
377 B
Objective-C
16 lines
377 B
Objective-C
#import "MGLAccountManager.h"
|
|
#import "MGLAnnotation.h"
|
|
#import "MGLAnnotationImage.h"
|
|
#import "MGLMapCamera.h"
|
|
#import "MGLGeometry.h"
|
|
#import "MGLMapView.h"
|
|
#import "MGLMultiPoint.h"
|
|
#import "MGLOverlay.h"
|
|
#import "MGLPointAnnotation.h"
|
|
#import "MGLPolygon.h"
|
|
#import "MGLPolyline.h"
|
|
#import "MGLShape.h"
|
|
#import "MGLStyle.h"
|
|
#import "MGLTypes.h"
|
|
#import "MGLUserLocation.h"
|