Class Fill
-
Field Summary
Fields inherited from class com.trimblemaps.mapsdk.plugins.annotation.Annotation
geometry, jsonObject -
Method Summary
Modifier and TypeMethodDescriptionGet the FillColor propertyintGet the FillColor propertyGet the FillOpacity propertyGet the FillOutlineColor propertyintGet the FillOutlineColor propertyGet the FillPattern propertyGet a list of lists of LatLng for the fill, which represents the locations of the fill on the mapvoidsetFillColor(int color) Set the FillColor propertyvoidsetFillColor(String color) Set the FillColor propertyvoidsetFillOpacity(Float value) Set the FillOpacity propertyvoidsetFillOutlineColor(int color) Set the FillOutlineColor propertyvoidsetFillOutlineColor(String color) Set the FillOutlineColor propertyvoidsetFillPattern(String value) Set the FillPattern propertyvoidsetLatLngs(List<List<com.trimblemaps.mapsdk.geometry.LatLng>> latLngs) Set a list of lists of LatLng for the fill, which represents the locations of the fill on the mapMethods inherited from class com.trimblemaps.mapsdk.plugins.annotation.Annotation
equals, getData, getGeometry, getId, hashCode, isDraggable, setData, setDraggable, setGeometry, toString
-
Method Details
-
setLatLngs
Set a list of lists of LatLng for the fill, which represents the locations of the fill on the mapTo update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
latLngs- a list of a lists of the locations of the polygon in a latitude and longitude pairs
-
getLatLngs
Get a list of lists of LatLng for the fill, which represents the locations of the fill on the map- Returns:
- a list of a lists of the locations of the polygon in a latitude and longitude pairs
-
getFillOpacity
Get the FillOpacity propertyThe opacity of the entire fill layer. In contrast to the
PropertyFactory.fillColor(int), this value will also affect the 1px stroke around the fill, if the stroke is used.- Returns:
- property wrapper value around Float
-
setFillOpacity
Set the FillOpacity propertyThe opacity of the entire fill layer. In contrast to the
PropertyFactory.fillColor(int), this value will also affect the 1px stroke around the fill, if the stroke is used.To update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
getFillColorAsInt
@ColorInt public int getFillColorAsInt()Get the FillColor propertyThe 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:
- color value for String
-
getFillColor
Get the FillColor propertyThe 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:
- color value for String
-
setFillColor
public void setFillColor(@ColorInt int color) Set the FillColor propertyThe 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.
To update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
setFillColor
Set the FillColor propertyThe 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.
To update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
getFillOutlineColorAsInt
@ColorInt public int getFillOutlineColorAsInt()Get the FillOutlineColor propertyThe outline color of the fill. Matches the value of
PropertyFactory.fillColor(int)if unspecified.- Returns:
- color value for String
-
getFillOutlineColor
Get the FillOutlineColor propertyThe outline color of the fill. Matches the value of
PropertyFactory.fillColor(int)if unspecified.- Returns:
- color value for String
-
setFillOutlineColor
public void setFillOutlineColor(@ColorInt int color) Set the FillOutlineColor propertyThe outline color of the fill. Matches the value of
PropertyFactory.fillColor(int)if unspecified.To update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
setFillOutlineColor
Set the FillOutlineColor propertyThe outline color of the fill. Matches the value of
PropertyFactory.fillColor(int)if unspecified.To update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
color- value for String
-
getFillPattern
Get the FillPattern propertyName of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
- Returns:
- property wrapper value around String
-
setFillPattern
Set the FillPattern propertyName of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
To update the fill on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for String
-