Class SymbolLayer
java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.SymbolLayer
An icon or a text label.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get a single expression filter.Get the IconAllowOverlap propertyGet the IconAnchor propertyGet the IconColor propertyintThe color of the icon.Get the IconColor property transition optionsGet the IconHaloBlur propertyGet the IconHaloBlur property transition optionsGet the IconHaloColor propertyintThe color of the icon's halo.Get the IconHaloColor property transition optionsGet the IconHaloWidth propertyGet the IconHaloWidth property transition optionsGet the IconIgnorePlacement propertyGet the IconImage propertyGet the IconKeepUpright propertyGet the IconOffset propertyGet the IconOpacity propertyGet the IconOpacity property transition optionsGet the IconOptional propertyGet the IconPadding propertyGet the IconPitchAlignment propertyGet the IconRotate propertyGet the IconRotationAlignment propertyGet the IconSize propertyGet the IconTextFit propertyGet the IconTextFitPadding propertyGet the IconTranslate propertyGet the IconTranslateAnchor propertyGet the IconTranslate property transition optionsGet the source id.Get the source layer.Get the SymbolAvoidEdges propertyGet the SymbolPlacement propertyGet the SymbolSortKey propertyGet the SymbolSpacing propertyGet the SymbolZOrder propertyGet the TextAllowOverlap propertyGet the TextAnchor propertyGet the TextColor propertyintThe color with which the text will be drawn.Get the TextColor property transition optionsPropertyValue<com.trimblemaps.mapsdk.style.types.Formatted>Get the TextField propertyGet the TextFont propertyGet the TextHaloBlur propertyGet the TextHaloBlur property transition optionsGet the TextHaloColor propertyintThe color of the text's halo, which helps it stand out from backgrounds.Get the TextHaloColor property transition optionsGet the TextHaloWidth propertyGet the TextHaloWidth property transition optionsGet the TextIgnorePlacement propertyGet the TextJustify propertyGet the TextKeepUpright propertyGet the TextLetterSpacing propertyGet the TextLineHeight propertyGet the TextMaxAngle propertyGet the TextMaxWidth propertyGet the TextOffset propertyGet the TextOpacity propertyGet the TextOpacity property transition optionsGet the TextOptional propertyGet the TextPadding propertyGet the TextPitchAlignment propertyGet the TextRadialOffset propertyGet the TextRotate propertyGet the TextRotationAlignment propertyGet the TextSize propertyGet the TextTransform propertyGet the TextTranslate propertyGet the TextTranslateAnchor propertyGet the TextTranslate property transition optionsGet the TextVariableAnchor propertyGet the TextWritingMode propertyprotected voidinitialize(String layerId, String sourceId) voidsetFilter(Expression filter) Set a single expression filter.voidsetIconColorTransition(TransitionOptions options) Set the IconColor property transition optionsvoidSet the IconHaloBlur property transition optionsvoidSet the IconHaloColor property transition optionsvoidSet the IconHaloWidth property transition optionsvoidSet the IconOpacity property transition optionsvoidSet the IconTranslate property transition optionsvoidsetSourceLayer(String sourceLayer) Set the source layer.voidsetTextColorTransition(TransitionOptions options) Set the TextColor property transition optionsvoidSet the TextHaloBlur property transition optionsvoidSet the TextHaloColor property transition optionsvoidSet the TextHaloWidth property transition optionsvoidSet the TextOpacity property transition optionsvoidSet the TextTranslate property transition optionswithFilter(Expression filter) Set a single expression filter.withProperties(PropertyValue<?>... properties) Set a property or properties.withSourceLayer(String sourceLayer) Set the source Layer.Methods inherited from class com.trimblemaps.mapsdk.style.layers.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
-
Constructor Details
-
SymbolLayer
Creates a SymbolLayer.- Parameters:
layerId- the id of the layersourceId- the id of the source
-
-
Method Details
-
initialize
-
setSourceLayer
Set the source layer.- Parameters:
sourceLayer- the source layer to set
-
withSourceLayer
Set the source Layer.- Parameters:
sourceLayer- the source layer to set- Returns:
- This
-
getSourceId
Get the source id.- Returns:
- id of the source
-
getSourceLayer
Get the source layer.- Returns:
- sourceLayer the source layer to get
-
setFilter
Set a single expression filter.- Parameters:
filter- the expression filter to set
-
withFilter
Set a single expression filter.- Parameters:
filter- the expression filter to set- Returns:
- This
-
getFilter
Get a single expression filter.- Returns:
- the expression filter to get
-
withProperties
Set a property or properties.- Parameters:
properties- the var-args properties- Returns:
- This
-
getSymbolPlacement
Get the SymbolPlacement property- Returns:
- property wrapper value around String
-
getSymbolSpacing
Get the SymbolSpacing property- Returns:
- property wrapper value around Float
-
getSymbolAvoidEdges
Get the SymbolAvoidEdges property- Returns:
- property wrapper value around Boolean
-
getSymbolSortKey
Get the SymbolSortKey property- Returns:
- property wrapper value around Float
-
getSymbolZOrder
Get the SymbolZOrder property- Returns:
- property wrapper value around String
-
getIconAllowOverlap
Get the IconAllowOverlap property- Returns:
- property wrapper value around Boolean
-
getIconIgnorePlacement
Get the IconIgnorePlacement property- Returns:
- property wrapper value around Boolean
-
getIconOptional
Get the IconOptional property- Returns:
- property wrapper value around Boolean
-
getIconRotationAlignment
Get the IconRotationAlignment property- Returns:
- property wrapper value around String
-
getIconSize
Get the IconSize property- Returns:
- property wrapper value around Float
-
getIconTextFit
Get the IconTextFit property- Returns:
- property wrapper value around String
-
getIconTextFitPadding
Get the IconTextFitPadding property- Returns:
- property wrapper value around Float[]
-
getIconImage
Get the IconImage property- Returns:
- property wrapper value around String
-
getIconRotate
Get the IconRotate property- Returns:
- property wrapper value around Float
-
getIconPadding
Get the IconPadding property- Returns:
- property wrapper value around Float
-
getIconKeepUpright
Get the IconKeepUpright property- Returns:
- property wrapper value around Boolean
-
getIconOffset
Get the IconOffset property- Returns:
- property wrapper value around Float[]
-
getIconAnchor
Get the IconAnchor property- Returns:
- property wrapper value around String
-
getIconPitchAlignment
Get the IconPitchAlignment property- Returns:
- property wrapper value around String
-
getTextPitchAlignment
Get the TextPitchAlignment property- Returns:
- property wrapper value around String
-
getTextRotationAlignment
Get the TextRotationAlignment property- Returns:
- property wrapper value around String
-
getTextField
Get the TextField property- Returns:
- property wrapper value around Formatted
-
getTextFont
Get the TextFont property- Returns:
- property wrapper value around String[]
-
getTextSize
Get the TextSize property- Returns:
- property wrapper value around Float
-
getTextMaxWidth
Get the TextMaxWidth property- Returns:
- property wrapper value around Float
-
getTextLineHeight
Get the TextLineHeight property- Returns:
- property wrapper value around Float
-
getTextLetterSpacing
Get the TextLetterSpacing property- Returns:
- property wrapper value around Float
-
getTextJustify
Get the TextJustify property- Returns:
- property wrapper value around String
-
getTextRadialOffset
Get the TextRadialOffset property- Returns:
- property wrapper value around Float
-
getTextVariableAnchor
Get the TextVariableAnchor property- Returns:
- property wrapper value around String[]
-
getTextAnchor
Get the TextAnchor property- Returns:
- property wrapper value around String
-
getTextMaxAngle
Get the TextMaxAngle property- Returns:
- property wrapper value around Float
-
getTextWritingMode
Get the TextWritingMode property- Returns:
- property wrapper value around String[]
-
getTextRotate
Get the TextRotate property- Returns:
- property wrapper value around Float
-
getTextPadding
Get the TextPadding property- Returns:
- property wrapper value around Float
-
getTextKeepUpright
Get the TextKeepUpright property- Returns:
- property wrapper value around Boolean
-
getTextTransform
Get the TextTransform property- Returns:
- property wrapper value around String
-
getTextOffset
Get the TextOffset property- Returns:
- property wrapper value around Float[]
-
getTextAllowOverlap
Get the TextAllowOverlap property- Returns:
- property wrapper value around Boolean
-
getTextIgnorePlacement
Get the TextIgnorePlacement property- Returns:
- property wrapper value around Boolean
-
getTextOptional
Get the TextOptional property- Returns:
- property wrapper value around Boolean
-
getIconOpacity
Get the IconOpacity property- Returns:
- property wrapper value around Float
-
getIconOpacityTransition
Get the IconOpacity property transition options- Returns:
- transition options for Float
-
setIconOpacityTransition
Set the IconOpacity property transition options- Parameters:
options- transition options for Float
-
getIconColor
Get the IconColor property- Returns:
- property wrapper value around String
-
getIconColorAsInt
@ColorInt public int getIconColorAsInt()The color of the icon. This can only be used with sdf icons.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getIconColorTransition
Get the IconColor property transition options- Returns:
- transition options for String
-
setIconColorTransition
Set the IconColor property transition options- Parameters:
options- transition options for String
-
getIconHaloColor
Get the IconHaloColor property- Returns:
- property wrapper value around String
-
getIconHaloColorAsInt
@ColorInt public int getIconHaloColorAsInt()The color of the icon's halo. Icon halos can only be used with SDF icons.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getIconHaloColorTransition
Get the IconHaloColor property transition options- Returns:
- transition options for String
-
setIconHaloColorTransition
Set the IconHaloColor property transition options- Parameters:
options- transition options for String
-
getIconHaloWidth
Get the IconHaloWidth property- Returns:
- property wrapper value around Float
-
getIconHaloWidthTransition
Get the IconHaloWidth property transition options- Returns:
- transition options for Float
-
setIconHaloWidthTransition
Set the IconHaloWidth property transition options- Parameters:
options- transition options for Float
-
getIconHaloBlur
Get the IconHaloBlur property- Returns:
- property wrapper value around Float
-
getIconHaloBlurTransition
Get the IconHaloBlur property transition options- Returns:
- transition options for Float
-
setIconHaloBlurTransition
Set the IconHaloBlur property transition options- Parameters:
options- transition options for Float
-
getIconTranslate
Get the IconTranslate property- Returns:
- property wrapper value around Float[]
-
getIconTranslateTransition
Get the IconTranslate property transition options- Returns:
- transition options for Float[]
-
setIconTranslateTransition
Set the IconTranslate property transition options- Parameters:
options- transition options for Float[]
-
getIconTranslateAnchor
Get the IconTranslateAnchor property- Returns:
- property wrapper value around String
-
getTextOpacity
Get the TextOpacity property- Returns:
- property wrapper value around Float
-
getTextOpacityTransition
Get the TextOpacity property transition options- Returns:
- transition options for Float
-
setTextOpacityTransition
Set the TextOpacity property transition options- Parameters:
options- transition options for Float
-
getTextColor
Get the TextColor property- Returns:
- property wrapper value around String
-
getTextColorAsInt
@ColorInt public int getTextColorAsInt()The color with which the text will be drawn.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getTextColorTransition
Get the TextColor property transition options- Returns:
- transition options for String
-
setTextColorTransition
Set the TextColor property transition options- Parameters:
options- transition options for String
-
getTextHaloColor
Get the TextHaloColor property- Returns:
- property wrapper value around String
-
getTextHaloColorAsInt
@ColorInt public int getTextHaloColorAsInt()The color of the text's halo, which helps it stand out from backgrounds.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getTextHaloColorTransition
Get the TextHaloColor property transition options- Returns:
- transition options for String
-
setTextHaloColorTransition
Set the TextHaloColor property transition options- Parameters:
options- transition options for String
-
getTextHaloWidth
Get the TextHaloWidth property- Returns:
- property wrapper value around Float
-
getTextHaloWidthTransition
Get the TextHaloWidth property transition options- Returns:
- transition options for Float
-
setTextHaloWidthTransition
Set the TextHaloWidth property transition options- Parameters:
options- transition options for Float
-
getTextHaloBlur
Get the TextHaloBlur property- Returns:
- property wrapper value around Float
-
getTextHaloBlurTransition
Get the TextHaloBlur property transition options- Returns:
- transition options for Float
-
setTextHaloBlurTransition
Set the TextHaloBlur property transition options- Parameters:
options- transition options for Float
-
getTextTranslate
Get the TextTranslate property- Returns:
- property wrapper value around Float[]
-
getTextTranslateTransition
Get the TextTranslate property transition options- Returns:
- transition options for Float[]
-
setTextTranslateTransition
Set the TextTranslate property transition options- Parameters:
options- transition options for Float[]
-
getTextTranslateAnchor
Get the TextTranslateAnchor property- Returns:
- property wrapper value around String
-
finalize
-