[core] Support fill-extrusion-vertical-gradient
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user