public class SymbolLayer extends Layer
Constructor and Description |
---|
SymbolLayer(String layerId,
String sourceId)
Creates a SymbolLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
Expression |
getFilter()
Get a single expression filter.
|
PropertyValue<Boolean> |
getIconAllowOverlap()
Get the IconAllowOverlap property
|
PropertyValue<String> |
getIconAnchor()
Get the IconAnchor property
|
PropertyValue<String> |
getIconColor()
Get the IconColor property
|
int |
getIconColorAsInt()
The color of the icon.
|
TransitionOptions |
getIconColorTransition()
Get the IconColor property transition options
|
PropertyValue<Float> |
getIconHaloBlur()
Get the IconHaloBlur property
|
TransitionOptions |
getIconHaloBlurTransition()
Get the IconHaloBlur property transition options
|
PropertyValue<String> |
getIconHaloColor()
Get the IconHaloColor property
|
int |
getIconHaloColorAsInt()
The color of the icon's halo.
|
TransitionOptions |
getIconHaloColorTransition()
Get the IconHaloColor property transition options
|
PropertyValue<Float> |
getIconHaloWidth()
Get the IconHaloWidth property
|
TransitionOptions |
getIconHaloWidthTransition()
Get the IconHaloWidth property transition options
|
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
|
TransitionOptions |
getIconOpacityTransition()
Get the IconOpacity property transition options
|
PropertyValue<Boolean> |
getIconOptional()
Get the IconOptional property
|
PropertyValue<Float> |
getIconPadding()
Get the IconPadding property
|
PropertyValue<String> |
getIconPitchAlignment()
Get the IconPitchAlignment 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
|
TransitionOptions |
getIconTranslateTransition()
Get the IconTranslate property transition options
|
String |
getSourceId()
Get the source id.
|
String |
getSourceLayer()
Get the source layer.
|
PropertyValue<Boolean> |
getSymbolAvoidEdges()
Get the SymbolAvoidEdges property
|
PropertyValue<String> |
getSymbolPlacement()
Get the SymbolPlacement property
|
PropertyValue<Float> |
getSymbolSortKey()
Get the SymbolSortKey property
|
PropertyValue<Float> |
getSymbolSpacing()
Get the SymbolSpacing property
|
PropertyValue<String> |
getSymbolZOrder()
Get the SymbolZOrder 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.
|
TransitionOptions |
getTextColorTransition()
Get the TextColor property transition options
|
PropertyValue<Formatted> |
getTextField()
Get the TextField property
|
PropertyValue<String[]> |
getTextFont()
Get the TextFont property
|
PropertyValue<Float> |
getTextHaloBlur()
Get the TextHaloBlur property
|
TransitionOptions |
getTextHaloBlurTransition()
Get the TextHaloBlur property transition options
|
PropertyValue<String> |
getTextHaloColor()
Get the TextHaloColor property
|
int |
getTextHaloColorAsInt()
The color of the text's halo, which helps it stand out from backgrounds.
|
TransitionOptions |
getTextHaloColorTransition()
Get the TextHaloColor property transition options
|
PropertyValue<Float> |
getTextHaloWidth()
Get the TextHaloWidth property
|
TransitionOptions |
getTextHaloWidthTransition()
Get the TextHaloWidth property transition options
|
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
|
TransitionOptions |
getTextOpacityTransition()
Get the TextOpacity property transition options
|
PropertyValue<Boolean> |
getTextOptional()
Get the TextOptional property
|
PropertyValue<Float> |
getTextPadding()
Get the TextPadding property
|
PropertyValue<String> |
getTextPitchAlignment()
Get the TextPitchAlignment property
|
PropertyValue<Float> |
getTextRadialOffset()
Get the TextRadialOffset 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
|
TransitionOptions |
getTextTranslateTransition()
Get the TextTranslate property transition options
|
PropertyValue<String[]> |
getTextVariableAnchor()
Get the TextVariableAnchor property
|
PropertyValue<String[]> |
getTextWritingMode()
Get the TextWritingMode property
|
protected void |
initialize(String layerId,
String sourceId) |
void |
setFilter(Expression filter)
Set a single expression filter.
|
void |
setIconColorTransition(TransitionOptions options)
Set the IconColor property transition options
|
void |
setIconHaloBlurTransition(TransitionOptions options)
Set the IconHaloBlur property transition options
|
void |
setIconHaloColorTransition(TransitionOptions options)
Set the IconHaloColor property transition options
|
void |
setIconHaloWidthTransition(TransitionOptions options)
Set the IconHaloWidth property transition options
|
void |
setIconOpacityTransition(TransitionOptions options)
Set the IconOpacity property transition options
|
void |
setIconTranslateTransition(TransitionOptions options)
Set the IconTranslate property transition options
|
void |
setSourceLayer(String sourceLayer)
Set the source layer.
|
void |
setTextColorTransition(TransitionOptions options)
Set the TextColor property transition options
|
void |
setTextHaloBlurTransition(TransitionOptions options)
Set the TextHaloBlur property transition options
|
void |
setTextHaloColorTransition(TransitionOptions options)
Set the TextHaloColor property transition options
|
void |
setTextHaloWidthTransition(TransitionOptions options)
Set the TextHaloWidth property transition options
|
void |
setTextOpacityTransition(TransitionOptions options)
Set the TextOpacity property transition options
|
void |
setTextTranslateTransition(TransitionOptions options)
Set the TextTranslate property transition options
|
SymbolLayer |
withFilter(Expression filter)
Set a single expression filter.
|
SymbolLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
SymbolLayer |
withSourceLayer(String sourceLayer)
Set the source Layer.
|
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 void setSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic SymbolLayer withSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic String getSourceId()
public String getSourceLayer()
public void setFilter(Expression filter)
filter
- the expression filter to setpublic SymbolLayer withFilter(Expression filter)
filter
- the expression filter to setpublic Expression getFilter()
public SymbolLayer withProperties(PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<String> getSymbolPlacement()
public PropertyValue<Float> getSymbolSpacing()
public PropertyValue<Boolean> getSymbolAvoidEdges()
public PropertyValue<Float> getSymbolSortKey()
public PropertyValue<String> getSymbolZOrder()
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> getIconAnchor()
public PropertyValue<String> getIconPitchAlignment()
public PropertyValue<String> getTextPitchAlignment()
public PropertyValue<String> getTextRotationAlignment()
public PropertyValue<Formatted> 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<Float> getTextRadialOffset()
public PropertyValue<String[]> getTextVariableAnchor()
public PropertyValue<String> getTextAnchor()
public PropertyValue<Float> getTextMaxAngle()
public PropertyValue<String[]> getTextWritingMode()
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 TransitionOptions getIconOpacityTransition()
public void setIconOpacityTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<String> getIconColor()
public int getIconColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getIconColorTransition()
public void setIconColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<String> getIconHaloColor()
public int getIconHaloColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getIconHaloColorTransition()
public void setIconHaloColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<Float> getIconHaloWidth()
public TransitionOptions getIconHaloWidthTransition()
public void setIconHaloWidthTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<Float> getIconHaloBlur()
public TransitionOptions getIconHaloBlurTransition()
public void setIconHaloBlurTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<Float[]> getIconTranslate()
public TransitionOptions getIconTranslateTransition()
public void setIconTranslateTransition(TransitionOptions options)
options
- transition options for Float[]public PropertyValue<String> getIconTranslateAnchor()
public PropertyValue<Float> getTextOpacity()
public TransitionOptions getTextOpacityTransition()
public void setTextOpacityTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<String> getTextColor()
public int getTextColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getTextColorTransition()
public void setTextColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<String> getTextHaloColor()
public int getTextHaloColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getTextHaloColorTransition()
public void setTextHaloColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<Float> getTextHaloWidth()
public TransitionOptions getTextHaloWidthTransition()
public void setTextHaloWidthTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<Float> getTextHaloBlur()
public TransitionOptions getTextHaloBlurTransition()
public void setTextHaloBlurTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<Float[]> getTextTranslate()
public TransitionOptions getTextTranslateTransition()
public void setTextTranslateTransition(TransitionOptions options)
options
- transition options for Float[]public PropertyValue<String> getTextTranslateAnchor()
© 2015–2019 Mapbox. All rights reserved.