public class MBLookup extends MBExpression
colors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoom
functionName
NIL
Constructor and Description |
---|
MBLookup(JSONArray json) |
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression()
Determines which expression to use.
|
Expression |
lookupAt()
Retrieves an item from an array.
|
Expression |
lookupGet()
Retrieves a property value from the current feature's properties, or from another object if a
second argument is provided.
|
Expression |
lookupHas()
Tests for the presence of an property value in the current feature's properties, or from
another object if a second argument is provided.
|
Expression |
lookupLength()
Gets the length of an array or string.
|
canCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteral
accept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
evaluate
evaluate
public Expression lookupAt()
public Expression lookupGet()
As a note, the mbstyle requires json objects for lookup, and evaluates the object as such.
public Expression lookupHas()
As a note, the mbstyle requires json objects for lookup, and evaluates the object as such.
public Expression lookupLength()
public Expression getExpression() throws MBFormatException
MBExpression
getExpression
in class MBExpression
MBFormatException
Copyright © 1996–2021 Geotools. All rights reserved.