Class LineLayer
java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.LineLayer
A stroked line.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get a single expression filter.Get the LineBlur propertyGet the LineBlur property transition optionsGet the LineCap propertyGet the LineColor propertyintThe color with which the line will be drawn.Get the LineColor property transition optionsGet the LineDasharray propertyGet the LineDasharray property transition optionsGet the LineGapWidth propertyGet the LineGapWidth property transition optionsGet the LineGradient propertyintDefines a gradient with which to color a line feature.Get the LineJoin propertyGet the LineMiterLimit propertyGet the LineOffset propertyGet the LineOffset property transition optionsGet the LineOpacity propertyGet the LineOpacity property transition optionsGet the LinePattern propertyGet the LinePattern property transition optionsGet the LineRoundLimit propertyGet the LineSortKey propertyGet the LineTranslate propertyGet the LineTranslateAnchor propertyGet the LineTranslate property transition optionsGet the LineWidth propertyGet the LineWidth property transition optionsGet the source id.Get the source layer.protected voidinitialize(String layerId, String sourceId) voidsetFilter(Expression filter) Set a single expression filter.voidsetLineBlurTransition(TransitionOptions options) Set the LineBlur property transition optionsvoidsetLineColorTransition(TransitionOptions options) Set the LineColor property transition optionsvoidSet the LineDasharray property transition optionsvoidSet the LineGapWidth property transition optionsvoidsetLineOffsetTransition(TransitionOptions options) Set the LineOffset property transition optionsvoidSet the LineOpacity property transition optionsvoidSet the LinePattern property transition optionsvoidSet the LineTranslate property transition optionsvoidsetLineWidthTransition(TransitionOptions options) Set the LineWidth property transition optionsvoidsetSourceLayer(String sourceLayer) Set the source layer.withFilter(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
-
LineLayer
Creates a LineLayer.- 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
-
getLineCap
Get the LineCap property- Returns:
- property wrapper value around String
-
getLineJoin
Get the LineJoin property- Returns:
- property wrapper value around String
-
getLineMiterLimit
Get the LineMiterLimit property- Returns:
- property wrapper value around Float
-
getLineRoundLimit
Get the LineRoundLimit property- Returns:
- property wrapper value around Float
-
getLineSortKey
Get the LineSortKey property- Returns:
- property wrapper value around Float
-
getLineOpacity
Get the LineOpacity property- Returns:
- property wrapper value around Float
-
getLineOpacityTransition
Get the LineOpacity property transition options- Returns:
- transition options for Float
-
setLineOpacityTransition
Set the LineOpacity property transition options- Parameters:
options- transition options for Float
-
getLineColor
Get the LineColor property- Returns:
- property wrapper value around String
-
getLineColorAsInt
@ColorInt public int getLineColorAsInt()The color with which the line will be drawn.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getLineColorTransition
Get the LineColor property transition options- Returns:
- transition options for String
-
setLineColorTransition
Set the LineColor property transition options- Parameters:
options- transition options for String
-
getLineTranslate
Get the LineTranslate property- Returns:
- property wrapper value around Float[]
-
getLineTranslateTransition
Get the LineTranslate property transition options- Returns:
- transition options for Float[]
-
setLineTranslateTransition
Set the LineTranslate property transition options- Parameters:
options- transition options for Float[]
-
getLineTranslateAnchor
Get the LineTranslateAnchor property- Returns:
- property wrapper value around String
-
getLineWidth
Get the LineWidth property- Returns:
- property wrapper value around Float
-
getLineWidthTransition
Get the LineWidth property transition options- Returns:
- transition options for Float
-
setLineWidthTransition
Set the LineWidth property transition options- Parameters:
options- transition options for Float
-
getLineGapWidth
Get the LineGapWidth property- Returns:
- property wrapper value around Float
-
getLineGapWidthTransition
Get the LineGapWidth property transition options- Returns:
- transition options for Float
-
setLineGapWidthTransition
Set the LineGapWidth property transition options- Parameters:
options- transition options for Float
-
getLineOffset
Get the LineOffset property- Returns:
- property wrapper value around Float
-
getLineOffsetTransition
Get the LineOffset property transition options- Returns:
- transition options for Float
-
setLineOffsetTransition
Set the LineOffset property transition options- Parameters:
options- transition options for Float
-
getLineBlur
Get the LineBlur property- Returns:
- property wrapper value around Float
-
getLineBlurTransition
Get the LineBlur property transition options- Returns:
- transition options for Float
-
setLineBlurTransition
Set the LineBlur property transition options- Parameters:
options- transition options for Float
-
getLineDasharray
Get the LineDasharray property- Returns:
- property wrapper value around Float[]
-
getLineDasharrayTransition
Get the LineDasharray property transition options- Returns:
- transition options for Float[]
-
setLineDasharrayTransition
Set the LineDasharray property transition options- Parameters:
options- transition options for Float[]
-
getLinePattern
Get the LinePattern property- Returns:
- property wrapper value around String
-
getLinePatternTransition
Get the LinePattern property transition options- Returns:
- transition options for String
-
setLinePatternTransition
Set the LinePattern property transition options- Parameters:
options- transition options for String
-
getLineGradient
Get the LineGradient property- Returns:
- property wrapper value around String
-
getLineGradientAsInt
@ColorInt public int getLineGradientAsInt()Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
finalize
-