@UiThread public class LineLayer extends Layer
Constructor and Description |
---|
LineLayer(long nativePtr)
Creates a LineLayer.
|
LineLayer(String layerId,
String sourceId)
Creates a LineLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
PropertyValue<Float> |
getLineBlur()
Get the LineBlur property
|
PropertyValue<String> |
getLineCap()
Get the LineCap property
|
PropertyValue<String> |
getLineColor()
Get the LineColor property
|
int |
getLineColorAsInt()
The color with which the line will be drawn.
|
PropertyValue<Float[]> |
getLineDasharray()
Get the LineDasharray property
|
PropertyValue<Float> |
getLineGapWidth()
Get the LineGapWidth property
|
PropertyValue<String> |
getLineJoin()
Get the LineJoin property
|
PropertyValue<Float> |
getLineMiterLimit()
Get the LineMiterLimit property
|
PropertyValue<Float> |
getLineOffset()
Get the LineOffset property
|
PropertyValue<Float> |
getLineOpacity()
Get the LineOpacity property
|
PropertyValue<String> |
getLinePattern()
Get the LinePattern property
|
PropertyValue<Float> |
getLineRoundLimit()
Get the LineRoundLimit property
|
PropertyValue<Float[]> |
getLineTranslate()
Get the LineTranslate property
|
PropertyValue<String> |
getLineTranslateAnchor()
Get the LineTranslateAnchor property
|
PropertyValue<Float> |
getLineWidth()
Get the LineWidth property
|
protected void |
initialize(String layerId,
String sourceId) |
void |
setFilter(Filter.Statement filter)
Set a single filter.
|
void |
setSourceLayer(String sourceLayer)
Set the source layer.
|
LineLayer |
withFilter(Filter.Statement filter)
Set a single filter.
|
LineLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
LineLayer |
withSourceLayer(String sourceLayer)
Set the source Layer.
|
getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setMaxZoom, setMinZoom, setProperties
public LineLayer(long nativePtr)
nativePtr
- pointer used by corepublic void setSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic LineLayer withSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic void setFilter(Filter.Statement filter)
filter
- the filter to setpublic LineLayer withFilter(Filter.Statement filter)
filter
- the filter to setpublic LineLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<String> getLineCap()
public PropertyValue<String> getLineJoin()
public PropertyValue<Float> getLineMiterLimit()
public PropertyValue<Float> getLineRoundLimit()
public PropertyValue<Float> getLineOpacity()
public PropertyValue<String> getLineColor()
public int getLineColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<Float[]> getLineTranslate()
public PropertyValue<String> getLineTranslateAnchor()
public PropertyValue<Float> getLineWidth()
public PropertyValue<Float> getLineGapWidth()
public PropertyValue<Float> getLineOffset()
public PropertyValue<Float> getLineBlur()
public PropertyValue<Float[]> getLineDasharray()
public PropertyValue<String> getLinePattern()
© 2015–2017 Mapbox. All rights reserved.