public class BackgroundLayer extends Layer
| Constructor and Description |
|---|
BackgroundLayer(long nativePtr)
Creates a BackgroundLayer.
|
BackgroundLayer(java.lang.String layerId)
Creates a BackgroundLayer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
PropertyValue<java.lang.String> |
getBackgroundColor()
Get the BackgroundColor property
|
int |
getBackgroundColorAsInt()
The color with which the background will be drawn.
|
PropertyValue<java.lang.Float> |
getBackgroundOpacity()
Get the BackgroundOpacity property
|
PropertyValue<java.lang.String> |
getBackgroundPattern()
Get the BackgroundPattern property
|
protected void |
initialize(java.lang.String layerId) |
BackgroundLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setMaxZoom, setMinZoom, setPropertiespublic BackgroundLayer(long nativePtr)
nativePtr - pointer used by corepublic BackgroundLayer(java.lang.String layerId)
layerId - the id of the layerprotected void initialize(java.lang.String layerId)
public BackgroundLayer withProperties(PropertyValue<?>... properties)
properties - the var-args propertiespublic PropertyValue<java.lang.String> getBackgroundColor()
public int getBackgroundColorAsInt()
java.lang.RuntimeException - thrown if property isn't a valuepublic PropertyValue<java.lang.String> getBackgroundPattern()
public PropertyValue<java.lang.Float> getBackgroundOpacity()