Class BackgroundLayer
java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.BackgroundLayer
The background color or pattern of the map.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get the BackgroundColor propertyintThe color with which the background will be drawn.Get the BackgroundColor property transition optionsGet the BackgroundOpacity propertyGet the BackgroundOpacity property transition optionsGet the BackgroundPattern propertyGet the BackgroundPattern property transition optionsprotected voidinitialize(String layerId) voidSet the BackgroundColor property transition optionsvoidSet the BackgroundOpacity property transition optionsvoidSet the BackgroundPattern property transition optionswithProperties(PropertyValue<?>... properties) Set a property or properties.Methods inherited from class com.trimblemaps.mapsdk.style.layers.Layer
checkThread, getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, isDetached, nativeGetFilter, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetSourceId, nativeGetSourceLayer, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setDetached, setMaxZoom, setMinZoom, setProperties
-
Constructor Details
-
BackgroundLayer
Creates a BackgroundLayer.- Parameters:
layerId- the id of the layer
-
-
Method Details
-
initialize
-
withProperties
Set a property or properties.- Parameters:
properties- the var-args properties- Returns:
- This
-
getBackgroundColor
Get the BackgroundColor property- Returns:
- property wrapper value around String
-
getBackgroundColorAsInt
@ColorInt public int getBackgroundColorAsInt()The color with which the background will be drawn.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getBackgroundColorTransition
Get the BackgroundColor property transition options- Returns:
- transition options for String
-
setBackgroundColorTransition
Set the BackgroundColor property transition options- Parameters:
options- transition options for String
-
getBackgroundPattern
Get the BackgroundPattern property- Returns:
- property wrapper value around String
-
getBackgroundPatternTransition
Get the BackgroundPattern property transition options- Returns:
- transition options for String
-
setBackgroundPatternTransition
Set the BackgroundPattern property transition options- Parameters:
options- transition options for String
-
getBackgroundOpacity
Get the BackgroundOpacity property- Returns:
- property wrapper value around Float
-
getBackgroundOpacityTransition
Get the BackgroundOpacity property transition options- Returns:
- transition options for Float
-
setBackgroundOpacityTransition
Set the BackgroundOpacity property transition options- Parameters:
options- transition options for Float
-
finalize
-