Package 

Class FillOptions

    • Method Summary

      Modifier and Type Method Description
      JsonElement getData() Get the arbitrary json data of the annotation.
      Polygon getGeometry() Get the geometry of the fill, which represents the location of the fill on the map
      Float getFillOpacity() Get the current configured fill-opacity for the fillThe opacity of the entire fill layer.
      String getFillColor() Get the current configured fill-color for the fillThe color of the filled part of this layer.
      String getFillOutlineColor() Get the current configured fill-outline-color for the fillThe outline color of the fill.
      String getFillPattern() Get the current configured fill-pattern for the fillName of image in sprite to use for drawing image fills.
      FillOptions withFillOpacity(Float fillOpacity) Set fill-opacity to initialise the fill with.
      FillOptions withFillColor(String fillColor) Set fill-color to initialise the fill with.
      FillOptions withFillOutlineColor(String fillOutlineColor) Set fill-outline-color to initialise the fill with.
      FillOptions withFillPattern(String fillPattern) Set fill-pattern to initialise the fill with.
      FillOptions withLatLngs(List<List<LatLng>> latLngs) Set a list of lists of LatLng for the fill, which represents the locations of the fill on the map
      List<List<LatLng>> getLatLngs() Get a list of lists of LatLng for the fill, which represents the locations of the fill on the map
      FillOptions withGeometry(Polygon geometry) Set the geometry of the fill, which represents the location of the fill on the map
      boolean getDraggable() Returns whether this fill is draggable, meaning it can be dragged across the screen when touched and moved.
      FillOptions withDraggable(boolean draggable) Set whether this fill should be draggable,meaning it can be dragged across the screen when touched and moved.
      FillOptions withData(@Nullable() JsonElement jsonElement) Set the arbitrary json data of the annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getData

        @Nullable() JsonElement getData()

        Get the arbitrary json data of the annotation.

      • getGeometry

         Polygon getGeometry()

        Get the geometry of the fill, which represents the location of the fill on the map

      • getFillOpacity

         Float getFillOpacity()

        Get the current configured fill-opacity for the fill

        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.

      • getFillColor

         String getFillColor()

        Get the current configured fill-color for the fill

        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.

      • getFillOutlineColor

         String getFillOutlineColor()

        Get the current configured fill-outline-color for the fill

        The outline color of the fill. Matches the value of fillColor if unspecified.

      • getFillPattern

         String getFillPattern()

        Get the current configured fill-pattern for the fill

        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.

      • withFillOpacity

         FillOptions withFillOpacity(Float fillOpacity)

        Set fill-opacity to initialise the fill with.

        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.

        Parameters:
        fillOpacity - the fill-opacity value
      • withFillColor

         FillOptions withFillColor(String fillColor)

        Set fill-color to initialise the fill with.

        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.

        Parameters:
        fillColor - the fill-color value
      • withFillOutlineColor

         FillOptions withFillOutlineColor(String fillOutlineColor)

        Set fill-outline-color to initialise the fill with.

        The outline color of the fill. Matches the value of fillColor if unspecified.

        Parameters:
        fillOutlineColor - the fill-outline-color value
      • withFillPattern

         FillOptions withFillPattern(String fillPattern)

        Set fill-pattern to initialise the fill with.

        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.

        Parameters:
        fillPattern - the fill-pattern value
      • withLatLngs

         FillOptions withLatLngs(List<List<LatLng>> latLngs)

        Set a list of lists of LatLng for the fill, which represents the locations of the fill on the map

        Parameters:
        latLngs - a list of a lists of the locations of the line in a longitude and latitude pairs
      • getLatLngs

         List<List<LatLng>> getLatLngs()

        Get a list of lists of LatLng for the fill, which represents the locations of the fill on the map

      • withGeometry

         FillOptions withGeometry(Polygon geometry)

        Set the geometry of the fill, which represents the location of the fill on the map

        Parameters:
        geometry - the location of the fill
      • getDraggable

         boolean getDraggable()

        Returns whether this fill is draggable, meaning it can be dragged across the screen when touched and moved.

      • withDraggable

         FillOptions withDraggable(boolean draggable)

        Set whether this fill should be draggable,meaning it can be dragged across the screen when touched and moved.

        Parameters:
        draggable - should be draggable
      • withData

         FillOptions withData(@Nullable() JsonElement jsonElement)

        Set the arbitrary json data of the annotation.

        Parameters:
        jsonElement - the arbitrary json element data