[build] add -fvisibility=hidden to macOS dynamic framework and export required symbols
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
The MGLAccountManager object provides a global way to set a Mapbox API access
|
||||
token.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLAccountManager : NSObject
|
||||
|
||||
#pragma mark Authorizing Access
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTypes.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -10,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
Information about an attribution statement, usually a copyright or trademark
|
||||
statement, associated with a map content source.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLAttributionInfo : NSObject
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLStyleLayer.h"
|
||||
|
||||
@@ -12,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
`style` and obtain the background layer using the `-[MGLStyle layerWithIdentifier:]`
|
||||
method and passing `background` for the identifier.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLBackgroundStyleLayer : MGLStyleLayer
|
||||
|
||||
- (instancetype)initWithIdentifier:(NSString *)identifier NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLVectorStyleLayer.h"
|
||||
|
||||
@@ -44,6 +45,7 @@ typedef NS_ENUM(NSUInteger, MGLCircleTranslateAnchor) {
|
||||
`MGLMapView` for its `style` and obtain existing layers using the
|
||||
`-[MGLStyle layerWithIdentifier:]` method.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLCircleStyleLayer : MGLVectorStyleLayer
|
||||
|
||||
#pragma mark - Accessing the Paint Attributes
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -14,6 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
irrespective of the user’s orientation, use `MGLCompassDirectionFormatter`
|
||||
instead.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLClockDirectionFormatter : NSFormatter
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -12,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
irrespective of the user’s current location. To format a direction relative to
|
||||
the user’s current location, use `MGLClockDirectionFormatter` instead.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLCompassDirectionFormatter : NSFormatter
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -8,6 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
geographic coordinate pairs. Use this class to create localized coordinate
|
||||
strings when displaying location information to users.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLCoordinateFormatter : NSFormatter
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLPolyline.h"
|
||||
#import "MGLPolygon.h"
|
||||
#import "MGLPointAnnotation.h"
|
||||
@@ -117,6 +118,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLPointFeature` class represents a point in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPointFeature : MGLPointAnnotation <MGLFeature>
|
||||
@end
|
||||
|
||||
@@ -124,6 +126,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLPolylineFeature` class represents a polyline in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPolylineFeature : MGLPolyline <MGLFeature>
|
||||
@end
|
||||
|
||||
@@ -131,6 +134,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLPolygonFeature` class represents a polygon in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPolygonFeature : MGLPolygon <MGLFeature>
|
||||
@end
|
||||
|
||||
@@ -138,6 +142,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLPointCollectionFeature` class represents a multipoint in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPointCollectionFeature : MGLPointCollection <MGLFeature>
|
||||
@end
|
||||
|
||||
@@ -145,6 +150,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLMultiPolylineFeature` class represents a multipolyline in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLMultiPolylineFeature : MGLMultiPolyline <MGLFeature>
|
||||
@end
|
||||
|
||||
@@ -152,6 +158,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLMultiPolygonFeature` class represents a multipolygon in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLMultiPolygonFeature : MGLMultiPolygon <MGLFeature>
|
||||
@end
|
||||
|
||||
@@ -159,6 +166,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLShapeCollectionFeature` class represents a shape collection in a
|
||||
<a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLShapeCollectionFeature : MGLShapeCollection <MGLFeature>
|
||||
|
||||
@property (nonatomic, copy, readonly) NS_ARRAY_OF(MGLShape<MGLFeature> *) *shapes;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLFeature.h"
|
||||
#import "MGLShape.h"
|
||||
|
||||
@@ -11,6 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
Returns an array of `MGLFeature` objects converted from the given vector of
|
||||
vector tile features.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
NS_ARRAY_OF(MGLShape <MGLFeature> *) *MGLFeaturesFromMBGLFeatures(const std::vector<mbgl::Feature> &features);
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLVectorStyleLayer.h"
|
||||
|
||||
@@ -28,6 +29,7 @@ typedef NS_ENUM(NSUInteger, MGLFillTranslateAnchor) {
|
||||
`MGLMapView` for its `style` and obtain existing layers using the
|
||||
`-[MGLStyle layerWithIdentifier:]` method.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLFillStyleLayer : MGLVectorStyleLayer
|
||||
|
||||
#pragma mark - Accessing the Paint Attributes
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleLayer.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -14,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
subclasses of this class. Instead, create instances of `MGLRasterStyleLayer`
|
||||
and the concrete subclasses of `MGLVectorStyleLayer`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLForegroundStyleLayer : MGLStyleLayer
|
||||
|
||||
#pragma mark Initializing a Style Layer
|
||||
|
||||
5
platform/darwin/src/MGLFoundation.h
Normal file
5
platform/darwin/src/MGLFoundation.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#define MGL_EXPORT __attribute__((visibility ("default")))
|
||||
@@ -2,6 +2,8 @@
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
#import <CoreGraphics/CGBase.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/** Defines the area spanned by an `MGLCoordinateBounds`. */
|
||||
@@ -33,7 +35,7 @@ NS_INLINE BOOL MGLCoordinateSpanEqualToCoordinateSpan(MGLCoordinateSpan span1, M
|
||||
}
|
||||
|
||||
/** An area of zero width and zero height. */
|
||||
extern const MGLCoordinateSpan MGLCoordinateSpanZero;
|
||||
extern MGL_EXPORT const MGLCoordinateSpan MGLCoordinateSpanZero;
|
||||
|
||||
/** A rectangular area as measured on a two-dimensional map projection. */
|
||||
typedef struct MGLCoordinateBounds {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#import "MGLGeometry_Private.h"
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
#import <mbgl/util/projection.hpp>
|
||||
|
||||
/** Vertical field of view, measured in degrees, for determining the altitude
|
||||
@@ -30,6 +32,7 @@ CGRect MGLExtendRect(CGRect rect, CGPoint point) {
|
||||
return rect;
|
||||
}
|
||||
|
||||
MGL_EXPORT
|
||||
CLLocationDistance MGLAltitudeForZoomLevel(double zoomLevel, CGFloat pitch, CLLocationDegrees latitude, CGSize size) {
|
||||
CLLocationDistance metersPerPixel = mbgl::Projection::getMetersPerPixelAtLatitude(latitude, zoomLevel);
|
||||
CLLocationDistance metersTall = metersPerPixel * size.height;
|
||||
@@ -37,6 +40,7 @@ CLLocationDistance MGLAltitudeForZoomLevel(double zoomLevel, CGFloat pitch, CLLo
|
||||
return altitude * std::sin(M_PI_2 - MGLRadiansFromDegrees(pitch)) / std::sin(M_PI_2);
|
||||
}
|
||||
|
||||
MGL_EXPORT
|
||||
double MGLZoomLevelForAltitude(CLLocationDistance altitude, CGFloat pitch, CLLocationDegrees latitude, CGSize size) {
|
||||
CLLocationDistance eyeAltitude = altitude / std::sin(M_PI_2 - MGLRadiansFromDegrees(pitch)) * std::sin(M_PI_2);
|
||||
CLLocationDistance metersTall = eyeAltitude * 2 * std::tan(MGLRadiansFromDegrees(MGLAngularFieldOfView) / 2.);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLVectorStyleLayer.h"
|
||||
|
||||
@@ -68,6 +69,7 @@ typedef NS_ENUM(NSUInteger, MGLLineTranslateAnchor) {
|
||||
`MGLMapView` for its `style` and obtain existing layers using the
|
||||
`-[MGLStyle layerWithIdentifier:]` method.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLLineStyleLayer : MGLVectorStyleLayer
|
||||
|
||||
#pragma mark - Accessing the Layout Attributes
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
An `MGLMapCamera` object represents a viewpoint from which the user observes
|
||||
some point on an `MGLMapView`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLMapCamera : NSObject <NSSecureCoding, NSCopying>
|
||||
|
||||
/** Coordinate at the center of the map view. */
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLShape.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -12,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
`MGLPolygon` classes. However, you can use the method and properties of this
|
||||
class to access information about the vertices of the line or polygon.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLMultiPoint : MGLShape
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLOfflineRegion.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -100,6 +101,7 @@ typedef struct MGLOfflinePackProgress {
|
||||
`+[MGLOfflineStorage addPackForRegion:withContext:completionHandler:]` method.
|
||||
A pack created using `-[MGLOfflinePack init]` is immediately invalid.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLOfflinePack : NSObject
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTypes.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -24,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
alternatively observe KVO change notifications to the pack’s `progress` key
|
||||
path.
|
||||
*/
|
||||
extern const NSNotificationName MGLOfflinePackProgressChangedNotification;
|
||||
extern MGL_EXPORT const NSNotificationName MGLOfflinePackProgressChangedNotification;
|
||||
|
||||
/**
|
||||
Posted by the shared `MGLOfflineStorage` object whenever an `MGLOfflinePack`
|
||||
@@ -37,7 +38,7 @@ extern const NSNotificationName MGLOfflinePackProgressChangedNotification;
|
||||
`userInfo` dictionary contains the error object in the
|
||||
`MGLOfflinePackErrorUserInfoKey` key.
|
||||
*/
|
||||
extern const NSNotificationName MGLOfflinePackErrorNotification;
|
||||
extern MGL_EXPORT const NSNotificationName MGLOfflinePackErrorNotification;
|
||||
|
||||
/**
|
||||
Posted by the shared `MGLOfflineStorage` object when the maximum number of
|
||||
@@ -52,7 +53,7 @@ extern const NSNotificationName MGLOfflinePackErrorNotification;
|
||||
calling the `-[MGLOfflineStorage removePack:withCompletionHandler:]` method.
|
||||
Contact your Mapbox sales representative to have the limit raised.
|
||||
*/
|
||||
extern const NSNotificationName MGLOfflinePackMaximumMapboxTilesReachedNotification;
|
||||
extern MGL_EXPORT const NSNotificationName MGLOfflinePackMaximumMapboxTilesReachedNotification;
|
||||
|
||||
/**
|
||||
A key in the `userInfo` property of a notification posted by `MGLOfflinePack`.
|
||||
@@ -65,9 +66,9 @@ typedef NSString *MGLOfflinePackUserInfoKey NS_EXTENSIBLE_STRING_ENUM;
|
||||
`MGLOfflinePackProgressChangedNotification` notification. Call `-integerValue`
|
||||
on the object to receive the `MGLOfflinePackState`-typed state.
|
||||
*/
|
||||
extern const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyState;
|
||||
extern MGL_EXPORT const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyState;
|
||||
|
||||
extern NSString * const MGLOfflinePackStateUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyState")));
|
||||
extern MGL_EXPORT NSString * const MGLOfflinePackStateUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyState")));
|
||||
|
||||
/**
|
||||
The key for an `NSValue` object that indicates an offline pack’s current
|
||||
@@ -76,9 +77,9 @@ extern NSString * const MGLOfflinePackStateUserInfoKey __attribute__((deprecated
|
||||
`-MGLOfflinePackProgressValue` on the object to receive the
|
||||
`MGLOfflinePackProgress`-typed progress.
|
||||
*/
|
||||
extern const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyProgress;
|
||||
extern MGL_EXPORT const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyProgress;
|
||||
|
||||
extern NSString * const MGLOfflinePackProgressUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyProgress")));
|
||||
extern MGL_EXPORT NSString * const MGLOfflinePackProgressUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyProgress")));
|
||||
|
||||
/**
|
||||
The key for an `NSError` object that is encountered in the course of
|
||||
@@ -86,9 +87,9 @@ extern NSString * const MGLOfflinePackProgressUserInfoKey __attribute__((depreca
|
||||
an `MGLOfflinePackErrorNotification` notification. The error’s domain is
|
||||
`MGLErrorDomain`. See `MGLErrorCode` for possible error codes.
|
||||
*/
|
||||
extern const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyError;
|
||||
extern MGL_EXPORT const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyError;
|
||||
|
||||
extern NSString * const MGLOfflinePackErrorUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyError")));
|
||||
extern MGL_EXPORT NSString * const MGLOfflinePackErrorUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyError")));
|
||||
|
||||
/**
|
||||
The key for an `NSNumber` object that indicates the maximum number of
|
||||
@@ -98,9 +99,9 @@ extern NSString * const MGLOfflinePackErrorUserInfoKey __attribute__((deprecated
|
||||
`-unsignedLongLongValue` on the object to receive the `uint64_t`-typed tile
|
||||
limit.
|
||||
*/
|
||||
extern const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyMaximumCount;
|
||||
extern MGL_EXPORT const MGLOfflinePackUserInfoKey MGLOfflinePackUserInfoKeyMaximumCount;
|
||||
|
||||
extern NSString * const MGLOfflinePackMaximumCountUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyMaximumCount")));
|
||||
extern MGL_EXPORT NSString * const MGLOfflinePackMaximumCountUserInfoKey __attribute__((deprecated("Use MGLOfflinePackUserInfoKeyMaximumCount")));
|
||||
|
||||
/**
|
||||
A block to be called once an offline pack has been completely created and
|
||||
@@ -135,6 +136,7 @@ typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError * _Nullable error
|
||||
fact that offline resources are stored in a database. The shared object
|
||||
maintains a canonical collection of offline packs in its `packs` property.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLOfflineStorage : NSObject
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLStyleLayer.h"
|
||||
|
||||
@@ -17,6 +18,7 @@ typedef struct MGLStyleLayerDrawingContext {
|
||||
CGFloat fieldOfView;
|
||||
} MGLStyleLayerDrawingContext;
|
||||
|
||||
MGL_EXPORT
|
||||
@interface MGLOpenGLStyleLayer : MGLStyleLayer
|
||||
|
||||
@property (nonatomic, weak, readonly) MGLMapView *mapView;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLShape.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -11,6 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
situations where all you want to do is associate a point on the map with a
|
||||
title.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPointAnnotation : MGLShape
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLOverlay.h"
|
||||
#import "MGLShape.h"
|
||||
|
||||
@@ -15,6 +16,7 @@
|
||||
to the map view's style, the point collection represents as a group of distinct
|
||||
annotations.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPointCollection : MGLShape <MGLOverlay>
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLMultiPoint.h"
|
||||
#import "MGLOverlay.h"
|
||||
|
||||
@@ -14,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
are provided. The first and last points are connected to each other to create
|
||||
the closed shape.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPolygon : MGLMultiPoint <MGLOverlay>
|
||||
|
||||
/**
|
||||
@@ -64,6 +66,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@note `MGLMultiPolygon` objects cannot be added to a map view using
|
||||
`-[MGLMapView addAnnotations:]` and related methods.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLMultiPolygon : MGLShape <MGLOverlay>
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLMultiPoint.h"
|
||||
#import "MGLOverlay.h"
|
||||
|
||||
@@ -14,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
the order they are provided. The first and last points are not connected to
|
||||
each other.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLPolyline : MGLMultiPoint <MGLOverlay>
|
||||
|
||||
/**
|
||||
@@ -39,6 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@note `MGLMultiPolyline` objects cannot be added to a map view using
|
||||
`-[MGLMapView addAnnotations:]` and related methods.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLMultiPolyline : MGLShape <MGLOverlay>
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#import "MGLTileSource.h"
|
||||
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTileSource.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -18,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
This option is only applicable to `MGLRasterSource` objects; it is ignored when
|
||||
initializing `MGLVectorSource` objects.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionTileSize;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionTileSize;
|
||||
|
||||
/**
|
||||
`MGLRasterSource` is a map content source that supplies raster image tiles to
|
||||
@@ -36,6 +37,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionTileSize;
|
||||
can also add and remove sources dynamically using methods such as
|
||||
`-[MGLStyle addSource:]` and `-[MGLStyle sourceWithIdentifier:]`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLRasterSource : MGLTileSource
|
||||
|
||||
#pragma mark Initializing a Source
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLForegroundStyleLayer.h"
|
||||
|
||||
@@ -12,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
`MGLMapView` for its `style` and obtain existing layers using the
|
||||
`-[MGLStyle layerWithIdentifier:]` method.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLRasterStyleLayer : MGLForegroundStyleLayer
|
||||
|
||||
#pragma mark - Accessing the Paint Attributes
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLAnnotation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -11,6 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
and providing an appropriate value for the coordinate property inherited from
|
||||
the `MGLAnnotation` protocol.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLShape : NSObject <MGLAnnotation>
|
||||
|
||||
#pragma mark Creating a Shape
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLShape.h"
|
||||
|
||||
#import "MGLTypes.h"
|
||||
@@ -14,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@note `MGLShapeCollection` objects cannot be added to a map view using
|
||||
`-[MGLMapView addAnnotations:]` and related methods.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLShapeCollection : MGLShape
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import "MGLSource.h"
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTypes.h"
|
||||
#import "MGLShape.h"
|
||||
|
||||
@@ -17,14 +18,14 @@ typedef NSString *MGLShapeSourceOption NS_STRING_ENUM;
|
||||
If the `shape` property contains point shapes, setting this option to
|
||||
`YES` clusters the points by radius into groups. The default value is `NO`.
|
||||
*/
|
||||
extern const MGLShapeSourceOption MGLShapeSourceOptionClustered;
|
||||
extern MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionClustered;
|
||||
|
||||
/**
|
||||
An `NSNumber` object containing an integer; specifies the radius of each
|
||||
cluster if clustering is enabled. A value of 512 produces a radius equal to
|
||||
the width of a tile. The default value is 50.
|
||||
*/
|
||||
extern const MGLShapeSourceOption MGLShapeSourceOptionClusterRadius;
|
||||
extern MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionClusterRadius;
|
||||
|
||||
/**
|
||||
An `NSNumber` object containing an integer; specifies the maximum zoom level at
|
||||
@@ -32,14 +33,14 @@ extern const MGLShapeSourceOption MGLShapeSourceOptionClusterRadius;
|
||||
less than the value of `MGLShapeSourceOptionMaximumZoomLevel` so that, at the
|
||||
maximum zoom level, the shapes are not clustered.
|
||||
*/
|
||||
extern const MGLShapeSourceOption MGLShapeSourceOptionMaximumZoomLevelForClustering;
|
||||
extern MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionMaximumZoomLevelForClustering;
|
||||
|
||||
/**
|
||||
An `NSNumber` object containing an integer; specifies the maximum zoom level at
|
||||
which to create vector tiles. A greater value produces greater detail at high
|
||||
zoom levels. The default value is 18.
|
||||
*/
|
||||
extern const MGLShapeSourceOption MGLShapeSourceOptionMaximumZoomLevel;
|
||||
extern MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionMaximumZoomLevel;
|
||||
|
||||
/**
|
||||
An `NSNumber` object containing an integer; specifies the size of the tile
|
||||
@@ -47,14 +48,14 @@ extern const MGLShapeSourceOption MGLShapeSourceOptionMaximumZoomLevel;
|
||||
buffer as wide as the tile itself. Larger values produce fewer rendering
|
||||
artifacts near tile edges and slower performance. The default value is 128.
|
||||
*/
|
||||
extern const MGLShapeSourceOption MGLShapeSourceOptionBuffer;
|
||||
extern MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionBuffer;
|
||||
|
||||
/**
|
||||
An `NSNumber` object containing a double; specifies the Douglas-Peucker
|
||||
simplification tolerance. A greater value produces simpler geometries and
|
||||
improves performance. The default value is 0.375.
|
||||
*/
|
||||
extern const MGLShapeSourceOption MGLShapeSourceOptionSimplificationTolerance;
|
||||
extern MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionSimplificationTolerance;
|
||||
|
||||
/**
|
||||
`MGLShapeSource` is a map content source that supplies vector shapes to be
|
||||
@@ -75,6 +76,7 @@ extern const MGLShapeSourceOption MGLShapeSourceOptionSimplificationTolerance;
|
||||
Any vector style layer initialized with a shape source should have a `nil`
|
||||
value in its `sourceLayerIdentifier` property.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLShapeSource : MGLSource
|
||||
|
||||
#pragma mark Initializing a Source
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLShapeSource.h"
|
||||
#import "MGLShapeSource_Private.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace mbgl {
|
||||
|
||||
@end
|
||||
|
||||
MGL_EXPORT
|
||||
mbgl::style::GeoJSONOptions MGLGeoJSONOptionsFromDictionary(NS_DICTIONARY_OF(MGLShapeSourceOption, id) *options);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -18,6 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
subclasses of this class. Instead, create instances of `MGLShapeSource` and the
|
||||
concrete subclasses of `MGLTileSource`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLSource : NSObject
|
||||
|
||||
#pragma mark Initializing a Source
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleLayer.h"
|
||||
|
||||
#import "MGLTypes.h"
|
||||
@@ -27,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
the constant itself. Such details may change significantly from version to
|
||||
version.
|
||||
*/
|
||||
static const NSInteger MGLStyleDefaultVersion = 9;
|
||||
static MGL_EXPORT const NSInteger MGLStyleDefaultVersion = 9;
|
||||
|
||||
/**
|
||||
The proxy object for the current map style.
|
||||
@@ -45,6 +46,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;
|
||||
or `-mapView:didFinishLoadingStyle:` as indicators that it's safe
|
||||
to modify the map's style.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLStyle : NSObject
|
||||
|
||||
#pragma mark Accessing Default Styles
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTypes.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -18,6 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
`MGLBackgroundStyleLayer` and the concrete subclasses of
|
||||
`MGLForegroundStyleLayer`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLStyleLayer : NSObject
|
||||
|
||||
#pragma mark Initializing a Style Layer
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGL<%-
|
||||
(type === 'background' ? '' :
|
||||
@@ -68,6 +69,7 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) {
|
||||
`-[MGLStyle layerWithIdentifier:]` method.
|
||||
*/
|
||||
<% } -%>
|
||||
MGL_EXPORT
|
||||
@interface MGL<%- camelize(type) %>StyleLayer : MGL<%-
|
||||
(type === 'background' ? '' :
|
||||
(type === 'raster' ? 'Foreground' :
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -25,6 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
<li>`NSArray`</li>
|
||||
</ul>
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLStyleValue<T> : NSObject
|
||||
|
||||
#pragma mark Creating a Style Value
|
||||
@@ -68,6 +71,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLStyleConstantValue` class takes a generic parameter `T` that indicates
|
||||
the Foundation class being wrapped by this class.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLStyleConstantValue<T> : MGLStyleValue<T>
|
||||
|
||||
#pragma mark Creating a Style Constant Value
|
||||
@@ -111,6 +115,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLStyleFunction` class takes a generic parameter `T` that indicates the
|
||||
Foundation class being wrapped by this class.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLStyleFunction<T> : MGLStyleValue<T>
|
||||
|
||||
#pragma mark Creating a Style Function
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
#import "MGLVectorStyleLayer.h"
|
||||
|
||||
@@ -228,6 +229,7 @@ typedef NS_ENUM(NSUInteger, MGLTextTranslateAnchor) {
|
||||
`MGLMapView` for its `style` and obtain existing layers using the
|
||||
`-[MGLStyle layerWithIdentifier:]` method.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLSymbolStyleLayer : MGLVectorStyleLayer
|
||||
|
||||
#pragma mark - Accessing the Layout Attributes
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLOfflineRegion.h"
|
||||
#import "MGLGeometry.h"
|
||||
|
||||
@@ -9,6 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
An offline region defined by a style URL, geographic coordinate bounds, and
|
||||
range of zoom levels.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLTilePyramidOfflineRegion : NSObject <MGLOfflineRegion, NSSecureCoding, NSCopying>
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLSource.h"
|
||||
#import "MGLTypes.h"
|
||||
|
||||
@@ -20,7 +21,7 @@ typedef NSString *MGLTileSourceOption NS_STRING_ENUM;
|
||||
`MGLTileSourceOptionMaximumZoomLevel`, if specified. The default value for this
|
||||
option is 0.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionMinimumZoomLevel;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionMinimumZoomLevel;
|
||||
|
||||
/**
|
||||
An `NSNumber` object containing an unsigned integer that specifies the maximum
|
||||
@@ -30,7 +31,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionMinimumZoomLevel;
|
||||
`MGLTileSourceOptionMinimumZoomLevel`, if specified. The default value for this
|
||||
option is 22.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionMaximumZoomLevel;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionMaximumZoomLevel;
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
/**
|
||||
@@ -42,7 +43,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionMaximumZoomLevel;
|
||||
`MGLTileSourceOptionAttributionInfos` option is specified, this option is
|
||||
ignored.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionAttributionHTMLString;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionAttributionHTMLString;
|
||||
|
||||
/**
|
||||
An array of `MGLAttributionInfo` objects defining the buttons to be displayed
|
||||
@@ -51,7 +52,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionAttributionHTMLString;
|
||||
|
||||
By default, no attribution statements are displayed.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionAttributionInfos;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionAttributionInfos;
|
||||
#else
|
||||
/**
|
||||
An HTML string defining the buttons to be displayed in the map view’s
|
||||
@@ -61,7 +62,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionAttributionInfos;
|
||||
`MGLTileSourceOptionAttributionInfos` option is specified, this option is
|
||||
ignored.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionAttributionHTMLString;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionAttributionHTMLString;
|
||||
|
||||
/**
|
||||
An array of `MGLAttributionInfo` objects defining the buttons to be displayed
|
||||
@@ -70,7 +71,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionAttributionHTMLString;
|
||||
|
||||
By default, no attribution statements are displayed.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionAttributionInfos;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionAttributionInfos;
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -80,7 +81,7 @@ extern const MGLTileSourceOption MGLTileSourceOptionAttributionInfos;
|
||||
|
||||
The default value for this option is `MGLTileCoordinateSystemXYZ`.
|
||||
*/
|
||||
extern const MGLTileSourceOption MGLTileSourceOptionTileCoordinateSystem;
|
||||
extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionTileCoordinateSystem;
|
||||
|
||||
/**
|
||||
Tile coordinate systems that determine how tile coordinates in tile URLs are
|
||||
@@ -119,6 +120,7 @@ typedef NS_ENUM(NSUInteger, MGLTileCoordinateSystem) {
|
||||
subclasses of this class. Instead, create instances of `MGLRasterSource` and
|
||||
`MGLVectorSource`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLTileSource : MGLSource
|
||||
|
||||
#pragma mark Initializing a Source
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#import "MGLTileSource.h"
|
||||
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTileSource.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
namespace mbgl {
|
||||
@@ -31,6 +32,7 @@ namespace mbgl {
|
||||
|
||||
@end
|
||||
|
||||
MGL_EXPORT
|
||||
mbgl::Tileset MGLTileSetFromTileURLTemplates(NS_ARRAY_OF(NSString *) *tileURLTemplates, NS_DICTIONARY_OF(MGLTileSourceOption, id) * _Nullable options);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
@@ -28,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
#endif
|
||||
|
||||
/** Indicates an error occurred in the Mapbox SDK. */
|
||||
extern NSErrorDomain const MGLErrorDomain;
|
||||
extern MGL_EXPORT NSErrorDomain const MGLErrorDomain;
|
||||
|
||||
/** Error constants for the Mapbox SDK. */
|
||||
typedef NS_ENUM(NSInteger, MGLErrorCode) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTileSource.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -25,6 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
layer initialized with a vector source must have a non-`nil` value in its
|
||||
`sourceLayerIdentifier` property.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLVectorSource : MGLTileSource
|
||||
|
||||
- (instancetype)initWithIdentifier:(NSString *)identifier configurationURL:(NSURL *)configurationURL NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLForegroundStyleLayer.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -13,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
subclasses: `MGLCircleStyleLayer`, `MGLFillStyleLayer`, `MGLLineStyleLayer`,
|
||||
and `MGLSymbolStyleLayer`.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLVectorStyleLayer : MGLForegroundStyleLayer
|
||||
|
||||
#pragma mark Refining a Style Layer’s Content
|
||||
|
||||
15
platform/darwin/test/MGLVersionNumber.m
Normal file
15
platform/darwin/test/MGLVersionNumber.m
Normal file
@@ -0,0 +1,15 @@
|
||||
#import <Mapbox/Mapbox.h>
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
@interface MGLVersionTests : XCTestCase
|
||||
|
||||
@end
|
||||
|
||||
@implementation MGLVersionTests
|
||||
|
||||
- (void)testVersionNumber {
|
||||
XCTAssertEqual(1, MapboxVersionNumber);
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -163,6 +163,9 @@
|
||||
40F887711D7A1E59008ECB67 /* MGLShapeSource_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 40F8876F1D7A1DB8008ECB67 /* MGLShapeSource_Private.h */; };
|
||||
40FDA76B1CCAAA6800442548 /* MBXAnnotationView.m in Sources */ = {isa = PBXBuildFile; fileRef = 40FDA76A1CCAAA6800442548 /* MBXAnnotationView.m */; };
|
||||
554180421D2E97DE00012372 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 554180411D2E97DE00012372 /* OpenGLES.framework */; };
|
||||
556660CA1E1BF3A900E2C41B /* MGLFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = 556660C91E1BF3A900E2C41B /* MGLFoundation.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
556660D81E1D085500E2C41B /* MGLVersionNumber.m in Sources */ = {isa = PBXBuildFile; fileRef = 556660D71E1D085500E2C41B /* MGLVersionNumber.m */; };
|
||||
556660DB1E1D8E8D00E2C41B /* MGLFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = 556660C91E1BF3A900E2C41B /* MGLFoundation.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
55D8C9961D0F18CE00F42F10 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 55D8C9951D0F18CE00F42F10 /* libsqlite3.tbd */; };
|
||||
7E016D7E1D9E86BE00A29A21 /* MGLPolyline+MGLAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E016D7C1D9E86BE00A29A21 /* MGLPolyline+MGLAdditions.h */; };
|
||||
7E016D7F1D9E86BE00A29A21 /* MGLPolyline+MGLAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E016D7C1D9E86BE00A29A21 /* MGLPolyline+MGLAdditions.h */; };
|
||||
@@ -609,6 +612,8 @@
|
||||
40FDA7691CCAAA6800442548 /* MBXAnnotationView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MBXAnnotationView.h; sourceTree = "<group>"; };
|
||||
40FDA76A1CCAAA6800442548 /* MBXAnnotationView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MBXAnnotationView.m; sourceTree = "<group>"; };
|
||||
554180411D2E97DE00012372 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
|
||||
556660C91E1BF3A900E2C41B /* MGLFoundation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGLFoundation.h; sourceTree = "<group>"; };
|
||||
556660D71E1D085500E2C41B /* MGLVersionNumber.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MGLVersionNumber.m; path = ../../darwin/test/MGLVersionNumber.m; sourceTree = "<group>"; };
|
||||
55D8C9941D0F133500F42F10 /* config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = config.xcconfig; path = ../../build/ios/config.xcconfig; sourceTree = "<group>"; };
|
||||
55D8C9951D0F18CE00F42F10 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
|
||||
7E016D7C1D9E86BE00A29A21 /* MGLPolyline+MGLAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MGLPolyline+MGLAdditions.h"; sourceTree = "<group>"; };
|
||||
@@ -1097,6 +1102,7 @@
|
||||
DA2E885F1CC0382C00F24E7B /* MGLOfflineStorageTests.m */,
|
||||
DA2E88601CC0382C00F24E7B /* MGLStyleTests.mm */,
|
||||
DD58A4C51D822BD000E1F038 /* MGLExpressionTests.mm */,
|
||||
556660D71E1D085500E2C41B /* MGLVersionNumber.m */,
|
||||
DA2E88551CC036F400F24E7B /* Info.plist */,
|
||||
DA2784FB1DF02FF4001D5B8D /* Media.xcassets */,
|
||||
);
|
||||
@@ -1135,6 +1141,7 @@
|
||||
DA00FC8C1D5EEB0D009AABC8 /* MGLAttributionInfo.h */,
|
||||
DAF0D8171DFE6B2800B28378 /* MGLAttributionInfo_Private.h */,
|
||||
DA00FC8D1D5EEB0D009AABC8 /* MGLAttributionInfo.mm */,
|
||||
556660C91E1BF3A900E2C41B /* MGLFoundation.h */,
|
||||
DA8847E21CBAFA5100AB86E3 /* MGLMapCamera.h */,
|
||||
DA8848031CBAFA6200AB86E3 /* MGLMapCamera.mm */,
|
||||
DD0902A41DB18F1B00C5BDCE /* MGLNetworkConfiguration.h */,
|
||||
@@ -1442,6 +1449,7 @@
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
556660DB1E1D8E8D00E2C41B /* MGLFoundation.h in Headers */,
|
||||
35D13AC31D3D19DD00AFB4E0 /* MGLFillStyleLayer.h in Headers */,
|
||||
DA88483A1CBAFB8500AB86E3 /* MGLAnnotationImage.h in Headers */,
|
||||
DA35A2BB1CCA9A6900E826B2 /* MGLClockDirectionFormatter.h in Headers */,
|
||||
@@ -1555,6 +1563,7 @@
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
556660CA1E1BF3A900E2C41B /* MGLFoundation.h in Headers */,
|
||||
4032C5C01DE1FC780062E8BD /* NSValue+MGLStyleEnumAttributeAdditions.h in Headers */,
|
||||
35B82BF91D6C5F8400B1B721 /* NSPredicate+MGLAdditions.h in Headers */,
|
||||
DA35A2CA1CCAAAD200E826B2 /* NSValue+MGLAdditions.h in Headers */,
|
||||
@@ -1962,6 +1971,7 @@
|
||||
353D23961D0B0DFE002BE09D /* MGLAnnotationViewTests.m in Sources */,
|
||||
35E208A71D24210F00EC9A46 /* MGLNSDataAdditionsTests.m in Sources */,
|
||||
DA0CD5901CF56F6A00A5F5A5 /* MGLFeatureTests.mm in Sources */,
|
||||
556660D81E1D085500E2C41B /* MGLVersionNumber.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -2432,7 +2442,7 @@
|
||||
PRODUCT_NAME = Mapbox;
|
||||
SKIP_INSTALL = YES;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -2465,7 +2475,7 @@
|
||||
PRODUCT_NAME = Mapbox;
|
||||
SKIP_INSTALL = YES;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -2513,6 +2523,7 @@
|
||||
PRODUCT_NAME = Mapbox;
|
||||
PUBLIC_HEADERS_FOLDER_PATH = Headers;
|
||||
SKIP_INSTALL = YES;
|
||||
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -2538,6 +2549,7 @@
|
||||
PRODUCT_NAME = Mapbox;
|
||||
PUBLIC_HEADERS_FOLDER_PATH = Headers;
|
||||
SKIP_INSTALL = YES;
|
||||
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
/// Project version number for Mapbox.
|
||||
FOUNDATION_EXPORT double MapboxVersionNumber;
|
||||
FOUNDATION_EXPORT MGL_EXPORT double MapboxVersionNumber;
|
||||
|
||||
/// Project version string for Mapbox.
|
||||
FOUNDATION_EXPORT const unsigned char MapboxVersionString[];
|
||||
FOUNDATION_EXPORT MGL_EXPORT const unsigned char MapboxVersionString[];
|
||||
|
||||
#import "MGLAnnotationView.h"
|
||||
#import "MGLAccountManager.h"
|
||||
|
||||
@@ -9,8 +9,6 @@ mason_use(icu VERSION 58.1)
|
||||
include(cmake/loop-darwin.cmake)
|
||||
|
||||
macro(mbgl_platform_core)
|
||||
set_xcode_property(mbgl-core GCC_SYMBOLS_PRIVATE_EXTERN YES)
|
||||
|
||||
target_sources(mbgl-core
|
||||
# File source
|
||||
PRIVATE platform/darwin/src/http_file_source.mm
|
||||
@@ -62,6 +60,7 @@ macro(mbgl_platform_core)
|
||||
|
||||
target_compile_options(mbgl-core
|
||||
PRIVATE -fobjc-arc
|
||||
PRIVATE -fvisibility=hidden
|
||||
)
|
||||
|
||||
target_include_directories(mbgl-core
|
||||
@@ -85,8 +84,6 @@ endmacro()
|
||||
|
||||
|
||||
macro(mbgl_platform_render)
|
||||
set_xcode_property(mbgl-render GCC_SYMBOLS_PRIVATE_EXTERN YES)
|
||||
|
||||
target_link_libraries(mbgl-render
|
||||
PRIVATE mbgl-loop
|
||||
PRIVATE "-framework Foundation"
|
||||
@@ -100,8 +97,6 @@ endmacro()
|
||||
|
||||
|
||||
macro(mbgl_platform_offline)
|
||||
set_xcode_property(mbgl-offline GCC_SYMBOLS_PRIVATE_EXTERN YES)
|
||||
|
||||
target_link_libraries(mbgl-offline
|
||||
PRIVATE mbgl-loop
|
||||
PRIVATE "-framework Foundation"
|
||||
@@ -115,8 +110,6 @@ endmacro()
|
||||
|
||||
|
||||
macro(mbgl_platform_test)
|
||||
set_xcode_property(mbgl-test GCC_SYMBOLS_PRIVATE_EXTERN YES)
|
||||
|
||||
target_sources(mbgl-test
|
||||
PRIVATE test/src/main.cpp
|
||||
)
|
||||
@@ -127,6 +120,10 @@ macro(mbgl_platform_test)
|
||||
COMPILE_FLAGS -DWORK_DIRECTORY="${CMAKE_SOURCE_DIR}"
|
||||
)
|
||||
|
||||
target_compile_options(mbgl-test
|
||||
PRIVATE -fvisibility=hidden
|
||||
)
|
||||
|
||||
target_link_libraries(mbgl-test
|
||||
PRIVATE mbgl-loop
|
||||
PRIVATE "-framework Foundation"
|
||||
@@ -139,7 +136,9 @@ macro(mbgl_platform_test)
|
||||
endmacro()
|
||||
|
||||
macro(mbgl_platform_benchmark)
|
||||
set_xcode_property(mbgl-benchmark GCC_SYMBOLS_PRIVATE_EXTERN YES)
|
||||
target_compile_options(mbgl-benchmark
|
||||
PRIVATE -fvisibility=hidden
|
||||
)
|
||||
|
||||
target_sources(mbgl-benchmark
|
||||
PRIVATE benchmark/src/main.cpp
|
||||
@@ -163,7 +162,9 @@ macro(mbgl_platform_benchmark)
|
||||
endmacro()
|
||||
|
||||
macro(mbgl_platform_node)
|
||||
set_xcode_property(mbgl-node GCC_SYMBOLS_PRIVATE_EXTERN YES)
|
||||
target_compile_options(mbgl-node
|
||||
PRIVATE -fvisibility=hidden
|
||||
)
|
||||
|
||||
target_link_libraries(mbgl-node
|
||||
PRIVATE "-framework Foundation"
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
40E1601D1DF217D6005EA6D9 /* MGLStyleLayerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 40E1601B1DF216E6005EA6D9 /* MGLStyleLayerTests.m */; };
|
||||
52BECB0A1CC5A26F009CD791 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52BECB091CC5A26F009CD791 /* SystemConfiguration.framework */; };
|
||||
5548BE781D09E718005DDE81 /* libmbgl-core.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DAE6C3451CC31D1200DB3429 /* libmbgl-core.a */; };
|
||||
556660C61E1BEA0100E2C41B /* MGLFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = 556660C51E1BEA0100E2C41B /* MGLFoundation.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
556660D61E1D07E400E2C41B /* MGLVersionNumber.m in Sources */ = {isa = PBXBuildFile; fileRef = 556660D51E1D07E400E2C41B /* MGLVersionNumber.m */; };
|
||||
558F18221D0B13B100123F46 /* libmbgl-loop.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 558F18211D0B13B000123F46 /* libmbgl-loop.a */; };
|
||||
55D9B4B11D005D3900C1CCE2 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 55D9B4B01D005D3900C1CCE2 /* libz.tbd */; };
|
||||
DA00FC8A1D5EEAC3009AABC8 /* MGLAttributionInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = DA00FC881D5EEAC3009AABC8 /* MGLAttributionInfo.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
@@ -305,6 +307,8 @@
|
||||
52BECB091CC5A26F009CD791 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
|
||||
5548BE791D0ACBB2005DDE81 /* libmbgl-loop-darwin.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libmbgl-loop-darwin.a"; path = "cmake/Debug/libmbgl-loop-darwin.a"; sourceTree = "<group>"; };
|
||||
5548BE7B1D0ACBBD005DDE81 /* libmbgl-loop-darwin.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libmbgl-loop-darwin.a"; path = "cmake/Debug/libmbgl-loop-darwin.a"; sourceTree = "<group>"; };
|
||||
556660C51E1BEA0100E2C41B /* MGLFoundation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGLFoundation.h; sourceTree = "<group>"; };
|
||||
556660D51E1D07E400E2C41B /* MGLVersionNumber.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MGLVersionNumber.m; path = ../../darwin/test/MGLVersionNumber.m; sourceTree = "<group>"; };
|
||||
558F18211D0B13B000123F46 /* libmbgl-loop.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libmbgl-loop.a"; path = "../../build/osx/Debug/libmbgl-loop.a"; sourceTree = "<group>"; };
|
||||
55D9B4B01D005D3900C1CCE2 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
|
||||
55FE0E8D1D100A0900FD240B /* config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = config.xcconfig; path = ../../build/macos/config.xcconfig; sourceTree = "<group>"; };
|
||||
@@ -882,6 +886,7 @@
|
||||
DAE6C3CB1CC34BD800DB3429 /* MGLOfflineStorageTests.m */,
|
||||
DAE6C3CC1CC34BD800DB3429 /* MGLStyleTests.mm */,
|
||||
DD58A4C71D822C6200E1F038 /* MGLExpressionTests.mm */,
|
||||
556660D51E1D07E400E2C41B /* MGLVersionNumber.m */,
|
||||
DAE6C33A1CC30DB200DB3429 /* Info.plist */,
|
||||
DA2784FD1DF03060001D5B8D /* Media.xcassets */,
|
||||
);
|
||||
@@ -903,6 +908,7 @@
|
||||
DA00FC881D5EEAC3009AABC8 /* MGLAttributionInfo.h */,
|
||||
DAF0D8151DFE6B1800B28378 /* MGLAttributionInfo_Private.h */,
|
||||
DA00FC891D5EEAC3009AABC8 /* MGLAttributionInfo.mm */,
|
||||
556660C51E1BEA0100E2C41B /* MGLFoundation.h */,
|
||||
DAE6C34D1CC31E0400DB3429 /* MGLMapCamera.h */,
|
||||
DAE6C36E1CC31E2A00DB3429 /* MGLMapCamera.mm */,
|
||||
DD0902B01DB1AC6400C5BDCE /* MGLNetworkConfiguration.h */,
|
||||
@@ -957,6 +963,7 @@
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
556660C61E1BEA0100E2C41B /* MGLFoundation.h in Headers */,
|
||||
DA8F258F1D51CA600010E6B5 /* MGLRasterStyleLayer.h in Headers */,
|
||||
3508EC641D749D39009B0EE4 /* NSExpression+MGLAdditions.h in Headers */,
|
||||
DAE6C38D1CC31E2A00DB3429 /* MGLOfflineRegion_Private.h in Headers */,
|
||||
@@ -1322,6 +1329,7 @@
|
||||
3599A3E81DF70E2000E77FB2 /* MGLStyleValueTests.m in Sources */,
|
||||
DAEDC4321D6033F1000224FF /* MGLAttributionInfoTests.m in Sources */,
|
||||
DA0CD58E1CF56F5800A5F5A5 /* MGLFeatureTests.mm in Sources */,
|
||||
556660D61E1D07E400E2C41B /* MGLVersionNumber.m in Sources */,
|
||||
DA2207BC1DC076940002F84D /* MGLStyleValueTests.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@@ -1489,6 +1497,7 @@
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/app/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
OTHER_CFLAGS = "-fvisibility=hidden";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.MapboxGL;
|
||||
PRODUCT_NAME = "Mapbox GL";
|
||||
};
|
||||
@@ -1501,6 +1510,7 @@
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/app/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
OTHER_CFLAGS = "-fvisibility=hidden";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.MapboxGL;
|
||||
PRODUCT_NAME = "Mapbox GL";
|
||||
};
|
||||
@@ -1542,7 +1552,6 @@
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
FRAMEWORK_VERSION = A;
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(mbgl_core_INCLUDE_DIRECTORIES)",
|
||||
"$(mbgl_loop_INCLUDE_DIRECTORIES)",
|
||||
@@ -1550,6 +1559,7 @@
|
||||
INFOPLIST_FILE = "$(SRCROOT)/sdk/Info.plist";
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
OTHER_CFLAGS = "-fvisibility=hidden";
|
||||
OTHER_LDFLAGS = (
|
||||
"$(mbgl_core_LINK_LIBRARIES)",
|
||||
"$(mbgl_loop_LINK_LIBRARIES)",
|
||||
@@ -1558,7 +1568,7 @@
|
||||
PRODUCT_NAME = Mapbox;
|
||||
SKIP_INSTALL = YES;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1575,7 +1585,6 @@
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
FRAMEWORK_VERSION = A;
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(mbgl_core_INCLUDE_DIRECTORIES)",
|
||||
"$(mbgl_loop_INCLUDE_DIRECTORIES)",
|
||||
@@ -1583,6 +1592,7 @@
|
||||
INFOPLIST_FILE = "$(SRCROOT)/sdk/Info.plist";
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
OTHER_CFLAGS = "-fvisibility=hidden";
|
||||
OTHER_LDFLAGS = (
|
||||
"$(mbgl_core_LINK_LIBRARIES)",
|
||||
"$(mbgl_loop_LINK_LIBRARIES)",
|
||||
@@ -1592,7 +1602,7 @@
|
||||
SKIP_INSTALL = YES;
|
||||
STRIP_STYLE = "non-global";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
@@ -8,6 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
`NSImage` objects with annotation-related metadata. They may be recycled later
|
||||
and put into a reuse queue that is maintained by the map view.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLAnnotationImage : NSObject
|
||||
|
||||
#pragma mark Initializing and Preparing the Image Object
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTypes.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -7,6 +8,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@class MGLAttributionInfo;
|
||||
|
||||
/// Button that looks like a hyperlink and opens a URL.
|
||||
MGL_EXPORT
|
||||
@interface MGLAttributionButton : NSButton
|
||||
|
||||
/// Returns an `MGLAttributionButton` instance with the given info.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLTypes.h"
|
||||
#import "MGLGeometry.h"
|
||||
|
||||
@@ -47,7 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@note You are responsible for getting permission to use the map data and for
|
||||
ensuring that your use adheres to the relevant terms of use.
|
||||
*/
|
||||
IB_DESIGNABLE
|
||||
MGL_EXPORT IB_DESIGNABLE
|
||||
@interface MGLMapView : NSView
|
||||
|
||||
#pragma mark Creating Instances
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
|
||||
/// Project version number for Mapbox.
|
||||
FOUNDATION_EXPORT double MapboxVersionNumber;
|
||||
FOUNDATION_EXPORT MGL_EXPORT double MapboxVersionNumber;
|
||||
|
||||
/// Project version string for Mapbox.
|
||||
FOUNDATION_EXPORT const unsigned char MapboxVersionString[];
|
||||
FOUNDATION_EXPORT MGL_EXPORT const unsigned char MapboxVersionString[];
|
||||
|
||||
#import "MGLAccountManager.h"
|
||||
#import "MGLAnnotation.h"
|
||||
|
||||
Reference in New Issue
Block a user