public class BackgroundLayer extends Layer
Constructor and Description |
---|
BackgroundLayer(String layerId)
Creates a BackgroundLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
PropertyValue<String> |
getBackgroundColor()
Get the BackgroundColor property
|
int |
getBackgroundColorAsInt()
The color with which the background will be drawn.
|
TransitionOptions |
getBackgroundColorTransition()
Get the BackgroundColor property transition options
|
PropertyValue<Float> |
getBackgroundOpacity()
Get the BackgroundOpacity property
|
TransitionOptions |
getBackgroundOpacityTransition()
Get the BackgroundOpacity property transition options
|
PropertyValue<String> |
getBackgroundPattern()
Get the BackgroundPattern property
|
TransitionOptions |
getBackgroundPatternTransition()
Get the BackgroundPattern property transition options
|
protected void |
initialize(String layerId) |
void |
setBackgroundColorTransition(TransitionOptions options)
Set the BackgroundColor property transition options
|
void |
setBackgroundOpacityTransition(TransitionOptions options)
Set the BackgroundOpacity property transition options
|
void |
setBackgroundPatternTransition(TransitionOptions options)
Set the BackgroundPattern property transition options
|
BackgroundLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
checkThread, getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, isDetached, nativeGetFilter, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetSourceId, nativeGetSourceLayer, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setDetached, setMaxZoom, setMinZoom, setProperties
public BackgroundLayer(String layerId)
layerId
- the id of the layerprotected void initialize(String layerId)
public BackgroundLayer withProperties(PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<String> getBackgroundColor()
public int getBackgroundColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getBackgroundColorTransition()
public void setBackgroundColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<String> getBackgroundPattern()
public TransitionOptions getBackgroundPatternTransition()
public void setBackgroundPatternTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<Float> getBackgroundOpacity()
public TransitionOptions getBackgroundOpacityTransition()
public void setBackgroundOpacityTransition(TransitionOptions options)
options
- transition options for Float© 2015–2019 Mapbox. All rights reserved.