literal
Create a literal number expression.
Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(literal(10.0f))
);
Content copied to clipboard
Return
the expression
Parameters
number
the number
Create a literal string expression.
Example usage:
SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
textField(literal("Text"))
);
Content copied to clipboard
Return
the expression
Parameters
string
the string
Create a literal boolean expression.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setProperties(
fillAntialias(literal(true))
);
Content copied to clipboard
Return
the expression
Parameters
bool
the boolean
Create a literal object expression.
Return
the expression
Parameters
object
the object
Create a literal array expression
Return
the expression
Parameters
array
the array