@UiThread public class SymbolLayer extends Layer
Constructor | Description |
---|---|
SymbolLayer(java.lang.String layerId,
java.lang.String sourceId) |
Creates a SymbolLayer.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
finalize() |
|
Expression |
getFilter() |
Get a single expression filter.
|
PropertyValue<java.lang.Boolean> |
getIconAllowOverlap() |
Get the IconAllowOverlap property
|
PropertyValue<java.lang.String> |
getIconAnchor() |
Get the IconAnchor property
|
PropertyValue<java.lang.String> |
getIconColor() |
Get the IconColor property
|
int |
getIconColorAsInt() |
The color of the icon.
|
TransitionOptions |
getIconColorTransition() |
Get the IconColor property transition options
|
PropertyValue<java.lang.Float> |
getIconHaloBlur() |
Get the IconHaloBlur property
|
TransitionOptions |
getIconHaloBlurTransition() |
Get the IconHaloBlur property transition options
|
PropertyValue<java.lang.String> |
getIconHaloColor() |
Get the IconHaloColor property
|
int |
getIconHaloColorAsInt() |
The color of the icon's halo.
|
TransitionOptions |
getIconHaloColorTransition() |
Get the IconHaloColor property transition options
|
PropertyValue<java.lang.Float> |
getIconHaloWidth() |
Get the IconHaloWidth property
|
TransitionOptions |
getIconHaloWidthTransition() |
Get the IconHaloWidth property transition options
|
PropertyValue<java.lang.Boolean> |
getIconIgnorePlacement() |
Get the IconIgnorePlacement property
|
PropertyValue<java.lang.String> |
getIconImage() |
Get the IconImage property
|
PropertyValue<java.lang.Boolean> |
getIconKeepUpright() |
Get the IconKeepUpright property
|
PropertyValue<java.lang.Float[]> |
getIconOffset() |
Get the IconOffset property
|
PropertyValue<java.lang.Float> |
getIconOpacity() |
Get the IconOpacity property
|
TransitionOptions |
getIconOpacityTransition() |
Get the IconOpacity property transition options
|
PropertyValue<java.lang.Boolean> |
getIconOptional() |
Get the IconOptional property
|
PropertyValue<java.lang.Float> |
getIconPadding() |
Get the IconPadding property
|
PropertyValue<java.lang.String> |
getIconPitchAlignment() |
Get the IconPitchAlignment property
|
PropertyValue<java.lang.Float> |
getIconRotate() |
Get the IconRotate property
|
PropertyValue<java.lang.String> |
getIconRotationAlignment() |
Get the IconRotationAlignment property
|
PropertyValue<java.lang.Float> |
getIconSize() |
Get the IconSize property
|
PropertyValue<java.lang.String> |
getIconTextFit() |
Get the IconTextFit property
|
PropertyValue<java.lang.Float[]> |
getIconTextFitPadding() |
Get the IconTextFitPadding property
|
PropertyValue<java.lang.Float[]> |
getIconTranslate() |
Get the IconTranslate property
|
PropertyValue<java.lang.String> |
getIconTranslateAnchor() |
Get the IconTranslateAnchor property
|
TransitionOptions |
getIconTranslateTransition() |
Get the IconTranslate property transition options
|
java.lang.String |
getSourceId() |
Get the source id.
|
java.lang.String |
getSourceLayer() |
Get the source layer.
|
PropertyValue<java.lang.Boolean> |
getSymbolAvoidEdges() |
Get the SymbolAvoidEdges property
|
PropertyValue<java.lang.String> |
getSymbolPlacement() |
Get the SymbolPlacement property
|
PropertyValue<java.lang.Float> |
getSymbolSortKey() |
Get the SymbolSortKey property
|
PropertyValue<java.lang.Float> |
getSymbolSpacing() |
Get the SymbolSpacing property
|
PropertyValue<java.lang.String> |
getSymbolZOrder() |
Get the SymbolZOrder property
|
PropertyValue<java.lang.Boolean> |
getTextAllowOverlap() |
Get the TextAllowOverlap property
|
PropertyValue<java.lang.String> |
getTextAnchor() |
Get the TextAnchor property
|
PropertyValue<java.lang.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<java.lang.String[]> |
getTextFont() |
Get the TextFont property
|
PropertyValue<java.lang.Float> |
getTextHaloBlur() |
Get the TextHaloBlur property
|
TransitionOptions |
getTextHaloBlurTransition() |
Get the TextHaloBlur property transition options
|
PropertyValue<java.lang.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<java.lang.Float> |
getTextHaloWidth() |
Get the TextHaloWidth property
|
TransitionOptions |
getTextHaloWidthTransition() |
Get the TextHaloWidth property transition options
|
PropertyValue<java.lang.Boolean> |
getTextIgnorePlacement() |
Get the TextIgnorePlacement property
|
PropertyValue<java.lang.String> |
getTextJustify() |
Get the TextJustify property
|
PropertyValue<java.lang.Boolean> |
getTextKeepUpright() |
Get the TextKeepUpright property
|
PropertyValue<java.lang.Float> |
getTextLetterSpacing() |
Get the TextLetterSpacing property
|
PropertyValue<java.lang.Float> |
getTextLineHeight() |
Get the TextLineHeight property
|
PropertyValue<java.lang.Float> |
getTextMaxAngle() |
Get the TextMaxAngle property
|
PropertyValue<java.lang.Float> |
getTextMaxWidth() |
Get the TextMaxWidth property
|
PropertyValue<java.lang.Float[]> |
getTextOffset() |
Get the TextOffset property
|
PropertyValue<java.lang.Float> |
getTextOpacity() |
Get the TextOpacity property
|
TransitionOptions |
getTextOpacityTransition() |
Get the TextOpacity property transition options
|
PropertyValue<java.lang.Boolean> |
getTextOptional() |
Get the TextOptional property
|
PropertyValue<java.lang.Float> |
getTextPadding() |
Get the TextPadding property
|
PropertyValue<java.lang.String> |
getTextPitchAlignment() |
Get the TextPitchAlignment property
|
PropertyValue<java.lang.Float> |
getTextRadialOffset() |
Get the TextRadialOffset property
|
PropertyValue<java.lang.Float> |
getTextRotate() |
Get the TextRotate property
|
PropertyValue<java.lang.String> |
getTextRotationAlignment() |
Get the TextRotationAlignment property
|
PropertyValue<java.lang.Float> |
getTextSize() |
Get the TextSize property
|
PropertyValue<java.lang.String> |
getTextTransform() |
Get the TextTransform property
|
PropertyValue<java.lang.Float[]> |
getTextTranslate() |
Get the TextTranslate property
|
PropertyValue<java.lang.String> |
getTextTranslateAnchor() |
Get the TextTranslateAnchor property
|
TransitionOptions |
getTextTranslateTransition() |
Get the TextTranslate property transition options
|
PropertyValue<java.lang.String[]> |
getTextVariableAnchor() |
Get the TextVariableAnchor property
|
PropertyValue<java.lang.String[]> |
getTextWritingMode() |
Get the TextWritingMode property
|
protected void |
initialize(java.lang.String layerId,
java.lang.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(java.lang.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(java.lang.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 SymbolLayer(java.lang.String layerId, java.lang.String sourceId)
layerId
- the id of the layersourceId
- the id of the sourceprotected void initialize(java.lang.String layerId, java.lang.String sourceId)
public void setSourceLayer(java.lang.String sourceLayer)
sourceLayer
- the source layer to set@NonNull public SymbolLayer withSourceLayer(java.lang.String sourceLayer)
sourceLayer
- the source layer to set@NonNull public java.lang.String getSourceId()
@NonNull public java.lang.String getSourceLayer()
public void setFilter(@NonNull Expression filter)
filter
- the expression filter to set@NonNull public SymbolLayer withFilter(@NonNull Expression filter)
filter
- the expression filter to set@Nullable public Expression getFilter()
@NonNull public SymbolLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args properties@NonNull public PropertyValue<java.lang.String> getSymbolPlacement()
@NonNull public PropertyValue<java.lang.Float> getSymbolSpacing()
@NonNull public PropertyValue<java.lang.Boolean> getSymbolAvoidEdges()
@NonNull public PropertyValue<java.lang.Float> getSymbolSortKey()
@NonNull public PropertyValue<java.lang.String> getSymbolZOrder()
@NonNull public PropertyValue<java.lang.Boolean> getIconAllowOverlap()
@NonNull public PropertyValue<java.lang.Boolean> getIconIgnorePlacement()
@NonNull public PropertyValue<java.lang.Boolean> getIconOptional()
@NonNull public PropertyValue<java.lang.String> getIconRotationAlignment()
@NonNull public PropertyValue<java.lang.Float> getIconSize()
@NonNull public PropertyValue<java.lang.String> getIconTextFit()
@NonNull public PropertyValue<java.lang.Float[]> getIconTextFitPadding()
@NonNull public PropertyValue<java.lang.String> getIconImage()
@NonNull public PropertyValue<java.lang.Float> getIconRotate()
@NonNull public PropertyValue<java.lang.Float> getIconPadding()
@NonNull public PropertyValue<java.lang.Boolean> getIconKeepUpright()
@NonNull public PropertyValue<java.lang.Float[]> getIconOffset()
@NonNull public PropertyValue<java.lang.String> getIconAnchor()
@NonNull public PropertyValue<java.lang.String> getIconPitchAlignment()
@NonNull public PropertyValue<java.lang.String> getTextPitchAlignment()
@NonNull public PropertyValue<java.lang.String> getTextRotationAlignment()
@NonNull public PropertyValue<Formatted> getTextField()
@NonNull public PropertyValue<java.lang.String[]> getTextFont()
@NonNull public PropertyValue<java.lang.Float> getTextSize()
@NonNull public PropertyValue<java.lang.Float> getTextMaxWidth()
@NonNull public PropertyValue<java.lang.Float> getTextLineHeight()
@NonNull public PropertyValue<java.lang.Float> getTextLetterSpacing()
@NonNull public PropertyValue<java.lang.String> getTextJustify()
@NonNull public PropertyValue<java.lang.Float> getTextRadialOffset()
@NonNull public PropertyValue<java.lang.String[]> getTextVariableAnchor()
@NonNull public PropertyValue<java.lang.String> getTextAnchor()
@NonNull public PropertyValue<java.lang.Float> getTextMaxAngle()
@NonNull public PropertyValue<java.lang.String[]> getTextWritingMode()
@NonNull public PropertyValue<java.lang.Float> getTextRotate()
@NonNull public PropertyValue<java.lang.Float> getTextPadding()
@NonNull public PropertyValue<java.lang.Boolean> getTextKeepUpright()
@NonNull public PropertyValue<java.lang.String> getTextTransform()
@NonNull public PropertyValue<java.lang.Float[]> getTextOffset()
@NonNull public PropertyValue<java.lang.Boolean> getTextAllowOverlap()
@NonNull public PropertyValue<java.lang.Boolean> getTextIgnorePlacement()
@NonNull public PropertyValue<java.lang.Boolean> getTextOptional()
@NonNull public PropertyValue<java.lang.Float> getIconOpacity()
@NonNull public TransitionOptions getIconOpacityTransition()
public void setIconOpacityTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.String> getIconColor()
public int getIconColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getIconColorTransition()
public void setIconColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.String> getIconHaloColor()
public int getIconHaloColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getIconHaloColorTransition()
public void setIconHaloColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.Float> getIconHaloWidth()
@NonNull public TransitionOptions getIconHaloWidthTransition()
public void setIconHaloWidthTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float> getIconHaloBlur()
@NonNull public TransitionOptions getIconHaloBlurTransition()
public void setIconHaloBlurTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float[]> getIconTranslate()
@NonNull public TransitionOptions getIconTranslateTransition()
public void setIconTranslateTransition(@NonNull TransitionOptions options)
options
- transition options for Float[]@NonNull public PropertyValue<java.lang.String> getIconTranslateAnchor()
@NonNull public PropertyValue<java.lang.Float> getTextOpacity()
@NonNull public TransitionOptions getTextOpacityTransition()
public void setTextOpacityTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.String> getTextColor()
public int getTextColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getTextColorTransition()
public void setTextColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.String> getTextHaloColor()
public int getTextHaloColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getTextHaloColorTransition()
public void setTextHaloColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.Float> getTextHaloWidth()
@NonNull public TransitionOptions getTextHaloWidthTransition()
public void setTextHaloWidthTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float> getTextHaloBlur()
@NonNull public TransitionOptions getTextHaloBlurTransition()
public void setTextHaloBlurTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float[]> getTextTranslate()
@NonNull public TransitionOptions getTextTranslateTransition()
public void setTextTranslateTransition(@NonNull TransitionOptions options)
options
- transition options for Float[]@NonNull public PropertyValue<java.lang.String> getTextTranslateAnchor()