-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c109610
commit b09e9d1
Showing
54 changed files
with
4,885 additions
and
373 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "MGLTypes.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <CoreGraphics/CoreGraphics.h> | ||
#import <CoreLocation/CoreLocation.h> | ||
|
||
#import "MGLTypes.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
Information about an attribution statement, usually a copyright or trademark | ||
statement, associated with a map content source. | ||
*/ | ||
@interface MGLAttributionInfo : NSObject | ||
|
||
/** | ||
Returns an initialized attribution info object with the given title and URL. | ||
@param title The attribution statement’s title. | ||
@param URL A URL to more information about the entity named in the attribution. | ||
@return An initialized attribution info object. | ||
*/ | ||
- (instancetype)initWithTitle:(NSAttributedString *)title URL:(nullable NSURL *)URL; | ||
|
||
/** | ||
The attribution statement’s attributed title text. | ||
*/ | ||
@property (nonatomic) NSAttributedString *title; | ||
|
||
/** | ||
The URL to more information about the entity named in the attribution. | ||
If this property is set, the attribution statement should be displayed as a | ||
hyperlink or action button. Otherwise, if it is `nil`, the attribution | ||
statement should be displayed as plain text. | ||
*/ | ||
@property (nonatomic, nullable) NSURL *URL; | ||
|
||
/** | ||
A Boolean value indicating whether the attribution statement is a shortcut to a | ||
feedback tool. | ||
If this property is set, the statement should be treated as a way for the user | ||
to provide feedback rather than an attribution statement. | ||
*/ | ||
@property (nonatomic, getter=isFeedbackLink) BOOL feedbackLink; | ||
|
||
/** | ||
Returns a copy of the `URL` property modified to account for the given center | ||
coordinate and zoom level. | ||
@param centerCoordinate The map’s center coordinate. | ||
@param zoomLevel The map’s zoom level. See the `MGLMapView.zoomLevel` property | ||
for more information. | ||
@return A modified URL containing a fragment that points to the specified | ||
viewport. If the `feedbackLink` property is set to `NO`, this method returns | ||
`nil`. | ||
*/ | ||
- (nullable NSURL *)feedbackURLAtCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate zoomLevel:(double)zoomLevel; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// This file is generated. | ||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`. | ||
|
||
#import "MGLStyleValue.h" | ||
#import "MGLStyleLayer.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
An `MGLBackgroundStyleLayer` is a style layer that covers the entire map. Use a | ||
background style layer to configure a color or pattern to show below all other | ||
map content. If the style’s other layers use the Mapbox Streets source, the | ||
background style layer is responsible for drawing land, whereas the oceans and | ||
other bodies of water are drawn by `MGLFillStyleLayer` objects. | ||
A background style layer is typically the bottommost layer in a style, because | ||
it covers the entire map and can occlude any layers below it. You can therefore | ||
access it by getting the last item in the `MGLStyle.layers` array. | ||
If the background style layer is transparent or omitted from the style, any | ||
portion of the map view that does not show another style layer is transparent. | ||
*/ | ||
@interface MGLBackgroundStyleLayer : MGLStyleLayer | ||
|
||
- (instancetype)initWithIdentifier:(NSString *)identifier NS_DESIGNATED_INITIALIZER; | ||
|
||
#pragma mark - Accessing the Paint Attributes | ||
|
||
#if TARGET_OS_IPHONE | ||
/** | ||
The color with which the background will be drawn. | ||
The default value of this property is an `MGLStyleValue` object containing | ||
`UIColor.blackColor`. Set this property to `nil` to reset it to the default | ||
value. | ||
This property is only applied to the style if `backgroundPattern` is set to | ||
`nil`. Otherwise, it is ignored. | ||
*/ | ||
@property (nonatomic, null_resettable) MGLStyleValue<UIColor *> *backgroundColor; | ||
#else | ||
/** | ||
The color with which the background will be drawn. | ||
The default value of this property is an `MGLStyleValue` object containing | ||
`NSColor.blackColor`. Set this property to `nil` to reset it to the default | ||
value. | ||
This property is only applied to the style if `backgroundPattern` is set to | ||
`nil`. Otherwise, it is ignored. | ||
*/ | ||
@property (nonatomic, null_resettable) MGLStyleValue<NSColor *> *backgroundColor; | ||
#endif | ||
|
||
/** | ||
The opacity at which the background will be drawn. | ||
The default value of this property is an `MGLStyleValue` object containing an | ||
`NSNumber` object containing the float `1`. Set this property to `nil` to reset | ||
it to the default value. | ||
*/ | ||
@property (nonatomic, null_resettable) MGLStyleValue<NSNumber *> *backgroundOpacity; | ||
|
||
/** | ||
Name of image in style images to use for drawing an image background. For | ||
seamless patterns, image width and height must be a factor of two (2, 4, 8, | ||
..., 512). | ||
*/ | ||
@property (nonatomic, null_resettable) MGLStyleValue<NSString *> *backgroundPattern; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.