// 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 the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> rasterFadeDuration(CameraFunction function) { return new PaintPropertyValue<>("raster-fade-duration", function); } /** * The color with which the background will be drawn. * * @param value a int color value * @return property wrapper around String color */ public static PropertyValue backgroundColor(@ColorInt int value) { return new PaintPropertyValue<>("background-color", colorToRgbaString(value)); } /** * The color with which the background will be drawn. * * @param value a String value * @return property wrapper around String */ public static PropertyValue backgroundColor(String value) { return new PaintPropertyValue<>("background-color", value); } /** * The color with which the background will be drawn. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> backgroundColor(CameraFunction function) { return new PaintPropertyValue<>("background-color", function); } /** * Name of image in sprite to use for drawing an image background. 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 backgroundPattern(String value) { return new PaintPropertyValue<>("background-pattern", value); } /** * Name of image in sprite to use for drawing an image background. 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> backgroundPattern(CameraFunction function) { return new PaintPropertyValue<>("background-pattern", function); } /** * The opacity at which the background will be drawn. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue backgroundOpacity(Float value) { return new PaintPropertyValue<>("background-opacity", value); } /** * The opacity at which the background 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> backgroundOpacity(CameraFunction function) { return new PaintPropertyValue<>("background-opacity", function); } /** * The display of line endings. * * @param value a String value * @return property wrapper around String */ public static PropertyValue lineCap(@Property.LINE_CAP String value) { return new LayoutPropertyValue<>("line-cap", value); } /** * The display of line endings. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> lineCap(CameraFunction function) { return new LayoutPropertyValue<>("line-cap", function); } /** * The display of lines when joining. * * @param value a String value * @return property wrapper around String */ public static PropertyValue lineJoin(@Property.LINE_JOIN String value) { return new LayoutPropertyValue<>("line-join", value); } /** * The display of lines when joining. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> lineJoin(CameraFunction function) { return new LayoutPropertyValue<>("line-join", function); } /** * Used to automatically convert miter joins to bevel joins for sharp angles. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue lineMiterLimit(Float value) { return new LayoutPropertyValue<>("line-miter-limit", value); } /** * Used to automatically convert miter joins to bevel joins for sharp angles. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> lineMiterLimit(CameraFunction function) { return new LayoutPropertyValue<>("line-miter-limit", function); } /** * Used to automatically convert round joins to miter joins for shallow angles. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue lineRoundLimit(Float value) { return new LayoutPropertyValue<>("line-round-limit", value); } /** * Used to automatically convert round joins to miter joins for shallow angles. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> lineRoundLimit(CameraFunction function) { return new LayoutPropertyValue<>("line-round-limit", function); } /** * Label placement relative to its geometry. * * @param value a String value * @return property wrapper around String */ public static PropertyValue symbolPlacement(@Property.SYMBOL_PLACEMENT String value) { return new LayoutPropertyValue<>("symbol-placement", value); } /** * Label placement relative to its geometry. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> symbolPlacement(CameraFunction function) { return new LayoutPropertyValue<>("symbol-placement", function); } /** * Distance between two symbol anchors. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue symbolSpacing(Float value) { return new LayoutPropertyValue<>("symbol-spacing", value); } /** * Distance between two symbol anchors. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> symbolSpacing(CameraFunction function) { return new LayoutPropertyValue<>("symbol-spacing", function); } /** * If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue symbolAvoidEdges(Boolean value) { return new LayoutPropertyValue<>("symbol-avoid-edges", value); } /** * If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> symbolAvoidEdges(CameraFunction function) { return new LayoutPropertyValue<>("symbol-avoid-edges", function); } /** * If true, the icon will be visible even if it collides with other previously drawn symbols. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue iconAllowOverlap(Boolean value) { return new LayoutPropertyValue<>("icon-allow-overlap", value); } /** * If true, the icon will be visible even if it collides with other previously drawn symbols. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> iconAllowOverlap(CameraFunction function) { return new LayoutPropertyValue<>("icon-allow-overlap", function); } /** * If true, other symbols can be visible even if they collide with the icon. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue iconIgnorePlacement(Boolean value) { return new LayoutPropertyValue<>("icon-ignore-placement", value); } /** * If true, other symbols can be visible even if they collide with the icon. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> iconIgnorePlacement(CameraFunction function) { return new LayoutPropertyValue<>("icon-ignore-placement", function); } /** * If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue iconOptional(Boolean value) { return new LayoutPropertyValue<>("icon-optional", value); } /** * If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> iconOptional(CameraFunction function) { return new LayoutPropertyValue<>("icon-optional", function); } /** * In combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of icons. * * @param value a String value * @return property wrapper around String */ public static PropertyValue iconRotationAlignment(@Property.ICON_ROTATION_ALIGNMENT String value) { return new LayoutPropertyValue<>("icon-rotation-alignment", value); } /** * In combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of icons. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> iconRotationAlignment(CameraFunction function) { return new LayoutPropertyValue<>("icon-rotation-alignment", function); } /** * Scale factor for icon. 1 is original size, 3 triples the size. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue iconSize(Float value) { return new LayoutPropertyValue<>("icon-size", value); } /** * Scale factor for icon. 1 is original size, 3 triples the size. * * @param the function input type * @param function a wrapper function for Float * @return property wrapper around a Float function */ public static PropertyValue> iconSize(Function function) { return new LayoutPropertyValue<>("icon-size", function); } /** * Scales the icon to fit around the associated text. * * @param value a String value * @return property wrapper around String */ public static PropertyValue iconTextFit(@Property.ICON_TEXT_FIT String value) { return new LayoutPropertyValue<>("icon-text-fit", value); } /** * Scales the icon to fit around the associated text. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> iconTextFit(CameraFunction function) { return new LayoutPropertyValue<>("icon-text-fit", function); } /** * Size of the additional area added to dimensions determined by {@link Property.ICON_TEXT_FIT}, in clockwise order: top, right, bottom, left. * * @param value a Float[] value * @return property wrapper around Float[] */ public static PropertyValue iconTextFitPadding(Float[] value) { return new LayoutPropertyValue<>("icon-text-fit-padding", value); } /** * Size of the additional area added to dimensions determined by {@link Property.ICON_TEXT_FIT}, in clockwise order: top, right, bottom, left. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float[] * @return property wrapper around a Float[] function */ public static PropertyValue> iconTextFitPadding(CameraFunction function) { return new LayoutPropertyValue<>("icon-text-fit-padding", function); } /** * Name of image in sprite to use for drawing an image background. A string with {tokens} replaced, referencing the data property to pull from. * * @param value a String value * @return property wrapper around String */ public static PropertyValue iconImage(String value) { return new LayoutPropertyValue<>("icon-image", value); } /** * Name of image in sprite to use for drawing an image background. A string with {tokens} replaced, referencing the data property to pull from. * * @param the function input type * @param function a wrapper function for String * @return property wrapper around a String function */ public static PropertyValue> iconImage(Function function) { return new LayoutPropertyValue<>("icon-image", function); } /** * Rotates the icon clockwise. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue iconRotate(Float value) { return new LayoutPropertyValue<>("icon-rotate", value); } /** * Rotates the icon clockwise. * * @param the function input type * @param function a wrapper function for Float * @return property wrapper around a Float function */ public static PropertyValue> iconRotate(Function function) { return new LayoutPropertyValue<>("icon-rotate", function); } /** * Size of the additional area around the icon bounding box used for detecting symbol collisions. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue iconPadding(Float value) { return new LayoutPropertyValue<>("icon-padding", value); } /** * Size of the additional area around the icon bounding box used for detecting symbol collisions. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> iconPadding(CameraFunction function) { return new LayoutPropertyValue<>("icon-padding", function); } /** * If true, the icon may be flipped to prevent it from being rendered upside-down. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue iconKeepUpright(Boolean value) { return new LayoutPropertyValue<>("icon-keep-upright", value); } /** * If true, the icon may be flipped to prevent it from being rendered upside-down. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> iconKeepUpright(CameraFunction function) { return new LayoutPropertyValue<>("icon-keep-upright", function); } /** * Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. When combined with {@link PropertyFactory#iconRotate} the offset will be as if the rotated direction was up. * * @param value a Float[] value * @return property wrapper around Float[] */ public static PropertyValue iconOffset(Float[] value) { return new LayoutPropertyValue<>("icon-offset", value); } /** * Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. When combined with {@link PropertyFactory#iconRotate} the offset will be as if the rotated direction was up. * * @param the function input type * @param function a wrapper function for Float[] * @return property wrapper around a Float[] function */ public static PropertyValue> iconOffset(Function function) { return new LayoutPropertyValue<>("icon-offset", function); } /** * Orientation of text when map is pitched. * * @param value a String value * @return property wrapper around String */ public static PropertyValue textPitchAlignment(@Property.TEXT_PITCH_ALIGNMENT String value) { return new LayoutPropertyValue<>("text-pitch-alignment", value); } /** * Orientation of text when 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> textPitchAlignment(CameraFunction function) { return new LayoutPropertyValue<>("text-pitch-alignment", function); } /** * In combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of the individual glyphs forming the text. * * @param value a String value * @return property wrapper around String */ public static PropertyValue textRotationAlignment(@Property.TEXT_ROTATION_ALIGNMENT String value) { return new LayoutPropertyValue<>("text-rotation-alignment", value); } /** * In combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of the individual glyphs forming the text. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> textRotationAlignment(CameraFunction function) { return new LayoutPropertyValue<>("text-rotation-alignment", function); } /** * Value to use for a text label. Feature properties are specified using tokens like {field_name}. (Token replacement is only supported for literal {@link PropertyFactory#textField} values--not for property functions.) * * @param value a String value * @return property wrapper around String */ public static PropertyValue textField(String value) { return new LayoutPropertyValue<>("text-field", value); } /** * Value to use for a text label. Feature properties are specified using tokens like {field_name}. (Token replacement is only supported for literal {@link PropertyFactory#textField} values--not for property functions.) * * @param the function input type * @param function a wrapper function for String * @return property wrapper around a String function */ public static PropertyValue> textField(Function function) { return new LayoutPropertyValue<>("text-field", function); } /** * Font stack to use for displaying text. * * @param value a String[] value * @return property wrapper around String[] */ public static PropertyValue textFont(String[] value) { return new LayoutPropertyValue<>("text-font", value); } /** * Font stack to use for displaying text. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String[] * @return property wrapper around a String[] function */ public static PropertyValue> textFont(CameraFunction function) { return new LayoutPropertyValue<>("text-font", function); } /** * Font size. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textSize(Float value) { return new LayoutPropertyValue<>("text-size", value); } /** * Font size. * * @param the function input type * @param function a wrapper function for Float * @return property wrapper around a Float function */ public static PropertyValue> textSize(Function function) { return new LayoutPropertyValue<>("text-size", function); } /** * The maximum line width for text wrapping. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textMaxWidth(Float value) { return new LayoutPropertyValue<>("text-max-width", value); } /** * The maximum line width for text wrapping. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> textMaxWidth(CameraFunction function) { return new LayoutPropertyValue<>("text-max-width", function); } /** * Text leading value for multi-line text. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textLineHeight(Float value) { return new LayoutPropertyValue<>("text-line-height", value); } /** * Text leading value for multi-line text. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> textLineHeight(CameraFunction function) { return new LayoutPropertyValue<>("text-line-height", function); } /** * Text tracking amount. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textLetterSpacing(Float value) { return new LayoutPropertyValue<>("text-letter-spacing", value); } /** * Text tracking amount. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> textLetterSpacing(CameraFunction function) { return new LayoutPropertyValue<>("text-letter-spacing", function); } /** * Text justification options. * * @param value a String value * @return property wrapper around String */ public static PropertyValue textJustify(@Property.TEXT_JUSTIFY String value) { return new LayoutPropertyValue<>("text-justify", value); } /** * Text justification options. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> textJustify(CameraFunction function) { return new LayoutPropertyValue<>("text-justify", function); } /** * Part of the text placed closest to the anchor. * * @param value a String value * @return property wrapper around String */ public static PropertyValue textAnchor(@Property.TEXT_ANCHOR String value) { return new LayoutPropertyValue<>("text-anchor", value); } /** * Part of the text placed closest to the anchor. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for String * @return property wrapper around a String function */ public static PropertyValue> textAnchor(CameraFunction function) { return new LayoutPropertyValue<>("text-anchor", function); } /** * Maximum angle change between adjacent characters. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textMaxAngle(Float value) { return new LayoutPropertyValue<>("text-max-angle", value); } /** * Maximum angle change between adjacent characters. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> textMaxAngle(CameraFunction function) { return new LayoutPropertyValue<>("text-max-angle", function); } /** * Rotates the text clockwise. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textRotate(Float value) { return new LayoutPropertyValue<>("text-rotate", value); } /** * Rotates the text clockwise. * * @param the function input type * @param function a wrapper function for Float * @return property wrapper around a Float function */ public static PropertyValue> textRotate(Function function) { return new LayoutPropertyValue<>("text-rotate", function); } /** * Size of the additional area around the text bounding box used for detecting symbol collisions. * * @param value a Float value * @return property wrapper around Float */ public static PropertyValue textPadding(Float value) { return new LayoutPropertyValue<>("text-padding", value); } /** * Size of the additional area around the text bounding box used for detecting symbol collisions. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Float * @return property wrapper around a Float function */ public static PropertyValue> textPadding(CameraFunction function) { return new LayoutPropertyValue<>("text-padding", function); } /** * If true, the text may be flipped vertically to prevent it from being rendered upside-down. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue textKeepUpright(Boolean value) { return new LayoutPropertyValue<>("text-keep-upright", value); } /** * If true, the text may be flipped vertically to prevent it from being rendered upside-down. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> textKeepUpright(CameraFunction function) { return new LayoutPropertyValue<>("text-keep-upright", function); } /** * Specifies how to capitalize text, similar to the CSS {@link PropertyFactory#textTransform} property. * * @param value a String value * @return property wrapper around String */ public static PropertyValue textTransform(@Property.TEXT_TRANSFORM String value) { return new LayoutPropertyValue<>("text-transform", value); } /** * Specifies how to capitalize text, similar to the CSS {@link PropertyFactory#textTransform} property. * * @param the function input type * @param function a wrapper function for String * @return property wrapper around a String function */ public static PropertyValue> textTransform(Function function) { return new LayoutPropertyValue<>("text-transform", function); } /** * Offset distance of text from its anchor. 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 textOffset(Float[] value) { return new LayoutPropertyValue<>("text-offset", value); } /** * Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. * * @param the function input type * @param function a wrapper function for Float[] * @return property wrapper around a Float[] function */ public static PropertyValue> textOffset(Function function) { return new LayoutPropertyValue<>("text-offset", function); } /** * If true, the text will be visible even if it collides with other previously drawn symbols. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue textAllowOverlap(Boolean value) { return new LayoutPropertyValue<>("text-allow-overlap", value); } /** * If true, the text will be visible even if it collides with other previously drawn symbols. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> textAllowOverlap(CameraFunction function) { return new LayoutPropertyValue<>("text-allow-overlap", function); } /** * If true, other symbols can be visible even if they collide with the text. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue textIgnorePlacement(Boolean value) { return new LayoutPropertyValue<>("text-ignore-placement", value); } /** * If true, other symbols can be visible even if they collide with the text. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> textIgnorePlacement(CameraFunction function) { return new LayoutPropertyValue<>("text-ignore-placement", function); } /** * If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not. * * @param value a Boolean value * @return property wrapper around Boolean */ public static PropertyValue textOptional(Boolean value) { return new LayoutPropertyValue<>("text-optional", value); } /** * If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not. * * @param the zoom parameter type * @param function a wrapper {@link CameraFunction} for Boolean * @return property wrapper around a Boolean function */ public static PropertyValue> textOptional(CameraFunction function) { return new LayoutPropertyValue<>("text-optional", function); } @SuppressLint("DefaultLocale") public static String colorToRgbaString(@ColorInt int value) { return String.format("rgba(%d, %d, %d, %d)", (value >> 16) & 0xFF, (value >> 8) & 0xFF, value & 0xFF, (value >> 24) & 0xFF); } }