Class Polygon

All Implemented Interfaces:
Comparable<Annotation>

@Deprecated public final class Polygon extends BasePointCollection
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Polygon is a geometry annotation that's a closed loop of coordinates.
  • Method Details

    • getFillColor

      public int getFillColor()
      Deprecated.
      Get the color of the fill region of the polygon.
      Returns:
      The color of the fill.
    • getStrokeColor

      public int getStrokeColor()
      Deprecated.
      Get the color of the stroke of the polygon.
      Returns:
      The color of the stroke.
    • getHoles

      @NonNull public List<List<com.trimblemaps.mapsdk.geometry.LatLng>> getHoles()
      Deprecated.
      Returns a copy of the holes.
      Returns:
      A List of List of LatLng points making up the holes.
    • setFillColor

      public void setFillColor(int color)
      Deprecated.
      Sets the color of the fill region of the polygon.
      Parameters:
      color - The color in ARGB format.
    • setStrokeColor

      public void setStrokeColor(int color)
      Deprecated.
      Sets the color of the stroke of the polygon.
      Parameters:
      color - The color in ARGB format.
    • setHoles

      public void setHoles(@NonNull List<? extends List<com.trimblemaps.mapsdk.geometry.LatLng>> holes)
      Deprecated.
      Sets the holes of this polygon. This method will take a copy of the holes, so further mutations to holes will have no effect on this polygon.
      Parameters:
      holes - A List of List of LatLng points making up the holes.