@UiThread public class BackgroundLayer extends Layer
Constructor and Description |
---|
BackgroundLayer(long nativePtr)
Creates a BackgroundLayer.
|
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.
|
PropertyValue<Float> |
getBackgroundOpacity()
Get the BackgroundOpacity property
|
PropertyValue<String> |
getBackgroundPattern()
Get the BackgroundPattern property
|
protected void |
initialize(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, setProperties
public BackgroundLayer(long nativePtr)
nativePtr
- pointer used by corepublic BackgroundLayer(String layerId)
layerId
- the id of the layerprotected void initialize(String layerId)
public BackgroundLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<String> getBackgroundColor()
public int getBackgroundColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<String> getBackgroundPattern()
public PropertyValue<Float> getBackgroundOpacity()
© 2015–2017 Mapbox. All rights reserved.