-
@UiThread() public class Fill extends Annotation<Polygon>
-
-
Method Summary
Modifier and Type Method Description voidsetLatLngs(List<List<LatLng>> latLngs)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 update. List<List<LatLng>>getLatLngs()Get a list of lists of LatLng for the fill, which represents the locations of the fill on the map FloatgetFillOpacity()Get the FillOpacity propertyThe opacity of the entire fill layer. voidsetFillOpacity(Float value)Set the FillOpacity propertyThe opacity of the entire fill layer. intgetFillColorAsInt()Get the FillColor propertyThe color of the filled part of this layer. StringgetFillColor()Get the FillColor propertyThe color of the filled part of this layer. voidsetFillColor(@ColorInt() int color)Set the FillColor propertyThe color of the filled part of this layer. voidsetFillColor(@NonNull() String color)Set the FillColor propertyThe color of the filled part of this layer. intgetFillOutlineColorAsInt()Get the FillOutlineColor propertyThe outline color of the fill. StringgetFillOutlineColor()Get the FillOutlineColor propertyThe outline color of the fill. voidsetFillOutlineColor(@ColorInt() int color)Set the FillOutlineColor propertyThe outline color of the fill. voidsetFillOutlineColor(@NonNull() String color)Set the FillOutlineColor propertyThe outline color of the fill. StringgetFillPattern()Get the FillPattern propertyName of image in sprite to use for drawing image fills. voidsetFillPattern(String value)Set the FillPattern propertyName of image in sprite to use for drawing image fills. -
Methods inherited from class org.maplibre.android.plugins.annotation.Annotation
equals, getData, getGeometry, getId, hashCode, isDraggable, setData, setDraggable, setGeometry, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setLatLngs
void setLatLngs(List<List<LatLng>> latLngs)
Set a list of lists of LatLng for the fill, which represents the locations of the fill on the map
To update the fill on the map use update.
- Parameters:
latLngs- a list of a lists of the locations of the polygon in a latitude and longitude pairs
-
getLatLngs
@NonNull() List<List<LatLng>> getLatLngs()
Get a list of lists of LatLng for the fill, which represents the locations of the fill on the map
-
getFillOpacity
Float getFillOpacity()
Get the FillOpacity property
The opacity of the entire fill layer. In contrast to the fillColor, this value will also affect the 1px stroke around the fill, if the stroke is used.
-
setFillOpacity
void setFillOpacity(Float value)
Set the FillOpacity property
The opacity of the entire fill layer. In contrast to the fillColor, this value will also affect the 1px stroke around the fill, if the stroke is used.
To update the fill on the map use update.
- Parameters:
value- constant property value for Float
-
getFillColorAsInt
@ColorInt() int getFillColorAsInt()
Get the FillColor property
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.
-
getFillColor
String getFillColor()
Get the FillColor property
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.
-
setFillColor
void setFillColor(@ColorInt() int color)
Set the FillColor property
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.
To update the fill on the map use update.
- Parameters:
color- value for String
-
setFillColor
void setFillColor(@NonNull() String color)
Set the FillColor property
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.
To update the fill on the map use update.
- Parameters:
color- value for String
-
getFillOutlineColorAsInt
@ColorInt() int getFillOutlineColorAsInt()
Get the FillOutlineColor property
The outline color of the fill. Matches the value of fillColor if unspecified.
-
getFillOutlineColor
String getFillOutlineColor()
Get the FillOutlineColor property
The outline color of the fill. Matches the value of fillColor if unspecified.
-
setFillOutlineColor
void setFillOutlineColor(@ColorInt() int color)
Set the FillOutlineColor property
The outline color of the fill. Matches the value of fillColor if unspecified.
To update the fill on the map use update.
- Parameters:
color- value for String
-
setFillOutlineColor
void setFillOutlineColor(@NonNull() String color)
Set the FillOutlineColor property
The outline color of the fill. Matches the value of fillColor if unspecified.
To update the fill on the map use update.
- Parameters:
color- value for String
-
getFillPattern
String getFillPattern()
Get the FillPattern property
Name 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.
-
setFillPattern
void setFillPattern(String value)
Set the FillPattern property
Name 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 update.
- Parameters:
value- constant property value for String
-
-
-
-