Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make android-style-code`.
package com.mapbox.mapboxsdk.style.layers;
import android.annotation.SuppressLint;
import android.support.annotation.ColorInt;
import com.mapbox.mapboxsdk.style.functions.Function;
import com.mapbox.mapboxsdk.style.functions.CameraFunction;
/**
* Constructs paint/layout properties for Layers
*
* @see Layer style documentation
*/
public class PropertyFactory {
/**
* Set the property visibility.
*
* @param value the visibility value
* @return property wrapper around visibility
*/
public static PropertyValue visibility(@Property.VISIBILITY String value) {
return new LayoutPropertyValue<>("visibility", value);
}
/**
* Set the property visibility.
*
* @param the function input type
* @param function the visibility function
* @return property wrapper around a String function
*/
public static PropertyValue> visibility(Function function) {
return new LayoutPropertyValue<>("visibility", function);
}
/**
* Whether or not the fill should be antialiased.
*
* @param value a Boolean value
* @return property wrapper around Boolean
*/
public static PropertyValue fillAntialias(Boolean value) {
return new PaintPropertyValue<>("fill-antialias", value);
}
/**
* Whether or not the fill should be antialiased.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Boolean
* @return property wrapper around a Boolean function
*/
public static PropertyValue> fillAntialias(CameraFunction function) {
return new PaintPropertyValue<>("fill-antialias", function);
}
/**
* The opacity of the entire fill layer. In contrast to the {@link PropertyFactory#fillColor}, this value will also affect the 1px stroke around the fill, if the stroke is used.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue fillOpacity(Float value) {
return new PaintPropertyValue<>("fill-opacity", value);
}
/**
* The opacity of the entire fill layer. In contrast to the {@link PropertyFactory#fillColor}, this value will also affect the 1px stroke around the fill, if the stroke is used.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> fillOpacity(Function function) {
return new PaintPropertyValue<>("fill-opacity", function);
}
/**
* The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue fillColor(@ColorInt int value) {
return new PaintPropertyValue<>("fill-color", colorToRgbaString(value));
}
/**
* The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue fillColor(String value) {
return new PaintPropertyValue<>("fill-color", value);
}
/**
* The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> fillColor(Function function) {
return new PaintPropertyValue<>("fill-color", function);
}
/**
* The outline color of the fill. Matches the value of {@link PropertyFactory#fillColor} if unspecified.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue fillOutlineColor(@ColorInt int value) {
return new PaintPropertyValue<>("fill-outline-color", colorToRgbaString(value));
}
/**
* The outline color of the fill. Matches the value of {@link PropertyFactory#fillColor} if unspecified.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue fillOutlineColor(String value) {
return new PaintPropertyValue<>("fill-outline-color", value);
}
/**
* The outline color of the fill. Matches the value of {@link PropertyFactory#fillColor} if unspecified.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> fillOutlineColor(Function function) {
return new PaintPropertyValue<>("fill-outline-color", function);
}
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
*
* @param value a Float[] value
* @return property wrapper around Float[]
*/
public static PropertyValue fillTranslate(Float[] value) {
return new PaintPropertyValue<>("fill-translate", value);
}
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float[]
* @return property wrapper around a Float[] function
*/
public static PropertyValue> fillTranslate(CameraFunction function) {
return new PaintPropertyValue<>("fill-translate", function);
}
/**
* Controls the translation reference point.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue fillTranslateAnchor(@Property.FILL_TRANSLATE_ANCHOR String value) {
return new PaintPropertyValue<>("fill-translate-anchor", value);
}
/**
* Controls the translation reference point.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> fillTranslateAnchor(CameraFunction function) {
return new PaintPropertyValue<>("fill-translate-anchor", function);
}
/**
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue fillPattern(String value) {
return new PaintPropertyValue<>("fill-pattern", value);
}
/**
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> fillPattern(CameraFunction function) {
return new PaintPropertyValue<>("fill-pattern", function);
}
/**
* The opacity at which the line will be drawn.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue lineOpacity(Float value) {
return new PaintPropertyValue<>("line-opacity", value);
}
/**
* The opacity at which the line will be drawn.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> lineOpacity(Function function) {
return new PaintPropertyValue<>("line-opacity", function);
}
/**
* The color with which the line will be drawn.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue lineColor(@ColorInt int value) {
return new PaintPropertyValue<>("line-color", colorToRgbaString(value));
}
/**
* The color with which the line will be drawn.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue lineColor(String value) {
return new PaintPropertyValue<>("line-color", value);
}
/**
* The color with which the line will be drawn.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> lineColor(Function function) {
return new PaintPropertyValue<>("line-color", function);
}
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
*
* @param value a Float[] value
* @return property wrapper around Float[]
*/
public static PropertyValue lineTranslate(Float[] value) {
return new PaintPropertyValue<>("line-translate", value);
}
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float[]
* @return property wrapper around a Float[] function
*/
public static PropertyValue> lineTranslate(CameraFunction function) {
return new PaintPropertyValue<>("line-translate", function);
}
/**
* Controls the translation reference point.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue lineTranslateAnchor(@Property.LINE_TRANSLATE_ANCHOR String value) {
return new PaintPropertyValue<>("line-translate-anchor", value);
}
/**
* Controls the translation reference point.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> lineTranslateAnchor(CameraFunction function) {
return new PaintPropertyValue<>("line-translate-anchor", function);
}
/**
* Stroke thickness.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue lineWidth(Float value) {
return new PaintPropertyValue<>("line-width", value);
}
/**
* Stroke thickness.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> lineWidth(CameraFunction function) {
return new PaintPropertyValue<>("line-width", function);
}
/**
* Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue lineGapWidth(Float value) {
return new PaintPropertyValue<>("line-gap-width", value);
}
/**
* Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> lineGapWidth(Function function) {
return new PaintPropertyValue<>("line-gap-width", function);
}
/**
* The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue lineOffset(Float value) {
return new PaintPropertyValue<>("line-offset", value);
}
/**
* The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> lineOffset(Function function) {
return new PaintPropertyValue<>("line-offset", function);
}
/**
* Blur applied to the line, in density-independent pixels.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue lineBlur(Float value) {
return new PaintPropertyValue<>("line-blur", value);
}
/**
* Blur applied to the line, in density-independent pixels.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> lineBlur(Function function) {
return new PaintPropertyValue<>("line-blur", function);
}
/**
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width.
*
* @param value a Float[] value
* @return property wrapper around Float[]
*/
public static PropertyValue lineDasharray(Float[] value) {
return new PaintPropertyValue<>("line-dasharray", value);
}
/**
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float[]
* @return property wrapper around a Float[] function
*/
public static PropertyValue> lineDasharray(CameraFunction function) {
return new PaintPropertyValue<>("line-dasharray", function);
}
/**
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue linePattern(String value) {
return new PaintPropertyValue<>("line-pattern", value);
}
/**
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> linePattern(CameraFunction function) {
return new PaintPropertyValue<>("line-pattern", function);
}
/**
* The opacity at which the icon will be drawn.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue iconOpacity(Float value) {
return new PaintPropertyValue<>("icon-opacity", value);
}
/**
* The opacity at which the icon will be drawn.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> iconOpacity(Function function) {
return new PaintPropertyValue<>("icon-opacity", function);
}
/**
* The color of the icon. This can only be used with sdf icons.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue iconColor(@ColorInt int value) {
return new PaintPropertyValue<>("icon-color", colorToRgbaString(value));
}
/**
* The color of the icon. This can only be used with sdf icons.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue iconColor(String value) {
return new PaintPropertyValue<>("icon-color", value);
}
/**
* The color of the icon. This can only be used with sdf icons.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> iconColor(Function function) {
return new PaintPropertyValue<>("icon-color", function);
}
/**
* The color of the icon's halo. Icon halos can only be used with SDF icons.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue iconHaloColor(@ColorInt int value) {
return new PaintPropertyValue<>("icon-halo-color", colorToRgbaString(value));
}
/**
* The color of the icon's halo. Icon halos can only be used with SDF icons.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue iconHaloColor(String value) {
return new PaintPropertyValue<>("icon-halo-color", value);
}
/**
* The color of the icon's halo. Icon halos can only be used with SDF icons.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> iconHaloColor(Function function) {
return new PaintPropertyValue<>("icon-halo-color", function);
}
/**
* Distance of halo to the icon outline.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue iconHaloWidth(Float value) {
return new PaintPropertyValue<>("icon-halo-width", value);
}
/**
* Distance of halo to the icon outline.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> iconHaloWidth(Function function) {
return new PaintPropertyValue<>("icon-halo-width", function);
}
/**
* Fade out the halo towards the outside.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue iconHaloBlur(Float value) {
return new PaintPropertyValue<>("icon-halo-blur", value);
}
/**
* Fade out the halo towards the outside.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> iconHaloBlur(Function function) {
return new PaintPropertyValue<>("icon-halo-blur", function);
}
/**
* Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
*
* @param value a Float[] value
* @return property wrapper around Float[]
*/
public static PropertyValue iconTranslate(Float[] value) {
return new PaintPropertyValue<>("icon-translate", value);
}
/**
* Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float[]
* @return property wrapper around a Float[] function
*/
public static PropertyValue> iconTranslate(CameraFunction function) {
return new PaintPropertyValue<>("icon-translate", function);
}
/**
* Controls the translation reference point.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue iconTranslateAnchor(@Property.ICON_TRANSLATE_ANCHOR String value) {
return new PaintPropertyValue<>("icon-translate-anchor", value);
}
/**
* Controls the translation reference point.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> iconTranslateAnchor(CameraFunction function) {
return new PaintPropertyValue<>("icon-translate-anchor", function);
}
/**
* The opacity at which the text will be drawn.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue textOpacity(Float value) {
return new PaintPropertyValue<>("text-opacity", value);
}
/**
* The opacity at which the text will be drawn.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> textOpacity(Function function) {
return new PaintPropertyValue<>("text-opacity", function);
}
/**
* The color with which the text will be drawn.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue textColor(@ColorInt int value) {
return new PaintPropertyValue<>("text-color", colorToRgbaString(value));
}
/**
* The color with which the text will be drawn.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue textColor(String value) {
return new PaintPropertyValue<>("text-color", value);
}
/**
* The color with which the text will be drawn.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> textColor(Function function) {
return new PaintPropertyValue<>("text-color", function);
}
/**
* The color of the text's halo, which helps it stand out from backgrounds.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue textHaloColor(@ColorInt int value) {
return new PaintPropertyValue<>("text-halo-color", colorToRgbaString(value));
}
/**
* The color of the text's halo, which helps it stand out from backgrounds.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue textHaloColor(String value) {
return new PaintPropertyValue<>("text-halo-color", value);
}
/**
* The color of the text's halo, which helps it stand out from backgrounds.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> textHaloColor(Function function) {
return new PaintPropertyValue<>("text-halo-color", function);
}
/**
* Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue textHaloWidth(Float value) {
return new PaintPropertyValue<>("text-halo-width", value);
}
/**
* Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> textHaloWidth(Function function) {
return new PaintPropertyValue<>("text-halo-width", function);
}
/**
* The halo's fadeout distance towards the outside.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue textHaloBlur(Float value) {
return new PaintPropertyValue<>("text-halo-blur", value);
}
/**
* The halo's fadeout distance towards the outside.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> textHaloBlur(Function function) {
return new PaintPropertyValue<>("text-halo-blur", function);
}
/**
* Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
*
* @param value a Float[] value
* @return property wrapper around Float[]
*/
public static PropertyValue textTranslate(Float[] value) {
return new PaintPropertyValue<>("text-translate", value);
}
/**
* Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float[]
* @return property wrapper around a Float[] function
*/
public static PropertyValue> textTranslate(CameraFunction function) {
return new PaintPropertyValue<>("text-translate", function);
}
/**
* Controls the translation reference point.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue textTranslateAnchor(@Property.TEXT_TRANSLATE_ANCHOR String value) {
return new PaintPropertyValue<>("text-translate-anchor", value);
}
/**
* Controls the translation reference point.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> textTranslateAnchor(CameraFunction function) {
return new PaintPropertyValue<>("text-translate-anchor", function);
}
/**
* Circle radius.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue circleRadius(Float value) {
return new PaintPropertyValue<>("circle-radius", value);
}
/**
* Circle radius.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> circleRadius(Function function) {
return new PaintPropertyValue<>("circle-radius", function);
}
/**
* The fill color of the circle.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue circleColor(@ColorInt int value) {
return new PaintPropertyValue<>("circle-color", colorToRgbaString(value));
}
/**
* The fill color of the circle.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue circleColor(String value) {
return new PaintPropertyValue<>("circle-color", value);
}
/**
* The fill color of the circle.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> circleColor(Function function) {
return new PaintPropertyValue<>("circle-color", function);
}
/**
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue circleBlur(Float value) {
return new PaintPropertyValue<>("circle-blur", value);
}
/**
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> circleBlur(Function function) {
return new PaintPropertyValue<>("circle-blur", function);
}
/**
* The opacity at which the circle will be drawn.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue circleOpacity(Float value) {
return new PaintPropertyValue<>("circle-opacity", value);
}
/**
* The opacity at which the circle will be drawn.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> circleOpacity(Function function) {
return new PaintPropertyValue<>("circle-opacity", function);
}
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
*
* @param value a Float[] value
* @return property wrapper around Float[]
*/
public static PropertyValue circleTranslate(Float[] value) {
return new PaintPropertyValue<>("circle-translate", value);
}
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float[]
* @return property wrapper around a Float[] function
*/
public static PropertyValue> circleTranslate(CameraFunction function) {
return new PaintPropertyValue<>("circle-translate", function);
}
/**
* Controls the translation reference point.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue circleTranslateAnchor(@Property.CIRCLE_TRANSLATE_ANCHOR String value) {
return new PaintPropertyValue<>("circle-translate-anchor", value);
}
/**
* Controls the translation reference point.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> circleTranslateAnchor(CameraFunction function) {
return new PaintPropertyValue<>("circle-translate-anchor", function);
}
/**
* Controls the scaling behavior of the circle when the map is pitched.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue circlePitchScale(@Property.CIRCLE_PITCH_SCALE String value) {
return new PaintPropertyValue<>("circle-pitch-scale", value);
}
/**
* Controls the scaling behavior of the circle when the map is pitched.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for String
* @return property wrapper around a String function
*/
public static PropertyValue> circlePitchScale(CameraFunction function) {
return new PaintPropertyValue<>("circle-pitch-scale", function);
}
/**
* The width of the circle's stroke. Strokes are placed outside of the {@link PropertyFactory#circleRadius}.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue circleStrokeWidth(Float value) {
return new PaintPropertyValue<>("circle-stroke-width", value);
}
/**
* The width of the circle's stroke. Strokes are placed outside of the {@link PropertyFactory#circleRadius}.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> circleStrokeWidth(Function function) {
return new PaintPropertyValue<>("circle-stroke-width", function);
}
/**
* The stroke color of the circle.
*
* @param value a int color value
* @return property wrapper around String color
*/
public static PropertyValue circleStrokeColor(@ColorInt int value) {
return new PaintPropertyValue<>("circle-stroke-color", colorToRgbaString(value));
}
/**
* The stroke color of the circle.
*
* @param value a String value
* @return property wrapper around String
*/
public static PropertyValue circleStrokeColor(String value) {
return new PaintPropertyValue<>("circle-stroke-color", value);
}
/**
* The stroke color of the circle.
*
* @param the function input type
* @param function a wrapper function for String
* @return property wrapper around a String function
*/
public static PropertyValue> circleStrokeColor(Function function) {
return new PaintPropertyValue<>("circle-stroke-color", function);
}
/**
* The opacity of the circle's stroke.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue circleStrokeOpacity(Float value) {
return new PaintPropertyValue<>("circle-stroke-opacity", value);
}
/**
* The opacity of the circle's stroke.
*
* @param the function input type
* @param function a wrapper function for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> circleStrokeOpacity(Function function) {
return new PaintPropertyValue<>("circle-stroke-opacity", function);
}
/**
* The opacity at which the image will be drawn.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterOpacity(Float value) {
return new PaintPropertyValue<>("raster-opacity", value);
}
/**
* The opacity at which the image will be drawn.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> rasterOpacity(CameraFunction function) {
return new PaintPropertyValue<>("raster-opacity", function);
}
/**
* Rotates hues around the color wheel.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterHueRotate(Float value) {
return new PaintPropertyValue<>("raster-hue-rotate", value);
}
/**
* Rotates hues around the color wheel.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> rasterHueRotate(CameraFunction function) {
return new PaintPropertyValue<>("raster-hue-rotate", function);
}
/**
* Increase or reduce the brightness of the image. The value is the minimum brightness.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterBrightnessMin(Float value) {
return new PaintPropertyValue<>("raster-brightness-min", value);
}
/**
* Increase or reduce the brightness of the image. The value is the minimum brightness.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> rasterBrightnessMin(CameraFunction function) {
return new PaintPropertyValue<>("raster-brightness-min", function);
}
/**
* Increase or reduce the brightness of the image. The value is the maximum brightness.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterBrightnessMax(Float value) {
return new PaintPropertyValue<>("raster-brightness-max", value);
}
/**
* Increase or reduce the brightness of the image. The value is the maximum brightness.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> rasterBrightnessMax(CameraFunction function) {
return new PaintPropertyValue<>("raster-brightness-max", function);
}
/**
* Increase or reduce the saturation of the image.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterSaturation(Float value) {
return new PaintPropertyValue<>("raster-saturation", value);
}
/**
* Increase or reduce the saturation of the image.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> rasterSaturation(CameraFunction function) {
return new PaintPropertyValue<>("raster-saturation", function);
}
/**
* Increase or reduce the contrast of the image.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterContrast(Float value) {
return new PaintPropertyValue<>("raster-contrast", value);
}
/**
* Increase or reduce the contrast of the image.
*
* @param the zoom parameter type
* @param function a wrapper {@link CameraFunction} for Float
* @return property wrapper around a Float function
*/
public static PropertyValue> rasterContrast(CameraFunction function) {
return new PaintPropertyValue<>("raster-contrast", function);
}
/**
* Fade duration when a new tile is added.
*
* @param value a Float value
* @return property wrapper around Float
*/
public static PropertyValue rasterFadeDuration(Float value) {
return new PaintPropertyValue<>("raster-fade-duration", value);
}
/**
* Fade duration when a new tile is added.
*
* @param