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 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() |
String |
getProperty()
INTERNAL USAGE ONLY
|
Map<String,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 String getProperty()
public Map<String,Object> toValueObject()
toValueObject
in class Function<Stop.CompositeValue<Z extends Number,I>,O>
© 2015–2017 Mapbox. All rights reserved.