Interpolator
Expression interpolator type.
Is used for first parameter of interpolate.
Functions
Link copied to clipboard
Returns the absolute value of the input.
Link copied to clipboard
Gets the value of a cluster property accumulated so far.
Link copied to clipboard
Returns the arccosine of the input.
Link copied to clipboard
Returns `true` if all the inputs are `true`, `false` otherwise.
Link copied to clipboard
Returns `true` if any of the inputs are `true`, `false` otherwise.
Link copied to clipboard
Asserts that the input is an array (optionally with a specific item type and length).
Link copied to clipboard
Returns the arcsine of the input.
Link copied to clipboard
Retrieves an item from an array.
Link copied to clipboard
Returns the arctangent of the input.
Link copied to clipboard
Asserts that the input value is a boolean.
Link copied to clipboard
Returns the smallest integer that is greater than or equal to the input.
Link copied to clipboard
Evaluates each expression in turn until the first non-null value is obtained, and returns that value.
Link copied to clipboard
open fun collator(caseSensitive: Expression, diacriticSensitive: Expression, locale: Expression): Expression
Returns a collator for use in locale-dependent comparison operations.
Link copied to clipboard
Expression literal utility method to convert a color int to an color expression Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setProperties(
fillColor(color(Color.GREEN))
);
Content copied to clipboard
Link copied to clipboard
Returns a string consisting of the concatenation of the inputs.
Link copied to clipboard
Returns the cosine of the input.
Link copied to clipboard
open fun cubicBezier(@NonNull x1: Number, @NonNull y1: Number, @NonNull x2: Number, @NonNull y2: Number): Expression.Interpolator
open fun cubicBezier(@NonNull x1: Expression, @NonNull y1: Expression, @NonNull x2: Expression, @NonNull y2: Expression): Expression.Interpolator
Interpolates using the cubic bezier curve defined by the given control points.
Link copied to clipboard
Retrieves the shortest distance between two geometries.
Link copied to clipboard
Returns the result of floating point division of the first input by the second.
Link copied to clipboard
Returns the input string converted to lowercase.
Link copied to clipboard
Returns the mathematical constant e.
Link copied to clipboard
open fun eq(@NonNull compareOne: Expression, @NonNull compareTwo: String, @NonNull collator: Expression): Expression
open fun eq(@NonNull compareOne: Expression, @NonNull compareTwo: Expression, @NonNull collator: Expression): Expression
Returns true if the input values are equal, false otherwise.
Link copied to clipboard
Interpolates exponentially between the stops just less than and just greater than the input.
Link copied to clipboard
Returns the largest integer that is less than or equal to the input.
Link copied to clipboard
Returns formatted text containing annotations for use in mixed-format text-field entries.
Link copied to clipboard
open fun formatEntry(@NonNull text: String, @Nullable formatOptions: Array<Expression.FormatOption>): Expression.FormatEntry
open fun formatEntry(@NonNull text: Expression, @Nullable formatOptions: Array<Expression.FormatOption>): Expression.FormatEntry
Returns a format entry that can be used in format to create formatted text fields.
Link copied to clipboard
Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.
Link copied to clipboard
Retrieves a property value from the current feature's properties, or from another object if a second argument is provided.
Retrieves a property value from another object.
Link copied to clipboard
open fun gt(@NonNull compareOne: Expression, @NonNull compareTwo: String, @NonNull collator: Expression): Expression
open fun gt(@NonNull compareOne: Expression, @NonNull compareTwo: Expression, @NonNull collator: Expression): Expression
Returns true if the first input is strictly greater than the second, false otherwise.
Link copied to clipboard
open fun gte(@NonNull compareOne: Expression, @NonNull compareTwo: String, @NonNull collator: Expression): Expression
open fun gte(@NonNull compareOne: Expression, @NonNull compareTwo: Expression, @NonNull collator: Expression): Expression
Returns true if the first input is greater than or equal to the second, false otherwise.
Link copied to clipboard
Tests for the presence of an property value in the current feature's properties.
Tests for the presence of an property value from another object.
Link copied to clipboard
Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel.
Link copied to clipboard
Gets the feature's id, if it has one.
Link copied to clipboard
Returns image expression for use in '*-pattern' and 'icon-image' layer properties.
Link copied to clipboard
Retrieves whether an item exists in an array or a substring exists in a string.
Link copied to clipboard
open fun indexOf(@NonNull keyword: Expression, @NonNull input: Expression, @NonNull fromIndex: Expression): Expression
Returns the first position at which a `needle` can be found in a `haystack`.
Link copied to clipboard
open fun interpolate(@NonNull interpolation: Expression.Interpolator, @NonNull number: Expression, @NonNull stops: Array<Expression>): Expression
open fun interpolate(@NonNull interpolation: Expression.Interpolator, @NonNull number: Expression, stops: Array<Expression.Stop>): Expression
Produces continuous, smooth results by interpolating between pairs of input and output values (\"stops\").
Link copied to clipboard
Returns true if the input string is expected to render legibly.
Link copied to clipboard
Gets the length of an array or string.
Link copied to clipboard
Link copied to clipboard
interpolates linearly between the pair of stops just less than and just greater than the input.
Link copied to clipboard
Gets the progress along a gradient line.
Link copied to clipboard
Create a literal boolean expression.
Create a literal number expression.
Create a literal object expression.
Create a literal array expression
Create a literal string expression.
Link copied to clipboard
Returns the natural logarithm of the input.
Link copied to clipboard
Returns mathematical constant ln(2).
Link copied to clipboard
Returns the base-ten logarithm of the input.
Link copied to clipboard
Returns the base-two logarithm of the input.
Link copied to clipboard
open fun lt(@NonNull compareOne: Expression, @NonNull compareTwo: String, @NonNull collator: Expression): Expression
open fun lt(@NonNull compareOne: Expression, @NonNull compareTwo: Expression, @NonNull collator: Expression): Expression
Returns true if the first input is strictly less than the second, false otherwise.
Link copied to clipboard
open fun lte(@NonNull compareOne: Expression, @NonNull compareTwo: String, @NonNull collator: Expression): Expression
open fun lte(@NonNull compareOne: Expression, @NonNull compareTwo: Expression, @NonNull collator: Expression): Expression
Returns true if the first input is less than or equal to the second, false otherwise.
Link copied to clipboard
open fun match(@NonNull input: Expression, @NonNull defaultOutput: Expression, @NonNull stops: Array<Expression.Stop>): Expression
Selects the output whose label value matches the input value, or the fallback value if no match is found.
Link copied to clipboard
Returns the maximum value of the inputs.
Link copied to clipboard
Returns the minimum value of the inputs.
Link copied to clipboard
Returns the remainder after integer division of the first input by the second.
Link copied to clipboard
Returns true if the input values are equal, false otherwise.
Returns `true` if the input values are not equal, `false` otherwise.
open fun neq(@NonNull compareOne: Expression, @NonNull compareTwo: String, @NonNull collator: Expression): Expression
open fun neq(@NonNull compareOne: Expression, @NonNull compareTwo: Expression, @NonNull collator: Expression): Expression
Returns true if the input values are not equal, false otherwise.
Link copied to clipboard
Logical negation.
Link copied to clipboard
Asserts that the input value is a number.
Link copied to clipboard
open fun numberFormat(@NonNull number: Number, @NonNull options: Array<Expression.NumberFormatOption>): Expression
open fun numberFormat(@NonNull number: Expression, @NonNull options: Array<Expression.NumberFormatOption>): Expression
Converts the input number into a string representation using the providing formatting rules.
Link copied to clipboard
Asserts that the input value is an object.
Link copied to clipboard
Returns the mathematical constant pi.
Link copied to clipboard
Returns the result of raising the first input to the power specified by the second.
Link copied to clipboard
Returns the product of the inputs.
Link copied to clipboard
Gets the feature properties object.
Link copied to clipboard
Returns a DSL equivalent of a raw expression.
Link copied to clipboard
Returns the IETF language tag of the locale being used by the provided collator.
Link copied to clipboard
open fun rgb(@NonNull red: Expression, @NonNull green: Expression, @NonNull blue: Expression): Expression
Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1.
Link copied to clipboard
open fun rgba(@NonNull red: Number, @NonNull green: Number, @NonNull blue: Number, @NonNull alpha: Number): Expression
open fun rgba(@NonNull red: Expression, @NonNull green: Expression, @NonNull blue: Expression, @NonNull alpha: Expression): Expression
Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1.
Link copied to clipboard
Rounds the input to the nearest integer.
Link copied to clipboard
Returns the sine of the input.
Link copied to clipboard
Returns items from an array or a substring from a string from a specified start index.
open fun slice(@NonNull input: Expression, @NonNull fromIndex: Expression, @NonNull toIndex: Expression): Expression
Returns items from an array or a substring from a string between a start index and an end index if set.
Link copied to clipboard
Returns the square root of the input Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(sqrt(25.0f))
);
Content copied to clipboard
Returns the square root of the input Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(sqrt(pi()))
);
Content copied to clipboard
Link copied to clipboard
open fun step(@NonNull input: Number, @NonNull defaultOutput: Number, stops: Array<Expression>): Expression
open fun step(@NonNull input: Number, @NonNull defaultOutput: Number, stops: Array<Expression.Stop>): Expression
open fun step(@NonNull input: Number, @NonNull defaultOutput: Expression, stops: Array<Expression>): Expression
open fun step(@NonNull input: Number, @NonNull defaultOutput: Expression, stops: Array<Expression.Stop>): Expression
open fun step(@NonNull input: Expression, @NonNull defaultOutput: Number, stops: Array<Expression>): Expression
open fun step(@NonNull input: Expression, @NonNull defaultOutput: Number, stops: Array<Expression.Stop>): Expression
open fun step(@NonNull input: Expression, @NonNull defaultOutput: Expression, @NonNull stops: Array<Expression>): Expression
open fun step(@NonNull input: Expression, @NonNull defaultOutput: Expression, stops: Array<Expression.Stop>): Expression
Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values (\"stops\").
Link copied to clipboard
Asserts that the input value is a string.
Link copied to clipboard
Returns the result of subtracting a number from 0.
Returns the result of subtracting the second input from the first.
Link copied to clipboard
Returns the sum of the inputs.
Link copied to clipboard
Selects the first output whose corresponding test condition evaluates to true.
Link copied to clipboard
Returns the tangent of the input.
Link copied to clipboard
Converts the input value to a boolean.
Link copied to clipboard
Converts the input value to a color.
Link copied to clipboard
Converts the input value to a number, if possible.
Link copied to clipboard
Converts input value to a padding.
Link copied to clipboard
Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.
Link copied to clipboard
Returns a string representation of the object that matches the definition set in the style specification.
Converts the input value to a string.
Link copied to clipboard
Returns a string describing the type of the given value.
Link copied to clipboard
Returns the input string converted to uppercase.
Link copied to clipboard
References variable bound using let.
Link copied to clipboard
Link copied to clipboard
Gets the current zoom level.