| In the tile source | This property |
|---|---|
| Integer | NSNumber (use the
- unsignedLongLongValue or longLongValue property) |
| Floating-point number | NSNumber (use the doubleValue
- property) |
| String | NSString |
| In the tile source | In this dictionary |
|---|---|
| Null | NSNull |
| Boolean | NSNumber (use the boolValue
- property) |
| Integer | NSNumber (use the
- unsignedLongLongValue or longLongValue property) |
| Floating-point number | NSNumber (use the doubleValue
- property) |
| String | NSString |
image
source defined by the style JSON file is represented at runtime by an
- `MLNImageSource` object that you can use to initialize new style layers. You
+ ``MLNImageSource`` object that you can use to initialize new style layers. You
can also add and remove sources dynamically using methods such as
- `-[MLNStyle addSource:]` and `-[MLNStyle sourceWithIdentifier:]`.
+ ``MLNStyle/addSource:`` and ``MLNStyle/sourceWithIdentifier:``.
### Example
@@ -43,7 +43,7 @@ MLN_EXPORT
```
#### Related examples
- TODO: Add an image, learn how to add an image to your map using `MLNImageSource`.
+ TODO: Add an image, learn how to add an image to your map using ``MLNImageSource``.
*/
MLN_EXPORT
@interface MLNImageSource : MLNSource
diff --git a/platform/darwin/src/MLNLight.h.ejs b/platform/darwin/src/MLNLight.h.ejs
index 73fd0afd8..00c56b8bf 100644
--- a/platform/darwin/src/MLNLight.h.ejs
+++ b/platform/darwin/src/MLNLight.h.ejs
@@ -36,8 +36,8 @@ typedef NS_ENUM(NSUInteger, MLNLight<%- camelize(property.name) %>) {
typedef struct __attribute__((objc_boxable)) MLNSphericalPosition {
/** Distance from the center of the base of an object to its light. */
CGFloat radial;
- /** Position of the light relative to 0° (0° when `MLNLight.anchor` is set to viewport corresponds
- to the top of the viewport, or 0° when `MLNLight.anchor` is set to map corresponds to due north,
+ /** Position of the light relative to 0° (0° when ``MLNLight/anchor`` is set to viewport corresponds
+ to the top of the viewport, or 0° when ``MLNLight/anchor`` is set to map corresponds to due north,
and degrees proceed clockwise). */
CLLocationDirection azimuthal;
/** Indicates the height of the light (from 0°, directly above, to 180°, directly below). */
@@ -45,13 +45,13 @@ typedef struct __attribute__((objc_boxable)) MLNSphericalPosition {
} MLNSphericalPosition;
/**
- Creates a new `MLNSphericalPosition` from the given radial, azimuthal, polar.
+ Creates a new ``MLNSphericalPosition`` from the given radial, azimuthal, polar.
@param radial The radial coordinate.
@param azimuthal The azimuthal angle.
@param polar The polar angle.
- @return Returns a `MLNSphericalPosition` struct containing the position attributes.
+ @return Returns a ``MLNSphericalPosition`` struct containing the position attributes.
*/
NS_INLINE MLNSphericalPosition MLNSphericalPositionMake(CGFloat radial, CLLocationDirection azimuthal, CLLocationDirection polar) {
MLNSphericalPosition position;
diff --git a/platform/darwin/src/MLNLight_Private.h b/platform/darwin/src/MLNLight_Private.h
index 4882bb810..f2c6f451d 100644
--- a/platform/darwin/src/MLNLight_Private.h
+++ b/platform/darwin/src/MLNLight_Private.h
@@ -11,12 +11,12 @@ class Light;
@interface MLNLight (Private)
/**
- Initializes and returns a `MLNLight` associated with a style's light.
+ Initializes and returns a ``MLNLight`` associated with a style's light.
*/
- (instancetype)initWithMBGLLight:(const mbgl::style::Light *)mbglLight;
/**
- Returns an `mbgl::style::Light` representation of the `MLNLight`.
+ Returns an `mbgl::style::Light` representation of the ``MLNLight``.
*/
- (mbgl::style::Light)mbglLight;
diff --git a/platform/darwin/src/MLNLocationManager.h b/platform/darwin/src/MLNLocationManager.h
index 760f5e96c..d0b5a6f78 100644
--- a/platform/darwin/src/MLNLocationManager.h
+++ b/platform/darwin/src/MLNLocationManager.h
@@ -6,15 +6,15 @@ NS_ASSUME_NONNULL_BEGIN
@protocol MLNLocationManagerDelegate;
/**
- The `MLNLocationManager` protocol defines a set of methods that a class must
- implement in order to serve as the location manager of an `MLNMapView`. A location
+ The ``MLNLocationManager`` protocol defines a set of methods that a class must
+ implement in order to serve as the location manager of an ``MLNMapView``. A location
manager is responsible for notifying the map view about location-related events,
such as a change in the user’s location. This protocol is similar to the
Core Location framework’s `CLLocationManager` class, but your implementation
does not need to be based on `CLLocationManager`.
- To receive location updates from an object that conforms to the `MLNLocationManager`
- protocol, use the optional methods available in the `MLNLocationManagerDelegate` protocol.
+ To receive location updates from an object that conforms to the ``MLNLocationManager``
+ protocol, use the optional methods available in the ``MLNLocationManagerDelegate`` protocol.
*/
@protocol MLNLocationManager raster-dem
source defined by the style JSON file is represented at runtime by an
- `MLNRasterDEMSource` object that you can use to initialize new style layers.
+ ``MLNRasterDEMSource`` object that you can use to initialize new style layers.
You can also add and remove sources dynamically using methods such as
- `-[MLNStyle addSource:]` and `-[MLNStyle sourceWithIdentifier:]`.
+ ``MLNStyle/addSource:`` and ``MLNStyle/sourceWithIdentifier:``.
Currently, raster DEM sources only support the format used by
TileJSON specification.
- A raster tile source is added to an `MLNStyle` object along with one or more
- `MLNRasterStyleLayer` objects. Use a raster style layer to control the
+ A raster tile source is added to an ``MLNStyle`` object along with one or more
+ ``MLNRasterStyleLayer`` objects. Use a raster style layer to control the
appearance of content supplied by the raster tile source.
Each
raster
source defined by the style JSON file is represented at runtime by an
- `MLNRasterTileSource` object that you can use to initialize new style layers. You
+ ``MLNRasterTileSource`` object that you can use to initialize new style layers. You
can also add and remove sources dynamically using methods such as
- `-[MLNStyle addSource:]` and `-[MLNStyle sourceWithIdentifier:]`.
+ ``MLNStyle/addSource:`` and ``MLNStyle/sourceWithIdentifier:``.
### Example
@@ -55,8 +55,8 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNTileSourceOption MLNTileSourceOptionTileSi
```
#### Related examples
- TODO: Add raster imagery, learn how to add a `MLNRasterStyleLayer`
- to your map using an `MLNRasterTileSource`.
+ TODO: Add raster imagery, learn how to add a ``MLNRasterStyleLayer``
+ to your map using an ``MLNRasterTileSource``.
*/
MLN_EXPORT
@interface MLNRasterTileSource : MLNTileSource
@@ -68,7 +68,7 @@ MLN_EXPORT
URL.
After initializing and configuring the source, add it to a map view’s style
- using the `-[MLNStyle addSource:]` method.
+ using the ``MLNStyle/addSource:`` method.
The URL may be a full HTTP or HTTPS URL or canonical URL. The URL should
point to a JSON file that conforms to the
@@ -76,7 +76,7 @@ MLN_EXPORT
If a Mapbox URL is specified, this source uses a tile size of 256. For all
other tilesets, the default value is 512. (See the
- `MLNTileSourceOptionTileSize` documentation for more information about tile
+ ``MLNTileSourceOptionTileSize`` documentation for more information about tile
sizes.) If you need to use a tile size other than the default, use the
`-initWithIdentifier:configurationURL:tileSize:` method.
@@ -94,7 +94,7 @@ MLN_EXPORT
and tile size.
After initializing and configuring the source, add it to a map view’s style
- using the `-[MLNStyle addSource:]` method.
+ using the ``MLNStyle/addSource:`` method.
The URL may be a full HTTP or HTTPS URL or, canonical URL. The URL should
point to a JSON file that conforms to the
@@ -105,7 +105,7 @@ MLN_EXPORT
@param configurationURL A URL to a TileJSON configuration file describing the
source’s contents and other metadata.
@param tileSize The width and height (measured in points) of each tiled image
- in the raster tile source. See the `MLNTileSourceOptionTileSize`
+ in the raster tile source. See the ``MLNTileSourceOptionTileSize``
documentation for details.
@return An initialized raster tile source.
*/
@@ -122,14 +122,14 @@ MLN_EXPORT
guide for information about the format of a tile URL template.
After initializing and configuring the source, add it to a map view’s style
- using the `-[MLNStyle addSource:]` method.
+ using the ``MLNStyle/addSource:`` method.
@param identifier A string that uniquely identifies the source in the style to
which it is added.
@param tileURLTemplates An array of tile URL template strings. Only the first
string is used; any additional strings are ignored.
@param options A dictionary containing configuration options. See
- `MLNTileSourceOption` for available keys and values. Pass in `nil` to use
+ ``MLNTileSourceOption`` for available keys and values. Pass in `nil` to use
the default values.
@return An initialized tile source.
*/
diff --git a/platform/darwin/src/MLNRendererConfiguration.h b/platform/darwin/src/MLNRendererConfiguration.h
index 3bda166ab..b99bd6731 100644
--- a/platform/darwin/src/MLNRendererConfiguration.h
+++ b/platform/darwin/src/MLNRendererConfiguration.h
@@ -20,7 +20,7 @@ MLN_EXPORT
/** The name of the font family to use for client-side text rendering of CJK ideographs.
- Set MLNIdeographicFontFamilyName in your containing application's Info.plist to
+ Set `MLNIdeographicFontFamilyName` in your containing application's Info.plist to
font family name(s) that will be available at run time, such as “PingFang TC”
or “Marker Felt”. This plist key accepts:
diff --git a/platform/darwin/src/MLNSettings.h b/platform/darwin/src/MLNSettings.h
index 66cc0c7f5..72a628983 100644
--- a/platform/darwin/src/MLNSettings.h
+++ b/platform/darwin/src/MLNSettings.h
@@ -24,7 +24,7 @@ typedef NS_ENUM(NSUInteger, MLNWellKnownTileServer) {
};
/**
- The `MLNSettings` object provides a global way to set SDK properties such
+ The ``MLNSettings`` object provides a global way to set SDK properties such
as apiKey, backend URL, etc.
*/
MLN_EXPORT
@@ -43,10 +43,10 @@ MLN_EXPORT
The API Key used by all instances of ``MLNMapView`` in the current application.
Setting this property to a value of `nil` has no effect.
- @note You must set the API key before attempting to load any style which
+ > Note: You must set the API key before attempting to load any style which
requires the token. Therefore, you should generally set it before creating an instance of
``MLNMapView``. The recommended way to set an api key is to add an entry
- to your application’s Info.plist file with the key `MLNApiKey`
+ to your application’s Info.plist file with the key `MLNApiKey``
and the type `String`. Alternatively, you may call this method from your
application delegate’s `-applicationDidFinishLaunching:` method.
*/
diff --git a/platform/darwin/src/MLNSettings_Private.h b/platform/darwin/src/MLNSettings_Private.h
index 591fade17..fae2adff3 100644
--- a/platform/darwin/src/MLNSettings_Private.h
+++ b/platform/darwin/src/MLNSettings_Private.h
@@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface MLNSettings (Private)
-/// Returns the shared instance of the `MLNSettings` class.
+/// Returns the shared instance of the ``MLNSettings`` class.
@property (class, nonatomic, readonly) MLNSettings *sharedSettings;
/// The current global access token.
diff --git a/platform/darwin/src/MLNShape.h b/platform/darwin/src/MLNShape.h
index 151abb176..6041a6a09 100644
--- a/platform/darwin/src/MLNShape.h
+++ b/platform/darwin/src/MLNShape.h
@@ -6,13 +6,13 @@
NS_ASSUME_NONNULL_BEGIN
/**
- `MLNShape` is an abstract class that represents a shape or annotation. Shapes
+ ``MLNShape`` is an abstract class that represents a shape or annotation. Shapes
constitute the content of a map — not only the overlays atop the map, but also
the content that forms the base map.
- Create instances of `MLNPointAnnotation`, `MLNPointCollection`, `MLNPolyline`,
- `MLNMultiPolyline`, `MLNPolygon`, `MLNMultiPolygon`, or `MLNShapeCollection` in
- order to use `MLNShape`'s methods. Do not create instances of `MLNShape`
+ Create instances of ``MLNPointAnnotation``, ``MLNPointAnnotation``, ``MLNPointAnnotation``,
+ ``MLNMultiPolyline``, ``MLNMultiPolyline``, ``MLNMultiPolyline``, or ``MLNMultiPolyline`` in
+ order to use ``MLNShape``'s methods. Do not create instances of ``MLNShape``
directly, and do not create your own subclasses of this class. The shape
classes correspond to the
Geometry object
@@ -20,20 +20,20 @@ NS_ASSUME_NONNULL_BEGIN
compatibility.
Although you do not create instances of this class directly, you can use its
- `+[MLNShape shapeWithData:encoding:error:]` factory method to create one of the
- concrete subclasses of `MLNShape` noted above from GeoJSON data. To access a
- shape’s attributes, use the corresponding `MLNFeature` class instead.
+ ``MLNShape/shapeWithData:encoding:error:`` factory method to create one of the
+ concrete subclasses of ``MLNShape`` noted above from GeoJSON data. To access a
+ shape’s attributes, use the corresponding ``MLNFeature`` class instead.
- You can add shapes to the map by adding them to an `MLNShapeSource` object.
- Configure the appearance of an `MLNShapeSource`’s or `MLNVectorTileSource`’s
- shapes collectively using a concrete instance of `MLNVectorStyleLayer`.
+ You can add shapes to the map by adding them to an ``MLNShapeSource`` object.
+ Configure the appearance of an ``MLNShapeSource``’s or ``MLNShapeSource``’s
+ shapes collectively using a concrete instance of ``MLNVectorStyleLayer``.
Alternatively, you can add some kinds of shapes directly to a map view as
annotations or overlays.
- You can filter the features in a `MLNVectorStyleLayer` or vary their layout or
- paint attributes based on the features’ geographies. Pass an `MLNShape` into an
+ You can filter the features in a ``MLNVectorStyleLayer`` or vary their layout or
+ paint attributes based on the features’ geographies. Pass an ``MLNShape`` into an
`NSPredicate` with the format `SELF IN %@` or `%@ CONTAINS SELF` and set the
- `MLNVectorStyleLayer.predicate` property to that predicate, or set a layout or
+ ``MLNVectorStyleLayer/predicate`` property to that predicate, or set a layout or
paint attribute to a similarly formatted `NSExpression`.
*/
MLN_EXPORT
@@ -42,14 +42,14 @@ MLN_EXPORT
// MARK: Creating a Shape
/**
- Returns an `MLNShape` object initialized with the given data interpreted as a
+ Returns an ``MLNShape`` object initialized with the given data interpreted as a
string containing a GeoJSON object.
If the GeoJSON object is a geometry, the returned value is a kind of
- `MLNShape`. If it is a feature object, the returned value is a kind of
- `MLNShape` that conforms to the `MLNFeature` protocol. If it is a feature
+ ``MLNShape``. If it is a feature object, the returned value is a kind of
+ ``MLNShape`` that conforms to the ``MLNShape`` protocol. If it is a feature
collection object, the returned value is an instance of
- `MLNShapeCollectionFeature`.
+ ``MLNShapeCollectionFeature``.
### Example
@@ -64,7 +64,7 @@ MLN_EXPORT
@param encoding The encoding used by `data`.
@param outError Upon return, if an error has occurred, a pointer to an
`NSError` object describing the error. Pass in `NULL` to ignore any error.
- @return An `MLNShape` object representation of `data`, or `nil` if `data` could
+ @return An ``MLNShape`` object representation of `data`, or `nil` if `data` could
not be parsed as valid GeoJSON source code. If `nil`, `outError` contains an
`NSError` object describing the problem.
*/
@@ -79,9 +79,9 @@ MLN_EXPORT
The default value of this property is `nil`.
- This property is ignored when the shape is used in an `MLNShapeSource`. To name
- a shape used in a shape source, create an `MLNFeature` and add an attribute to
- the `MLNFeature.attributes` property.
+ This property is ignored when the shape is used in an ``MLNShapeSource``. To name
+ a shape used in a shape source, create an ``MLNFeature`` and add an attribute to
+ the ``MLNFeature/attributes`` property.
*/
@property (nonatomic, copy, nullable) NSString *title;
@@ -89,9 +89,9 @@ MLN_EXPORT
The subtitle of the shape annotation. The default value of this property is
`nil`.
- This property is ignored when the shape is used in an `MLNShapeSource`. To
+ This property is ignored when the shape is used in an ``MLNShapeSource``. To
provide additional information about a shape used in a shape source, create an
- `MLNFeature` and add an attribute to the `MLNFeature.attributes` property.
+ ``MLNFeature`` and add an attribute to the ``MLNFeature/attributes`` property.
*/
@property (nonatomic, copy, nullable) NSString *subtitle;
@@ -102,7 +102,7 @@ MLN_EXPORT
The default value of this property is `nil`.
- This property is ignored when the shape is used in an `MLNShapeSource`.
+ This property is ignored when the shape is used in an ``MLNShapeSource``.
*/
@property (nonatomic, copy, nullable) NSString *toolTip;
diff --git a/platform/darwin/src/MLNShapeCollection.h b/platform/darwin/src/MLNShapeCollection.h
index b0e3b8eee..ee4331516 100644
--- a/platform/darwin/src/MLNShapeCollection.h
+++ b/platform/darwin/src/MLNShapeCollection.h
@@ -8,27 +8,27 @@
NS_ASSUME_NONNULL_BEGIN
/**
- An `MLNShapeCollection` object represents a shape consisting of zero or more
- distinct but related shapes that are instances of `MLNShape`. The constituent
+ An ``MLNShapeCollection`` object represents a shape consisting of zero or more
+ distinct but related shapes that are instances of ``MLNShape``. The constituent
shapes can be a mixture of different kinds of shapes.
- `MLNShapeCollection` is most commonly used to add multiple shapes to a single
- `MLNShapeSource`. Configure the appearance of an `MLNShapeSource`’s or
- `MLNVectorTileSource`’s shape collection collectively using an
- `MLNSymbolStyleLayer` object, or use multiple instances of
- `MLNCircleStyleLayer`, `MLNFillStyleLayer`, and `MLNLineStyleLayer` to
+ ``MLNShapeCollection`` is most commonly used to add multiple shapes to a single
+ ``MLNShapeSource``. Configure the appearance of an ``MLNShapeSource``’s or
+ ``MLNVectorTileSource``’s shape collection collectively using an
+ ``MLNSymbolStyleLayer`` object, or use multiple instances of
+ ``MLNCircleStyleLayer``, ``MLNCircleStyleLayer``, and ``MLNCircleStyleLayer`` to
configure the appearance of each kind of shape inside the collection.
- You cannot add an `MLNShapeCollection` object directly to a map view as an
- annotation. However, you can create individual `MLNPointAnnotation`,
- `MLNPolyline`, and `MLNPolygon` objects from the `shapes` array and add those
- annotation objects to the map view using the `-[MLNMapView addAnnotations:]`
+ You cannot add an ``MLNShapeCollection`` object directly to a map view as an
+ annotation. However, you can create individual ``MLNPointAnnotation``,
+ ``MLNPolyline``, and ``MLNPolyline`` objects from the `shapes` array and add those
+ annotation objects to the map view using the ``MLNMapView/addAnnotations:``
method.
To represent a collection of point, polyline, or polygon shapes, it may be more
- convenient to use an `MLNPointCollection`, `MLNMultiPolyline`, or
- `MLNMultiPolygon` object, respectively. To access a shape collection’s
- attributes, use the corresponding `MLNFeature` object.
+ convenient to use an ``MLNPointCollection``, ``MLNPointCollection``, or
+ ``MLNMultiPolygon`` object, respectively. To access a shape collection’s
+ attributes, use the corresponding ``MLNFeature`` object.
A shape collection is known as a
GeometryCollection
diff --git a/platform/darwin/src/MLNShapeOfflineRegion.h b/platform/darwin/src/MLNShapeOfflineRegion.h
index 7f20fc8e9..77a97721f 100644
--- a/platform/darwin/src/MLNShapeOfflineRegion.h
+++ b/platform/darwin/src/MLNShapeOfflineRegion.h
@@ -39,14 +39,14 @@ MLN_EXPORT
/**
The minimum zoom level for which to download tiles and other resources.
- For more information about zoom levels, `-[MLNMapView zoomLevel]`.
+ For more information about zoom levels, ``MLNMapView/zoomLevel``.
*/
@property (nonatomic, readonly) double minimumZoomLevel;
/**
The maximum zoom level for which to download tiles and other resources.
- For more information about zoom levels, `-[MLNMapView zoomLevel]`.
+ For more information about zoom levels, ``MLNMapView/zoomLevel``.
*/
@property (nonatomic, readonly) double maximumZoomLevel;
@@ -56,7 +56,7 @@ MLN_EXPORT
Initializes a newly created offline region with the given style URL, geometry,
and range of zoom levels.
- This is the designated initializer for `MLNShapeOfflineRegion`.
+ This is the designated initializer for ``MLNShapeOfflineRegion``.
@param styleURL URL of the map style for which to download resources. The URL
may be a full HTTP or HTTPS URL or a canonical URL.
diff --git a/platform/darwin/src/MLNShapeSource.h b/platform/darwin/src/MLNShapeSource.h
index 595a6c901..c5e981eb2 100644
--- a/platform/darwin/src/MLNShapeSource.h
+++ b/platform/darwin/src/MLNShapeSource.h
@@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
@class MLNShape;
/**
- Options for `MLNShapeSource` objects.
+ Options for ``MLNShapeSource`` objects.
*/
typedef NSString *MLNShapeSourceOption NS_STRING_ENUM;
@@ -24,13 +24,13 @@ typedef NSString *MLNShapeSourceOption NS_STRING_ENUM;
href="https://maplibre.org/maplibre-style-spec/#sources-geojson-cluster">cluster
source property in the MapLibre Style Spec.
- This option only affects point features within an `MLNShapeSource` object; it
- is ignored when creating an `MLNComputedShapeSource` object.
+ This option only affects point features within an ``MLNShapeSource`` object; it
+ is ignored when creating an ``MLNComputedShapeSource`` object.
#### Related examples
TODO: Cluster point data
TODO: Use images to cluster point data
- Learn how to cluster point data with this `MLNShapeSourceOption`.
+ Learn how to cluster point data with this ``MLNShapeSourceOption``.
*/
FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionClustered;
@@ -39,8 +39,8 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionClus
cluster if clustering is enabled. A value of 512 produces a radius equal to
the width of a tile. The default value is 50.
- This option only affects point features within an `MLNShapeSource` object; it
- is ignored when creating an `MLNComputedShapeSource` object.
+ This option only affects point features within an ``MLNShapeSource`` object; it
+ is ignored when creating an ``MLNComputedShapeSource`` object.
*/
FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionClusterRadius;
@@ -73,14 +73,14 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionClus
href="https://maplibre.org/maplibre-style-spec/#sources-geojson-clusterProperties">clusterProperties
source property in the MapLibre Style Spec.
- This option only affects point features within an `MLNShapeSource` object; it
- is ignored when creating an `MLNComputedShapeSource` object.
+ This option only affects point features within an ``MLNShapeSource`` object; it
+ is ignored when creating an ``MLNComputedShapeSource`` object.
*/
FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionClusterProperties;
/**
An `NSNumber` object containing an integer; specifies the maximum zoom level at
which to cluster points if clustering is enabled. Defaults to one zoom level
- less than the value of `MLNShapeSourceOptionMaximumZoomLevel` so that, at the
+ less than the value of ``MLNShapeSourceOptionMaximumZoomLevel`` so that, at the
maximum zoom level, the shapes are not clustered.
This option corresponds to the
@@ -88,8 +88,8 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionClus
href="https://maplibre.org/maplibre-style-spec/#sources-geojson-clusterMaxZoom">clusterMaxZoom
source property in the MapLibre Style Spec.
- This option only affects point features within an `MLNShapeSource` object; it
- is ignored when creating an `MLNComputedShapeSource` object.
+ This option only affects point features within an ``MLNShapeSource`` object; it
+ is ignored when creating an ``MLNComputedShapeSource`` object.
*/
FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption
MLNShapeSourceOptionMaximumZoomLevelForClustering;
@@ -144,7 +144,7 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionSimp
/**
An `NSNumber` object containing a Boolean enabling or disabling calculating line distance metrics.
- Set this property to `YES` in order for the `MLNLineStyleLayer.lineGradient` property to have its
+ Set this property to `YES` in order for the ``MLNLineStyleLayer/lineGradient`` property to have its
intended effect. The default value is `NO`.
This option corresponds to the
@@ -155,25 +155,25 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionSimp
FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionLineDistanceMetrics;
/**
- `MLNShapeSource` is a map content source that supplies vector shapes to be
- shown on the map. The shapes may be instances of `MLNShape` or `MLNFeature`,
+ ``MLNShapeSource`` is a map content source that supplies vector shapes to be
+ shown on the map. The shapes may be instances of ``MLNShape`` or ``MLNShape``,
or they may be defined by local or external
GeoJSON code. A shape source is added to an
- `MLNStyle` object along with an `MLNVectorStyleLayer` object. The vector style
+ ``MLNStyle`` object along with an ``MLNStyle`` object. The vector style
layer defines the appearance of any content supplied by the shape source. You
can update a shape source by setting its `shape` or `URL` property.
- `MLNShapeSource` is optimized for data sets that change dynamically and fit
+ ``MLNShapeSource`` is optimized for data sets that change dynamically and fit
completely in memory. For large data sets that do not fit completely in memory,
- use the `MLNComputedShapeSource` or `MLNVectorTileSource` class.
+ use the ``MLNComputedShapeSource`` or ``MLNComputedShapeSource`` class.
Each
geojson
source defined by the style JSON file is represented at runtime by an
- `MLNShapeSource` object that you can use to refine the map’s content and
+ ``MLNShapeSource`` object that you can use to refine the map’s content and
initialize new style layers. You can also add and remove sources dynamically
- using methods such as `-[MLNStyle addSource:]` and
- `-[MLNStyle sourceWithIdentifier:]`.
+ using methods such as ``MLNStyle/addSource:`` and
+ ``MLNStyle/sourceWithIdentifier:``.
Any vector style layer initialized with a shape source should have a `nil`
value in its `sourceLayerIdentifier` property.
@@ -194,7 +194,7 @@ FOUNDATION_EXTERN MLN_EXPORT const MLNShapeSourceOption MLNShapeSourceOptionLine
TODO: Cluster point data
TODO: Use images to cluster point data
TODO: Add live data
- Learn how to add data to your map using this `MLNSource` object.
+ Learn how to add data to your map using this ``MLNSource`` object.
*/
MLN_EXPORT
@interface MLNShapeSource : MLNSource
@@ -205,12 +205,12 @@ MLN_EXPORT
Returns a shape source with an identifier, URL, and dictionary of options for
the source.
- This class supports the following options: `MLNShapeSourceOptionClustered`,
- `MLNShapeSourceOptionClusterRadius`,
- `MLNShapeSourceOptionMaximumZoomLevelForClustering`,
- `MLNShapeSourceOptionMinimumZoomLevel`, `MLNShapeSourceOptionMaximumZoomLevel`,
- `MLNShapeSourceOptionBuffer`, and
- `MLNShapeSourceOptionSimplificationTolerance`. Shapes provided by a shape
+ This class supports the following options: ``MLNShapeSourceOptionClustered``,
+ ``MLNShapeSourceOptionClusterRadius``,
+ ``MLNShapeSourceOptionMaximumZoomLevelForClustering``,
+ ``MLNShapeSourceOptionMinimumZoomLevel``, ``MLNShapeSourceOptionMinimumZoomLevel``,
+ ``MLNShapeSourceOptionBuffer``, and
+ ``MLNShapeSourceOptionSimplificationTolerance``. Shapes provided by a shape
source are not clipped or wrapped automatically.
@param identifier A string that uniquely identifies the source.
@@ -221,7 +221,7 @@ MLN_EXPORT
#### Related examples
TODO: Add live data, learn how to add live data to your map by
- updating the an `MLNShapeSource` object's `URL` property.
+ updating the an ``MLNShapeSource`` object's `URL` property.
*/
- (instancetype)initWithIdentifier:(NSString *)identifier
URL:(NSURL *)url
@@ -232,32 +232,32 @@ MLN_EXPORT
Returns a shape source with an identifier, a shape, and dictionary of options
for the source.
- This class supports the following options: `MLNShapeSourceOptionClustered`,
- `MLNShapeSourceOptionClusterRadius`,
- `MLNShapeSourceOptionMaximumZoomLevelForClustering`,
- `MLNShapeSourceOptionMinimumZoomLevel`, `MLNShapeSourceOptionMaximumZoomLevel`,
- `MLNShapeSourceOptionBuffer`, and
- `MLNShapeSourceOptionSimplificationTolerance`. Shapes provided by a shape
+ This class supports the following options: ``MLNShapeSourceOptionClustered``,
+ ``MLNShapeSourceOptionClusterRadius``,
+ ``MLNShapeSourceOptionMaximumZoomLevelForClustering``,
+ ``MLNShapeSourceOptionMinimumZoomLevel``, ``MLNShapeSourceOptionMinimumZoomLevel``,
+ ``MLNShapeSourceOptionBuffer``, and
+ ``MLNShapeSourceOptionSimplificationTolerance``. Shapes provided by a shape
source are not clipped or wrapped automatically.
- To specify attributes about the shape, use an instance of an `MLNShape`
- subclass that conforms to the `MLNFeature` protocol, such as `MLNPointFeature`.
- To include multiple shapes in the source, use an `MLNShapeCollection` or
- `MLNShapeCollectionFeature` object, or use the
+ To specify attributes about the shape, use an instance of an ``MLNShape``
+ subclass that conforms to the ``MLNFeature`` protocol, such as ``MLNFeature``.
+ To include multiple shapes in the source, use an ``MLNShapeCollection`` or
+ ``MLNShapeCollectionFeature`` object, or use the
`-initWithIdentifier:features:options:` or
`-initWithIdentifier:shapes:options:` methods.
To create a shape from GeoJSON source code, use the
- `+[MLNShape shapeWithData:encoding:error:]` method.
+ ``MLNShape/shapeWithData:encoding:error:`` method.
@param identifier A string that uniquely identifies the source.
- @param shape A concrete subclass of `MLNShape`
+ @param shape A concrete subclass of ``MLNShape``
@param options An `NSDictionary` of options for this source.
@return An initialized shape source.
#### Related examples
TODO: Animate a line, learn how to animate line data by continously
- updating an `MLNShapeSource`'s `shape` attribute.
+ updating an ``MLNShapeSource``'s `shape` attribute.
*/
- (instancetype)initWithIdentifier:(NSString *)identifier
shape:(nullable MLNShape *)shape
@@ -268,21 +268,21 @@ MLN_EXPORT
Returns a shape source with an identifier, an array of features, and a dictionary
of options for the source.
- This class supports the following options: `MLNShapeSourceOptionClustered`,
- `MLNShapeSourceOptionClusterRadius`,
- `MLNShapeSourceOptionMaximumZoomLevelForClustering`,
- `MLNShapeSourceOptionMinimumZoomLevel`, `MLNShapeSourceOptionMaximumZoomLevel`,
- `MLNShapeSourceOptionBuffer`, and
- `MLNShapeSourceOptionSimplificationTolerance`. Shapes provided by a shape
+ This class supports the following options: ``MLNShapeSourceOptionClustered``,
+ ``MLNShapeSourceOptionClusterRadius``,
+ ``MLNShapeSourceOptionMaximumZoomLevelForClustering``,
+ ``MLNShapeSourceOptionMinimumZoomLevel``, ``MLNShapeSourceOptionMinimumZoomLevel``,
+ ``MLNShapeSourceOptionBuffer``, and
+ ``MLNShapeSourceOptionSimplificationTolerance``. Shapes provided by a shape
source are not clipped or wrapped automatically.
- Unlike `-initWithIdentifier:shapes:options:`, this method accepts `MLNFeature`
- instances, such as `MLNPointFeature` objects, whose attributes you can use when
- applying a predicate to `MLNVectorStyleLayer` or configuring a style layer’s
+ Unlike `-initWithIdentifier:shapes:options:`, this method accepts ``MLNFeature``
+ instances, such as ``MLNPointFeature`` objects, whose attributes you can use when
+ applying a predicate to ``MLNVectorStyleLayer`` or configuring a style layer’s
appearance.
To create a shape from GeoJSON source code, use the
- `+[MLNShape shapeWithData:encoding:error:]` method.
+ ``MLNShape/shapeWithData:encoding:error:`` method.
@param identifier A string that uniquely identifies the source.
@param features An array of objects that conform to the MLNFeature protocol.
@@ -297,22 +297,22 @@ MLN_EXPORT
Returns a shape source with an identifier, an array of shapes, and a dictionary of
options for the source.
- This class supports the following options: `MLNShapeSourceOptionClustered`,
- `MLNShapeSourceOptionClusterRadius`,
- `MLNShapeSourceOptionMaximumZoomLevelForClustering`,
- `MLNShapeSourceOptionMinimumZoomLevel`, `MLNShapeSourceOptionMaximumZoomLevel`,
- `MLNShapeSourceOptionBuffer`, and
- `MLNShapeSourceOptionSimplificationTolerance`. Shapes provided by a shape
+ This class supports the following options: ``MLNShapeSourceOptionClustered``,
+ ``MLNShapeSourceOptionClusterRadius``,
+ ``MLNShapeSourceOptionMaximumZoomLevelForClustering``,
+ ``MLNShapeSourceOptionMinimumZoomLevel``, ``MLNShapeSourceOptionMinimumZoomLevel``,
+ ``MLNShapeSourceOptionBuffer``, and
+ ``MLNShapeSourceOptionSimplificationTolerance``. Shapes provided by a shape
source are not clipped or wrapped automatically.
- Any `MLNFeature` instance passed into this initializer is treated as an ordinary
- shape, causing any attributes to be inaccessible to an `MLNVectorStyleLayer` when
+ Any ``MLNFeature`` instance passed into this initializer is treated as an ordinary
+ shape, causing any attributes to be inaccessible to an ``MLNVectorStyleLayer`` when
evaluating a predicate or configuring certain layout or paint attributes. To
preserve the attributes associated with each feature, use the
`-initWithIdentifier:features:options:` method instead.
To create a shape from GeoJSON source code, use the
- `+[MLNShape shapeWithData:encoding:error:]` method.
+ ``MLNShape/shapeWithData:encoding:error:`` method.
@param identifier A string that uniquely identifies the source.
@param shapes An array of shapes; each shape is a member of a concrete subclass of MLNShape.
@@ -331,7 +331,7 @@ MLN_EXPORT
If the receiver was initialized using `-initWithIdentifier:URL:options:`, this
property is set to `nil`. This property is unavailable until the receiver is
- passed into `-[MLNStyle addSource:]`.
+ passed into ``MLNStyle/addSource:``.
You can get/set the shapes within a collection via this property. Actions must
be performed on the application's main thread.
@@ -364,14 +364,14 @@ MLN_EXPORT
Returned features may not necessarily be visible to the user at the time they
are loaded: the style may lack a layer that draws the features in question. To
obtain only _visible_ features, use the
- `-[MLNMapView visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:]`
+ ``MLNMapView/visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:``
or
- `-[MLNMapView visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:]`
+ ``MLNMapView/visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:``
method.
@param predicate A predicate to filter the returned features. Use `nil` to
include all features in the source.
- @return An array of objects conforming to the `MLNFeature` protocol that
+ @return An array of objects conforming to the ``MLNFeature`` protocol that
represent features in the source that match the predicate.
*/
- (NSArrayvector
source defined by the style JSON file is represented at runtime by an
- `MLNVectorTileSource` object that you can use to initialize new style layers.
+ ``MLNVectorTileSource`` object that you can use to initialize new style layers.
You can also add and remove sources dynamically using methods such as
- `-[MLNStyle addSource:]` and `-[MLNStyle sourceWithIdentifier:]`.
+ ``MLNStyle/addSource:`` and ``MLNStyle/sourceWithIdentifier:``.
Within each vector tile, each geometric coordinate must lie between
−1 × extent and
@@ -57,7 +57,7 @@ NS_ASSUME_NONNULL_BEGIN
#### Related examples
TODO: Data-driven circles, learn how to add data to your map using
- an `MLNVectorTileSource` object.
+ an ``MLNVectorTileSource`` object.
*/
MLN_EXPORT
@interface MLNVectorTileSource : MLNTileSource
@@ -69,7 +69,7 @@ MLN_EXPORT
URL.
After initializing and configuring the source, add it to a map view’s style
- using the `-[MLNStyle addSource:]` method.
+ using the ``MLNStyle/addSource:`` method.
The URL may be a full HTTP or HTTPS URL or a canonical
URL. The URL should point to a JSON file that conforms to the
@@ -93,14 +93,14 @@ MLN_EXPORT
guide for information about the format of a tile URL template.
After initializing and configuring the source, add it to a map view’s style
- using the `-[MLNStyle addSource:]` method.
+ using the ``MLNStyle/addSource:`` method.
@param identifier A string that uniquely identifies the source in the style to
which it is added.
@param tileURLTemplates An array of tile URL template strings. Only the first
string is used; any additional strings are ignored.
@param options A dictionary containing configuration options. See
- `MLNTileSourceOption` for available keys and values. Pass in `nil` to use
+ ``MLNTileSourceOption`` for available keys and values. Pass in `nil` to use
the default values.
@return An initialized tile source.
*/
@@ -117,7 +117,7 @@ MLN_EXPORT
Each object in the returned array represents a feature loaded by the source and
provides access to attributes specified as part of the loaded feature. The
- source loads a feature if the source is added to an `MLNMapView`’s style; that
+ source loads a feature if the source is added to an ``MLNMapView``’s style; that
style has a layer that uses the source; and the map view has recently scrolled
to the region containing the feature.
@@ -133,9 +133,9 @@ MLN_EXPORT
are loaded: the style may contain a layer that forces the source’s tiles to
load but filters out the features in question, preventing them from being
drawn. To obtain only _visible_ features, use the
- `-[MLNMapView visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:]`
+ ``MLNMapView/visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:``
or
- `-[MLNMapView visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:]`
+ ``MLNMapView/visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:``
method.
@param sourceLayerIdentifiers The source layers to include in the query. Only
@@ -143,7 +143,7 @@ MLN_EXPORT
array. This array may not be empty.
@param predicate A predicate to filter the returned features. Use `nil` to
include all loaded features.
- @return An array of objects conforming to the `MLNFeature` protocol that
+ @return An array of objects conforming to the ``MLNFeature`` protocol that
represent features loaded by the source that match the predicate.
*/
- (NSArray