java.lang.Object
com.trimblemaps.mapsdk.plugins.annotation.Annotation<com.trimblemaps.geojson.Polygon>
com.trimblemaps.mapsdk.plugins.annotation.Fill

@UiThread public class Fill extends Annotation<com.trimblemaps.geojson.Polygon>
  • Method Details

    • setLatLngs

      public void setLatLngs(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 map

      To 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

      @NonNull public List<List<com.trimblemaps.mapsdk.geometry.LatLng>> 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

      public Float getFillOpacity()
      Get the FillOpacity property

      The 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

      public void setFillOpacity(Float value)
      Set the FillOpacity property

      The 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 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.

      Returns:
      color value for String
    • getFillColor

      public 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.

      Returns:
      color value for String
    • setFillColor

      public 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 AnnotationManager.update(Annotation).

      Parameters:
      color - value for String
    • setFillColor

      public 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 AnnotationManager.update(Annotation).

      Parameters:
      color - value for String
    • getFillOutlineColorAsInt

      @ColorInt public int getFillOutlineColorAsInt()
      Get the FillOutlineColor property

      The outline color of the fill. Matches the value of PropertyFactory.fillColor(int) if unspecified.

      Returns:
      color value for String
    • getFillOutlineColor

      public String getFillOutlineColor()
      Get the FillOutlineColor property

      The 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 property

      The 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

      public void setFillOutlineColor(@NonNull String color)
      Set the FillOutlineColor property

      The 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

      public 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.

      Returns:
      property wrapper value around String
    • setFillPattern

      public 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 AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for String