Z - the zoom type (usually Float)I - the input type (the feature property type)O - the output type (the property type)public class CompositeFunction<Z extends java.lang.Number,I,O> extends Function<Stop.CompositeValue<Z,I>,O>
Composite functions allow the appearance of a map feature to change with both its properties and zoom. Each stop is an array with two elements, the first is an object with a property input value and a zoom, and the second is a function output value. Note that support for property functions is not yet complete.
| Modifier and Type | Method and Description |
|---|---|
PropertyValue<O> |
getDefaultValue() |
java.lang.String |
getProperty()
INTERNAL USAGE ONLY
|
java.util.Map<java.lang.String,java.lang.Object> |
toValueObject()
INTERNAL USAGE ONLY
|
CompositeFunction<Z,I,O> |
withDefaultValue(PropertyValue<O> defaultValue)
Set the default value
|
public CompositeFunction<Z,I,O> withDefaultValue(PropertyValue<O> defaultValue)
defaultValue - the default value to use when no other applies@Nullable public PropertyValue<O> getDefaultValue()
public java.lang.String getProperty()
public java.util.Map<java.lang.String,java.lang.Object> toValueObject()
toValueObject in class Function<Stop.CompositeValue<Z extends java.lang.Number,I>,O>