#import "MGLGeometry.h" #import "MGLMapCamera.h" #import #import #import "MGLTypes.h" NS_ASSUME_NONNULL_BEGIN @class MGLAnnotationImage; @class MGLUserLocation; @class MGLPolyline; @class MGLPolygon; @class MGLShape; @protocol MGLMapViewDelegate; @protocol MGLAnnotation; @protocol MGLOverlay; /** An MGLMapView object provides an embeddable map interface, similar to the one provided by Apple's MapKit. You use this class to display map information and to manipulate the map contents from your application. You can center the map on a given coordinate, specify the size of the area you want to display, and style the features of the map to fit your application's use case. * * Use of MGLMapView requires a Mapbox API access token. Obtain an access token on the [Mapbox account page](https://www.mapbox.com/studio/account/tokens/). If you instantiate an MGLMapView from Interface Builder, rendering of the map won't begin until the accessToken property has been set. * * @warning Please note that you are responsible for getting permission to use the map data, and for ensuring your use adheres to the relevant terms of use. */ IB_DESIGNABLE @interface MGLMapView : UIView #pragma mark - Initializing a Map View /** @name Initializing a Map View */ /** Initializes and returns a newly allocated map view with the specified frame and the default style. * @param frame The frame for the view, measured in points. * @return An initialized map view. */ - (instancetype)initWithFrame:(CGRect)frame; /** Initializes and returns a newly allocated map view with the specified frame and style URL. * @param frame The frame for the view, measured in points. * @param styleURL The map style URL to use. Can be either an HTTP/HTTPS URL or a Mapbox map ID style URL (`mapbox://styles//