java.lang.Object
com.trimblemaps.mapsdk.plugins.annotation.Annotation<com.trimblemaps.geojson.LineString>
com.trimblemaps.mapsdk.plugins.annotation.Line

@UiThread public class Line extends Annotation<com.trimblemaps.geojson.LineString>
  • Method Details

    • setLatLngs

      public void setLatLngs(List<com.trimblemaps.mapsdk.geometry.LatLng> latLngs)
      Set a list of LatLng for the line, which represents the locations of the line on the map

      To update the line on the map use AnnotationManager.update(Annotation).

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

      @NonNull public List<com.trimblemaps.mapsdk.geometry.LatLng> getLatLngs()
      Get a list of LatLng for the line, which represents the locations of the line on the map
      Returns:
      a list of the locations of the line in a latitude and longitude pairs
    • getLineJoin

      public String getLineJoin()
      Get the LineJoin property

      The display of lines when joining.

      Returns:
      property wrapper value around String
    • setLineJoin

      public void setLineJoin(String value)
      Set the LineJoin property

      The display of lines when joining.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for String
    • getLineOpacity

      public Float getLineOpacity()
      Get the LineOpacity property

      The opacity at which the line will be drawn.

      Returns:
      property wrapper value around Float
    • setLineOpacity

      public void setLineOpacity(Float value)
      Set the LineOpacity property

      The opacity at which the line will be drawn.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for Float
    • getLineColorAsInt

      @ColorInt public int getLineColorAsInt()
      Get the LineColor property

      The color with which the line will be drawn.

      Returns:
      color value for String
    • getLineColor

      public String getLineColor()
      Get the LineColor property

      The color with which the line will be drawn.

      Returns:
      color value for String
    • setLineColor

      public void setLineColor(@ColorInt int color)
      Set the LineColor property

      The color with which the line will be drawn.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      color - value for String
    • setLineColor

      public void setLineColor(@NonNull String color)
      Set the LineColor property

      The color with which the line will be drawn.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      color - value for String
    • getLineWidth

      public Float getLineWidth()
      Get the LineWidth property

      Stroke thickness.

      Returns:
      property wrapper value around Float
    • setLineWidth

      public void setLineWidth(Float value)
      Set the LineWidth property

      Stroke thickness.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for Float
    • getLineGapWidth

      public Float getLineGapWidth()
      Get the LineGapWidth property

      Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.

      Returns:
      property wrapper value around Float
    • setLineGapWidth

      public void setLineGapWidth(Float value)
      Set the LineGapWidth property

      Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for Float
    • getLineOffset

      public Float getLineOffset()
      Get the LineOffset property

      The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.

      Returns:
      property wrapper value around Float
    • setLineOffset

      public void setLineOffset(Float value)
      Set the LineOffset property

      The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for Float
    • getLineBlur

      public Float getLineBlur()
      Get the LineBlur property

      Blur applied to the line, in density-independent pixels.

      Returns:
      property wrapper value around Float
    • setLineBlur

      public void setLineBlur(Float value)
      Set the LineBlur property

      Blur applied to the line, in density-independent pixels.

      To update the line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for Float
    • getLinePattern

      public String getLinePattern()
      Get the LinePattern property

      Name of image in sprite to use for drawing image lines. For seamless patterns, image width 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
    • setLinePattern

      public void setLinePattern(String value)
      Set the LinePattern property

      Name of image in sprite to use for drawing image lines. For seamless patterns, image width 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 line on the map use AnnotationManager.update(Annotation).

      Parameters:
      value - constant property value for String