Class FillLayer
java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.FillLayer
A filled polygon with an optional stroked border.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get the FillAntialias propertyGet the FillColor propertyintThe color of the filled part of this layer.Get the FillColor property transition optionsGet the FillOpacity propertyGet the FillOpacity property transition optionsGet the FillOutlineColor propertyintThe outline color of the fill.Get the FillOutlineColor property transition optionsGet the FillPattern propertyGet the FillPattern property transition optionsGet the FillSortKey propertyGet the FillTranslate propertyGet the FillTranslateAnchor propertyGet the FillTranslate property transition optionsGet a single expression filter.Get the source id.Get the source layer.protected voidinitialize(String layerId, String sourceId) voidsetFillColorTransition(TransitionOptions options) Set the FillColor property transition optionsvoidSet the FillOpacity property transition optionsvoidSet the FillOutlineColor property transition optionsvoidSet the FillPattern property transition optionsvoidSet the FillTranslate property transition optionsvoidsetFilter(Expression filter) Set a single expression filter.voidsetSourceLayer(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
-
FillLayer
Creates a FillLayer.- 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
-
getFillSortKey
Get the FillSortKey property- Returns:
- property wrapper value around Float
-
getFillAntialias
Get the FillAntialias property- Returns:
- property wrapper value around Boolean
-
getFillOpacity
Get the FillOpacity property- Returns:
- property wrapper value around Float
-
getFillOpacityTransition
Get the FillOpacity property transition options- Returns:
- transition options for Float
-
setFillOpacityTransition
Set the FillOpacity property transition options- Parameters:
options- transition options for Float
-
getFillColor
Get the FillColor property- Returns:
- property wrapper value around String
-
getFillColorAsInt
@ColorInt public int getFillColorAsInt()The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getFillColorTransition
Get the FillColor property transition options- Returns:
- transition options for String
-
setFillColorTransition
Set the FillColor property transition options- Parameters:
options- transition options for String
-
getFillOutlineColor
Get the FillOutlineColor property- Returns:
- property wrapper value around String
-
getFillOutlineColorAsInt
@ColorInt public int getFillOutlineColorAsInt()The outline color of the fill. Matches the value of `fill-color` if unspecified.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getFillOutlineColorTransition
Get the FillOutlineColor property transition options- Returns:
- transition options for String
-
setFillOutlineColorTransition
Set the FillOutlineColor property transition options- Parameters:
options- transition options for String
-
getFillTranslate
Get the FillTranslate property- Returns:
- property wrapper value around Float[]
-
getFillTranslateTransition
Get the FillTranslate property transition options- Returns:
- transition options for Float[]
-
setFillTranslateTransition
Set the FillTranslate property transition options- Parameters:
options- transition options for Float[]
-
getFillTranslateAnchor
Get the FillTranslateAnchor property- Returns:
- property wrapper value around String
-
getFillPattern
Get the FillPattern property- Returns:
- property wrapper value around String
-
getFillPatternTransition
Get the FillPattern property transition options- Returns:
- transition options for String
-
setFillPatternTransition
Set the FillPattern property transition options- Parameters:
options- transition options for String
-
finalize
-