[core] Support fill-extrusion-vertical-gradient

This commit is contained in:
Bruno de Oliveira Abinader
2018-11-28 11:29:50 +02:00
parent 217acb8948
commit e64c28613a
30 changed files with 1830 additions and 1576 deletions

View File

@@ -370,6 +370,18 @@ public class FillExtrusionLayer extends Layer {
nativeSetFillExtrusionBaseTransition(options.getDuration(), options.getDelay());
}
/**
* Get the FillExtrusionVerticalGradient property
*
* @return property wrapper value around Boolean
*/
@NonNull
@SuppressWarnings("unchecked")
public PropertyValue<Boolean> getFillExtrusionVerticalGradient() {
checkThread();
return (PropertyValue<Boolean>) new PropertyValue("fill-extrusion-vertical-gradient", nativeGetFillExtrusionVerticalGradient());
}
@NonNull
@Keep
private native Object nativeGetFillExtrusionOpacity();
@@ -440,6 +452,10 @@ public class FillExtrusionLayer extends Layer {
@Keep
private native void nativeSetFillExtrusionBaseTransition(long duration, long delay);
@NonNull
@Keep
private native Object nativeGetFillExtrusionVerticalGradient();
@Override
@Keep
protected native void finalize() throws Throwable;

View File

@@ -1244,6 +1244,26 @@ public class PropertyFactory {
return new PaintPropertyValue<>("fill-extrusion-base", expression);
}
/**
* Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.
*
* @param value a Boolean value
* @return property wrapper around Boolean
*/
public static PropertyValue<Boolean> fillExtrusionVerticalGradient(Boolean value) {
return new PaintPropertyValue<>("fill-extrusion-vertical-gradient", value);
}
/**
* Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.
*
* @param expression an expression statement
* @return property wrapper around an expression statement
*/
public static PropertyValue<Expression> fillExtrusionVerticalGradient(Expression expression) {
return new PaintPropertyValue<>("fill-extrusion-vertical-gradient", expression);
}
/**
* The opacity at which the image will be drawn.
*