[ios, macos] API doc revisions (#8396)
- Changed `make style-code-darwin` to `make darwin-style-code` in relevant files
- Added some doc clarifications:
- `MGLInterpolationModeExponential` and `MGLInterpolationModeInterval` can be used with `MGLCameraStyleFunction` (I am not sure how to accurately reflect this in the documentation for `MGLCompositeStyleFunction`)
- Do not add a style layer to the style property on a map view before the style has finished loading
- Create individual style layers from a `MGLShapeCollectionFeature`
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
@@ -229,6 +229,12 @@ MGL_EXPORT
|
||||
/**
|
||||
An `MGLShapeCollectionFeature` object associates a shape collection with an
|
||||
optional identifier and attributes.
|
||||
|
||||
`MGLShapeCollectionFeature` is most commonly used to add multiple shapes to a single
|
||||
`MGLShapeSource`. Configure the appearance of an `MGLSource`’s shape collection
|
||||
collectively using an `MGLSymbolStyleLayer` object, or use multiple instances of
|
||||
`MGLCircleStyleLayer`, `MGLFillStyleLayer`, and `MGLLineStyleLayer` to
|
||||
configure the appearance of each kind of shape inside the collection.
|
||||
|
||||
A shape collection feature is known as a
|
||||
<a href="https://tools.ietf.org/html/rfc7946#section-3.3">feature collection</a>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
@@ -18,6 +18,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
subclasses of this class. Instead, create instances of
|
||||
`MGLBackgroundStyleLayer` and the concrete subclasses of
|
||||
`MGLForegroundStyleLayer`.
|
||||
|
||||
Do not add `MGLStyleLayer` objects to the `style` property of a `MGLMapView` before
|
||||
`-mapView:didFinishLoadingStyle:` is called.
|
||||
*/
|
||||
MGL_EXPORT
|
||||
@interface MGLStyleLayer : NSObject
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
const enumProperties = locals.enumProperties;
|
||||
-%>
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is generated.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
|
||||
// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
|
||||
|
||||
#import "MGLFoundation.h"
|
||||
#import "MGLStyleValue.h"
|
||||
|
||||
Reference in New Issue
Block a user