@UiThread public class SymbolLayer extends Layer
Constructor and Description |
---|
SymbolLayer(long nativePtr)
Creates a SymbolLayer.
|
SymbolLayer(String layerId,
String sourceId)
Creates a SymbolLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
PropertyValue<Boolean> |
getIconAllowOverlap()
Get the IconAllowOverlap property
|
PropertyValue<String> |
getIconColor()
Get the IconColor property
|
int |
getIconColorAsInt()
The color of the icon.
|
PropertyValue<Float> |
getIconHaloBlur()
Get the IconHaloBlur property
|
PropertyValue<String> |
getIconHaloColor()
Get the IconHaloColor property
|
int |
getIconHaloColorAsInt()
The color of the icon's halo.
|
PropertyValue<Float> |
getIconHaloWidth()
Get the IconHaloWidth property
|
PropertyValue<Boolean> |
getIconIgnorePlacement()
Get the IconIgnorePlacement property
|
PropertyValue<String> |
getIconImage()
Get the IconImage property
|
PropertyValue<Boolean> |
getIconKeepUpright()
Get the IconKeepUpright property
|
PropertyValue<Float[]> |
getIconOffset()
Get the IconOffset property
|
PropertyValue<Float> |
getIconOpacity()
Get the IconOpacity property
|
PropertyValue<Boolean> |
getIconOptional()
Get the IconOptional property
|
PropertyValue<Float> |
getIconPadding()
Get the IconPadding property
|
PropertyValue<Float> |
getIconRotate()
Get the IconRotate property
|
PropertyValue<String> |
getIconRotationAlignment()
Get the IconRotationAlignment property
|
PropertyValue<Float> |
getIconSize()
Get the IconSize property
|
PropertyValue<String> |
getIconTextFit()
Get the IconTextFit property
|
PropertyValue<Float[]> |
getIconTextFitPadding()
Get the IconTextFitPadding property
|
PropertyValue<Float[]> |
getIconTranslate()
Get the IconTranslate property
|
PropertyValue<String> |
getIconTranslateAnchor()
Get the IconTranslateAnchor property
|
PropertyValue<Boolean> |
getSymbolAvoidEdges()
Get the SymbolAvoidEdges property
|
PropertyValue<String> |
getSymbolPlacement()
Get the SymbolPlacement property
|
PropertyValue<Float> |
getSymbolSpacing()
Get the SymbolSpacing property
|
PropertyValue<Boolean> |
getTextAllowOverlap()
Get the TextAllowOverlap property
|
PropertyValue<String> |
getTextAnchor()
Get the TextAnchor property
|
PropertyValue<String> |
getTextColor()
Get the TextColor property
|
int |
getTextColorAsInt()
The color with which the text will be drawn.
|
PropertyValue<String> |
getTextField()
Get the TextField property
|
PropertyValue<String[]> |
getTextFont()
Get the TextFont property
|
PropertyValue<Float> |
getTextHaloBlur()
Get the TextHaloBlur property
|
PropertyValue<String> |
getTextHaloColor()
Get the TextHaloColor property
|
int |
getTextHaloColorAsInt()
The color of the text's halo, which helps it stand out from backgrounds.
|
PropertyValue<Float> |
getTextHaloWidth()
Get the TextHaloWidth property
|
PropertyValue<Boolean> |
getTextIgnorePlacement()
Get the TextIgnorePlacement property
|
PropertyValue<String> |
getTextJustify()
Get the TextJustify property
|
PropertyValue<Boolean> |
getTextKeepUpright()
Get the TextKeepUpright property
|
PropertyValue<Float> |
getTextLetterSpacing()
Get the TextLetterSpacing property
|
PropertyValue<Float> |
getTextLineHeight()
Get the TextLineHeight property
|
PropertyValue<Float> |
getTextMaxAngle()
Get the TextMaxAngle property
|
PropertyValue<Float> |
getTextMaxWidth()
Get the TextMaxWidth property
|
PropertyValue<Float[]> |
getTextOffset()
Get the TextOffset property
|
PropertyValue<Float> |
getTextOpacity()
Get the TextOpacity property
|
PropertyValue<Boolean> |
getTextOptional()
Get the TextOptional property
|
PropertyValue<Float> |
getTextPadding()
Get the TextPadding property
|
PropertyValue<String> |
getTextPitchAlignment()
Get the TextPitchAlignment property
|
PropertyValue<Float> |
getTextRotate()
Get the TextRotate property
|
PropertyValue<String> |
getTextRotationAlignment()
Get the TextRotationAlignment property
|
PropertyValue<Float> |
getTextSize()
Get the TextSize property
|
PropertyValue<String> |
getTextTransform()
Get the TextTransform property
|
PropertyValue<Float[]> |
getTextTranslate()
Get the TextTranslate property
|
PropertyValue<String> |
getTextTranslateAnchor()
Get the TextTranslateAnchor 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.
|
SymbolLayer |
withFilter(Filter.Statement filter)
Set a single filter.
|
SymbolLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
SymbolLayer |
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 SymbolLayer(long nativePtr)
nativePtr
- pointer used by corepublic void setSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic SymbolLayer withSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic void setFilter(Filter.Statement filter)
filter
- the filter to setpublic SymbolLayer withFilter(Filter.Statement filter)
filter
- the filter to setpublic SymbolLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<String> getSymbolPlacement()
public PropertyValue<Float> getSymbolSpacing()
public PropertyValue<Boolean> getSymbolAvoidEdges()
public PropertyValue<Boolean> getIconAllowOverlap()
public PropertyValue<Boolean> getIconIgnorePlacement()
public PropertyValue<Boolean> getIconOptional()
public PropertyValue<String> getIconRotationAlignment()
public PropertyValue<Float> getIconSize()
public PropertyValue<String> getIconTextFit()
public PropertyValue<Float[]> getIconTextFitPadding()
public PropertyValue<String> getIconImage()
public PropertyValue<Float> getIconRotate()
public PropertyValue<Float> getIconPadding()
public PropertyValue<Boolean> getIconKeepUpright()
public PropertyValue<Float[]> getIconOffset()
public PropertyValue<String> getTextPitchAlignment()
public PropertyValue<String> getTextRotationAlignment()
public PropertyValue<String> getTextField()
public PropertyValue<String[]> getTextFont()
public PropertyValue<Float> getTextSize()
public PropertyValue<Float> getTextMaxWidth()
public PropertyValue<Float> getTextLineHeight()
public PropertyValue<Float> getTextLetterSpacing()
public PropertyValue<String> getTextJustify()
public PropertyValue<String> getTextAnchor()
public PropertyValue<Float> getTextMaxAngle()
public PropertyValue<Float> getTextRotate()
public PropertyValue<Float> getTextPadding()
public PropertyValue<Boolean> getTextKeepUpright()
public PropertyValue<String> getTextTransform()
public PropertyValue<Float[]> getTextOffset()
public PropertyValue<Boolean> getTextAllowOverlap()
public PropertyValue<Boolean> getTextIgnorePlacement()
public PropertyValue<Boolean> getTextOptional()
public PropertyValue<Float> getIconOpacity()
public PropertyValue<String> getIconColor()
public int getIconColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<String> getIconHaloColor()
public int getIconHaloColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<Float> getIconHaloWidth()
public PropertyValue<Float> getIconHaloBlur()
public PropertyValue<Float[]> getIconTranslate()
public PropertyValue<String> getIconTranslateAnchor()
public PropertyValue<Float> getTextOpacity()
public PropertyValue<String> getTextColor()
public int getTextColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<String> getTextHaloColor()
public int getTextHaloColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<Float> getTextHaloWidth()
public PropertyValue<Float> getTextHaloBlur()
public PropertyValue<Float[]> getTextTranslate()
public PropertyValue<String> getTextTranslateAnchor()
© 2015–2017 Mapbox. All rights reserved.