Use the MapLibre style spec docs website (#353)
This commit is contained in:
@@ -30,31 +30,31 @@ public final class Resource {
|
||||
public static final int STYLE = 1;
|
||||
|
||||
/**
|
||||
* TileJSON file as specified in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sources
|
||||
* TileJSON file as specified in https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-sources
|
||||
*/
|
||||
public static final int SOURCE = 2;
|
||||
|
||||
/**
|
||||
* A vector or raster tile as described in the style sheet at
|
||||
* https://www.mapbox.com/mapbox-gl-js/style-spec/#sources
|
||||
* https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources
|
||||
*/
|
||||
public static final int TILE = 3;
|
||||
|
||||
/**
|
||||
* Signed distance field glyphs for text rendering. These are the URLs specified in the style
|
||||
* in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-glyphs
|
||||
* in https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-glyphs
|
||||
*/
|
||||
public static final int GLYPHS = 4;
|
||||
|
||||
/**
|
||||
* Image part of a sprite sheet. It is constructed of the prefix in
|
||||
* https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sprite and a PNG file extension.
|
||||
* https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-sprite and a PNG file extension.
|
||||
*/
|
||||
public static final int SPRITE_IMAGE = 5;
|
||||
|
||||
/**
|
||||
* JSON part of a sprite sheet. It is constructed of the prefix in
|
||||
* https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sprite and a JSON file extension.
|
||||
* https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-sprite and a JSON file extension.
|
||||
*/
|
||||
public static final int SPRITE_JSON = 6;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ import androidx.annotation.Keep;
|
||||
/**
|
||||
* Resembles transition property from the style specification.
|
||||
*
|
||||
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#transition">Transition documentation</a>
|
||||
* @see <a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#transition">Transition documentation</a>
|
||||
*/
|
||||
public class TransitionOptions {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.net.URL;
|
||||
/**
|
||||
* A raster DEM source.
|
||||
*
|
||||
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-raster-dem">The style specification</a>
|
||||
* @see <a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-raster-dem">The style specification</a>
|
||||
*/
|
||||
@UiThread
|
||||
public class RasterDemSource extends Source {
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.Arrays;
|
||||
/**
|
||||
* Represents a string broken into sections annotated with separate formatting options.
|
||||
*
|
||||
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#types-formatted">Style specification</a>
|
||||
* @see <a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#types-formatted">Style specification</a>
|
||||
*/
|
||||
@Keep
|
||||
public class Formatted {
|
||||
|
||||
@@ -269,7 +269,7 @@ In style JSON | In Objective-C | In Swift
|
||||
|
||||
Each property representing a layout or paint attribute is set to an
|
||||
`NSExpression` object. `NSExpression` objects play the same role as
|
||||
[expressions in the Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions),
|
||||
[expressions in the Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions),
|
||||
but you create the former using a very different syntax. `NSExpression`’s format
|
||||
string syntax is reminiscent of a spreadsheet formula or an expression in a
|
||||
database query. See the
|
||||
|
||||
@@ -431,7 +431,7 @@ expression containing the strings to concatenate.
|
||||
Returns the arccosine of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`acos`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-acos)
|
||||
[`acos`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-acos)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_asin:`
|
||||
@@ -446,7 +446,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the arcsine of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`asin`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-asin)
|
||||
[`asin`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-asin)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_atan:`
|
||||
@@ -461,7 +461,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the arctangent of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`atan`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-atan)
|
||||
[`atan`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-atan)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_cos:`
|
||||
@@ -476,7 +476,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the cosine of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`cos`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-cos)
|
||||
[`cos`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-cos)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_log2:`
|
||||
@@ -491,7 +491,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the base-2 logarithm of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`log2`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-log2)
|
||||
[`log2`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-log2)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_round:`
|
||||
@@ -507,7 +507,7 @@ Returns the number rounded to the nearest integer. If the number is halfway
|
||||
between two integers, this function rounds it away from zero.
|
||||
|
||||
This function corresponds to the
|
||||
[`round`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-round)
|
||||
[`round`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-round)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_sin:`
|
||||
@@ -522,7 +522,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the sine of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`sin`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-sin)
|
||||
[`sin`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-sin)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_tan:`
|
||||
@@ -537,7 +537,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the tangent of the number.
|
||||
|
||||
This function corresponds to the
|
||||
[`tan`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-tan)
|
||||
[`tan`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-tan)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_distanceFrom:`
|
||||
@@ -567,7 +567,7 @@ operator in the Mapbox Style Specification.
|
||||
Returns the first non-`nil` value from an array of expressions.
|
||||
|
||||
This function corresponds to the
|
||||
[`coalesce`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-coalesce)
|
||||
[`coalesce`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-coalesce)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `mgl_attributed:`
|
||||
@@ -591,7 +591,7 @@ with the `MGLSymbolStyleLayer.text` property.
|
||||
`MGLFontColorAttribute` | An `NSExpression` evaluating to an `UIColor` (iOS) or `NSColor` (macOS).
|
||||
|
||||
This function corresponds to the
|
||||
[`format`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-types-format)
|
||||
[`format`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-types-format)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `MGL_LET`
|
||||
@@ -640,7 +640,7 @@ values.
|
||||
This function corresponds to the
|
||||
`+[NSExpression(MGLAdditions) mgl_expressionForMatchingExpression:inDictionary:defaultExpression:]`
|
||||
method and the
|
||||
[`match`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-match)
|
||||
[`match`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-match)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `MGL_IF`
|
||||
@@ -667,7 +667,7 @@ passed into this function must be wrapped in a constant expression.
|
||||
This function corresponds to the
|
||||
`+[NSExpression(MGLAdditions) mgl_expressionForConditional:trueExpression:falseExpresssion:]`
|
||||
method and the
|
||||
[`case`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-case)
|
||||
[`case`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-case)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `MGL_FUNCTION`
|
||||
@@ -684,7 +684,7 @@ operator in the Mapbox Style Specification.
|
||||
</dl>
|
||||
|
||||
An expression exactly as defined by the
|
||||
[Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions).
|
||||
[Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions).
|
||||
|
||||
## Custom functions
|
||||
|
||||
@@ -745,7 +745,7 @@ otherwise <code>TRUE</code>.
|
||||
object has a value for the feature attribute.
|
||||
|
||||
This function corresponds to the
|
||||
[`has`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-has)
|
||||
[`has`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-has)
|
||||
operator in the Mapbox Style Specification. See also the
|
||||
[`mgl_does:have:`](#code-mgl_does-have-code) function, which is used on its own
|
||||
without the `FUNCTION()` operator. You can also check whether an object has an
|
||||
@@ -779,7 +779,7 @@ The target expression with variable subexpressions replaced with the values
|
||||
defined in the context dictionary.
|
||||
|
||||
This function corresponds to the
|
||||
[`let`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-let)
|
||||
[`let`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-let)
|
||||
operator in the Mapbox Style Specification. See also the
|
||||
[`MGL_LET`](#code-mgl_let-code) function, which is used on its own without the
|
||||
`FUNCTION()` operator.
|
||||
@@ -839,7 +839,7 @@ yellow, orange, and red as the values.
|
||||
This function corresponds to the
|
||||
`+[NSExpression(MGLAdditions) mgl_expressionForInterpolatingExpression:withCurveType:parameters:stops:]`
|
||||
method and the
|
||||
[`interpolate`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-interpolate)
|
||||
[`interpolate`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-interpolate)
|
||||
operator in the Mapbox Style Specification. See also the
|
||||
[`mgl_interpolate:withCurveType:parameters:stops:`](#code-mgl_interpolate-withcurvetype-parameters-stops-code)
|
||||
function, which is used on its own without the `FUNCTION()` operator.
|
||||
@@ -879,7 +879,7 @@ A numeric representation of the target:
|
||||
first successful conversion is obtained.
|
||||
|
||||
This function corresponds to the
|
||||
[`to-number`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-types-to-number)
|
||||
[`to-number`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-types-to-number)
|
||||
operator in the Mapbox Style Specification. You can also cast a value to a
|
||||
number by passing the value and the string `NSNumber` into the `CAST()`
|
||||
operator.
|
||||
@@ -923,7 +923,7 @@ yellow, orange, and red as the values.
|
||||
This function corresponds to the
|
||||
`+[NSExpression(MGLAdditions) mgl_expressionForSteppingExpression:fromExpression:stops:]`
|
||||
method and the
|
||||
[`step`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-step)
|
||||
[`step`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-step)
|
||||
operator in the Mapbox Style Specification.
|
||||
|
||||
### `stringByAppendingString:`
|
||||
@@ -944,7 +944,7 @@ The target string with each of the argument strings appended in order.
|
||||
This function corresponds to the
|
||||
`-[NSExpression(MGLAdditions) mgl_expressionByAppendingExpression:]`
|
||||
method and is similar to the
|
||||
[`concat`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-concat)
|
||||
[`concat`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-concat)
|
||||
operator in the Mapbox Style Specification. See also the
|
||||
[`mgl_join:`](#code-mgl_join-code) function, which concatenates multiple
|
||||
expressions and is used on its own without the `FUNCTION()` operator.
|
||||
@@ -980,7 +980,7 @@ A string representation of the target:
|
||||
function of the ECMAScript Language Specification.
|
||||
|
||||
This function corresponds to the
|
||||
[`to-string`](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-types-to-string)
|
||||
[`to-string`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-types-to-string)
|
||||
operator in the Mapbox Style Specification. You can also cast a value to a
|
||||
string by passing the value and the string `NSString` into the `CAST()`
|
||||
operator.
|
||||
|
||||
@@ -23,9 +23,9 @@ evaluates based on the tile it needs to load. For example:
|
||||
evaluated as `http://www.example.com/tiles/14/6/9@2x.png`.
|
||||
|
||||
Tile URL templates are also used to define tilesets in TileJSON manifests or
|
||||
[`raster`](https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-raster-tiles)
|
||||
[`raster`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-raster-tiles)
|
||||
and
|
||||
[`vector`](https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-vector-tiles)
|
||||
[`vector`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-vector-tiles)
|
||||
sources in style JSON files. See the
|
||||
[TileJSON specification](https://github.com/mapbox/tilejson-spec/tree/master/2.2.0)
|
||||
for information about tile URL templates in the context of a TileJSON or style
|
||||
|
||||
@@ -138,7 +138,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
listed above for each attribute value. In addition to the Foundation types, you
|
||||
may also set an attribute to an `NSColor` (macOS) or `UIColor` (iOS), which
|
||||
will be converted into its
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#types-color">CSS string representation</a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#types-color">CSS string representation</a>
|
||||
when the feature is added to an `MGLShapeSource`. This can be convenient when
|
||||
using the attribute to supply a value for a color-typed layout or paint
|
||||
attribute via a key path expression.
|
||||
|
||||
@@ -102,7 +102,7 @@ MGL_EXPORT
|
||||
attributes.
|
||||
|
||||
This property corresponds to the <a
|
||||
href="https://www.mapbox.com/mapbox-gl-js/style-spec/#light-anchor"><code>anchor</code></a>
|
||||
href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#light-anchor"><code>anchor</code></a>
|
||||
light property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic) NSExpression *anchor;
|
||||
@@ -132,7 +132,7 @@ MGL_EXPORT
|
||||
feature attributes.
|
||||
|
||||
This property corresponds to the <a
|
||||
href="https://www.mapbox.com/mapbox-gl-js/style-spec/#light-position"><code>position</code></a>
|
||||
href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#light-position"><code>position</code></a>
|
||||
light property in the Mapbox Style Specification.
|
||||
|
||||
#### Related examples
|
||||
@@ -169,7 +169,7 @@ MGL_EXPORT
|
||||
feature attributes.
|
||||
|
||||
This property corresponds to the <a
|
||||
href="https://www.mapbox.com/mapbox-gl-js/style-spec/#light-color"><code>color</code></a>
|
||||
href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#light-color"><code>color</code></a>
|
||||
light property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic) NSExpression *color;
|
||||
@@ -192,7 +192,7 @@ MGL_EXPORT
|
||||
feature attributes.
|
||||
|
||||
This property corresponds to the <a
|
||||
href="https://www.mapbox.com/mapbox-gl-js/style-spec/#light-color"><code>color</code></a>
|
||||
href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#light-color"><code>color</code></a>
|
||||
light property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic) NSExpression *color;
|
||||
@@ -224,7 +224,7 @@ MGL_EXPORT
|
||||
feature attributes.
|
||||
|
||||
This property corresponds to the <a
|
||||
href="https://www.mapbox.com/mapbox-gl-js/style-spec/#light-intensity"><code>intensity</code></a>
|
||||
href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#light-intensity"><code>intensity</code></a>
|
||||
light property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic) NSExpression *intensity;
|
||||
|
||||
@@ -74,7 +74,7 @@ MGL_EXPORT
|
||||
<%- propertyDoc(property.name, property, type, 'light').wrap(80, 1) %>
|
||||
|
||||
This property corresponds to the <a
|
||||
href="https://www.mapbox.com/mapbox-gl-js/style-spec/#light-<%- originalPropertyName(property) %>"><code><%- originalPropertyName(property) %></code></a>
|
||||
href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#light-<%- originalPropertyName(property) %>"><code><%- originalPropertyName(property) %></code></a>
|
||||
light property in the Mapbox Style Specification.
|
||||
<% if (property.examples) { -%>
|
||||
|
||||
|
||||
@@ -159,19 +159,19 @@ typedef NS_ENUM(NSUInteger, MGLResourceKind) {
|
||||
MGLResourceKindUnknown,
|
||||
/** Style sheet JSON file */
|
||||
MGLResourceKindStyle,
|
||||
/** TileJSON file as specified in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sources */
|
||||
/** TileJSON file as specified in https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-sources */
|
||||
MGLResourceKindSource,
|
||||
/** A vector or raster tile as described in the style sheet at
|
||||
https://www.mapbox.com/mapbox-gl-js/style-spec/#sources */
|
||||
https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources */
|
||||
MGLResourceKindTile,
|
||||
/** Signed distance field glyphs for text rendering. These are the URLs specified in the style
|
||||
in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-glyphs */
|
||||
in https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-glyphs */
|
||||
MGLResourceKindGlyphs,
|
||||
/** Image part of a sprite sheet. It is constructed of the prefix in
|
||||
https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sprite and a PNG file extension. */
|
||||
https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-sprite and a PNG file extension. */
|
||||
MGLResourceKindSpriteImage,
|
||||
/** JSON part of a sprite sheet. It is constructed of the prefix in
|
||||
https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sprite and a JSON file extension. */
|
||||
https://maplibre.org/maplibre-gl-js-docs/style-spec/#root-sprite and a JSON file extension. */
|
||||
MGLResourceKindSpriteJSON,
|
||||
/** Image data for a georeferenced image source. **/
|
||||
MGLResourceKindImage,
|
||||
|
||||
@@ -139,7 +139,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionSimp
|
||||
The default value is `NO`.
|
||||
|
||||
This option corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-geojson-lineMetrics"><code>lineMetrics</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-geojson-lineMetrics"><code>lineMetrics</code></a>
|
||||
source property in the Mapbox Style Specification.
|
||||
*/
|
||||
FOUNDATION_EXTERN MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionLineDistanceMetrics;
|
||||
|
||||
@@ -17,7 +17,7 @@ typedef NSString *MGLExpressionInterpolationMode NS_TYPED_ENUM;
|
||||
An `NSString` identifying the `linear` interpolation type in an `NSExpression`.
|
||||
|
||||
This attribute corresponds to the `linear` value in the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-interpolate"><code>interpolate</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-interpolate"><code>interpolate</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionInterpolationModeLinear;
|
||||
@@ -26,7 +26,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
An `NSString` identifying the `expotential` interpolation type in an `NSExpression`.
|
||||
|
||||
This attribute corresponds to the `exponential` value in the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-interpolate"><code>interpolate</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-interpolate"><code>interpolate</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionInterpolationModeExponential;
|
||||
@@ -35,7 +35,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
An `NSString` identifying the `cubic-bezier` interpolation type in an `NSExpression`.
|
||||
|
||||
This attribute corresponds to the `cubic-bezier` value in the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-interpolate"><code>interpolate</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-interpolate"><code>interpolate</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionInterpolationModeCubicBezier;
|
||||
@@ -43,7 +43,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
/**
|
||||
Methods for creating expressions that use Mapbox-specific functionality and for
|
||||
converting to and from the JSON format defined in the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions">Mapbox Style Specification</a>.
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions">Mapbox Style Specification</a>.
|
||||
*/
|
||||
@interface NSExpression (MGLAdditions)
|
||||
|
||||
@@ -51,35 +51,35 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
|
||||
/**
|
||||
`NSExpression` variable that corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-zoom"><code>zoom</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-zoom"><code>zoom</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (class, nonatomic, readonly) NSExpression *zoomLevelVariableExpression;
|
||||
|
||||
/**
|
||||
`NSExpression` variable that corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-heatmap-density"><code>heatmap-density</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-heatmap-density"><code>heatmap-density</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (class, nonatomic, readonly) NSExpression *heatmapDensityVariableExpression;
|
||||
|
||||
/**
|
||||
`NSExpression` variable that corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-line-progress"><code>line-progress</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-line-progress"><code>line-progress</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (class, nonatomic, readonly) NSExpression *lineProgressVariableExpression;
|
||||
|
||||
/**
|
||||
`NSExpression` variable that corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#eexpressions-geometry-type"><code>geometry-type</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#eexpressions-geometry-type"><code>geometry-type</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (class, nonatomic, readonly) NSExpression *geometryTypeVariableExpression;
|
||||
|
||||
/**
|
||||
`NSExpression` variable that corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-id"><code>id</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-id"><code>id</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (class, nonatomic, readonly) NSExpression *featureIdentifierVariableExpression;
|
||||
@@ -93,7 +93,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
|
||||
/**
|
||||
`NSExpression` variable that corresponds to the
|
||||
<a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-properties"><code>properties</code></a>
|
||||
<a href="https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions-properties"><code>properties</code></a>
|
||||
expression operator in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (class, nonatomic, readonly) NSExpression *featureAttributesVariableExpression;
|
||||
@@ -186,7 +186,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
from JSON data.
|
||||
|
||||
The Foundation object is interpreted according to the
|
||||
[Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions).
|
||||
[Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions).
|
||||
See the
|
||||
“[Information for Style Authors](../for-style-authors.html#setting-attribute-values)”
|
||||
guide for a correspondence of operators and types between the style
|
||||
@@ -203,7 +203,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLExpressionInterpolationMode MGLExpressionI
|
||||
An equivalent Foundation object that can be serialized as JSON.
|
||||
|
||||
The Foundation object conforms to the
|
||||
[Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions).
|
||||
[Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions).
|
||||
See the
|
||||
“[Information for Style Authors](../for-style-authors.html#setting-attribute-values)”
|
||||
guide for a correspondence of operators and types between the style
|
||||
|
||||
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
from JSON data.
|
||||
|
||||
The Foundation object is interpreted according to the
|
||||
[Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions).
|
||||
[Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions).
|
||||
See the
|
||||
“[Predicates and Expressions](../predicates-and-expressions.html)”
|
||||
guide for a correspondence of operators and types between the style
|
||||
@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
An equivalent Foundation object that can be serialized as JSON.
|
||||
|
||||
The Foundation object conforms to the
|
||||
[Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions).
|
||||
[Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions).
|
||||
See the
|
||||
“[Predicates and Expressions](../predicates-and-expressions.html)”
|
||||
guide for a correspondence of operators and types between the style
|
||||
|
||||
@@ -280,7 +280,7 @@ In style JSON | In Objective-C | In Swift
|
||||
|
||||
Each property representing a layout or paint attribute is set to an
|
||||
`NSExpression` object. `NSExpression` objects play the same role as
|
||||
[expressions in the Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions),
|
||||
[expressions in the Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions),
|
||||
but you create the former using a very different syntax. `NSExpression`’s format
|
||||
string syntax is reminiscent of a spreadsheet formula or an expression in a
|
||||
database query. See the
|
||||
|
||||
@@ -17,9 +17,9 @@ evaluates based on the tile it needs to load. For example:
|
||||
evaluated as `http://www.example.com/tiles/14/6/9@2x.png`.
|
||||
|
||||
Tile URL templates are also used to define tilesets in TileJSON manifests or
|
||||
[`raster`](https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-raster-tiles)
|
||||
[`raster`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-raster-tiles)
|
||||
and
|
||||
[`vector`](https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-vector-tiles)
|
||||
[`vector`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-vector-tiles)
|
||||
sources in style JSON files. See the
|
||||
[TileJSON specification](https://github.com/mapbox/tilejson-spec/tree/master/2.2.0)
|
||||
for information about tile URL templates in the context of a TileJSON or style
|
||||
|
||||
@@ -267,7 +267,7 @@ In style JSON | In Objective-C | In Swift
|
||||
|
||||
Each property representing a layout or paint attribute is set to an
|
||||
`NSExpression` object. `NSExpression` objects play the same role as
|
||||
[expressions in the Mapbox Style Specification](https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions),
|
||||
[expressions in the Mapbox Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#expressions),
|
||||
but you create the former using a very different syntax. `NSExpression`’s format
|
||||
string syntax is reminiscent of a spreadsheet formula or an expression in a
|
||||
database query. See the
|
||||
|
||||
@@ -17,9 +17,9 @@ evaluates based on the tile it needs to load. For example:
|
||||
evaluated as `http://www.example.com/tiles/14/6/9@2x.png`.
|
||||
|
||||
Tile URL templates are also used to define tilesets in TileJSON manifests or
|
||||
[`raster`](https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-raster-tiles)
|
||||
[`raster`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-raster-tiles)
|
||||
and
|
||||
[`vector`](https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-vector-tiles)
|
||||
[`vector`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-vector-tiles)
|
||||
sources in style JSON files. See the
|
||||
[TileJSON specification](https://github.com/mapbox/tilejson-spec/tree/master/2.2.0)
|
||||
for information about tile URL templates in the context of a TileJSON or style
|
||||
|
||||
@@ -1132,7 +1132,7 @@ void Map::removeImage(const QString &id)
|
||||
|
||||
/*!
|
||||
Adds a \a filter to a style \a layer using the format described in the \l
|
||||
{https://www.mapbox.com/mapbox-gl-js/style-spec/#other-filter}{Mapbox style specification}.
|
||||
{https://maplibre.org/maplibre-gl-js-docs/style-spec/#other-filter}{Mapbox style specification}.
|
||||
|
||||
Given a layer \c marker from an arbitrary GeoJSON source containing features of type \b
|
||||
"Point" and \b "LineString", this example shows how to make sure the layer will only tag
|
||||
@@ -1209,7 +1209,7 @@ QVariant QVariantFromValue(const mbgl::Value &value) {
|
||||
Returns the current \a expression-based filter value applied to a style
|
||||
\layer, if any.
|
||||
|
||||
Filter value types are described in the {https://www.mapbox.com/mapbox-gl-js/style-spec/#types}{Mapbox style specification}.
|
||||
Filter value types are described in the {https://maplibre.org/maplibre-gl-js-docs/style-spec/#types}{Mapbox style specification}.
|
||||
*/
|
||||
QVariant Map::getFilter(const QString &layer) const {
|
||||
using namespace mbgl::style;
|
||||
|
||||
Reference in New Issue
Block a user