Package 

Class Line

    • Method Summary

      Modifier and Type Method Description
      void setLatLngs(List<LatLng> latLngs) Set a list of LatLng for the line, which represents the locations of the line on the mapTo update the line on the map use update.
      List<LatLng> getLatLngs() Get a list of LatLng for the line, which represents the locations of the line on the map
      String getLineJoin() Get the LineJoin propertyThe display of lines when joining.
      void setLineJoin(String value) Set the LineJoin propertyThe display of lines when joining.
      Float getLineOpacity() Get the LineOpacity propertyThe opacity at which the line will be drawn.
      void setLineOpacity(Float value) Set the LineOpacity propertyThe opacity at which the line will be drawn.
      int getLineColorAsInt() Get the LineColor propertyThe color with which the line will be drawn.
      String getLineColor() Get the LineColor propertyThe color with which the line will be drawn.
      void setLineColor(@ColorInt() int color) Set the LineColor propertyThe color with which the line will be drawn.
      void setLineColor(@NonNull() String color) Set the LineColor propertyThe color with which the line will be drawn.
      Float getLineWidth() Get the LineWidth propertyStroke thickness.
      void setLineWidth(Float value) Set the LineWidth propertyStroke thickness.
      Float getLineGapWidth() Get the LineGapWidth propertyDraws a line casing outside of a line's actual path.
      void setLineGapWidth(Float value) Set the LineGapWidth propertyDraws a line casing outside of a line's actual path.
      Float getLineOffset() Get the LineOffset propertyThe line's offset.
      void setLineOffset(Float value) Set the LineOffset propertyThe line's offset.
      Float getLineBlur() Get the LineBlur propertyBlur applied to the line, in density-independent pixels.
      void setLineBlur(Float value) Set the LineBlur propertyBlur applied to the line, in density-independent pixels.
      String getLinePattern() Get the LinePattern propertyName of image in sprite to use for drawing image lines.
      void setLinePattern(String value) Set the LinePattern propertyName of image in sprite to use for drawing image lines.
      • 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<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 update.

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

        @NonNull() List<LatLng> getLatLngs()

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

      • getLineJoin

         String getLineJoin()

        Get the LineJoin property

        The display of lines when joining.

      • setLineJoin

         void setLineJoin(String value)

        Set the LineJoin property

        The display of lines when joining.

        To update the line on the map use update.

        Parameters:
        value - constant property value for String
      • getLineOpacity

         Float getLineOpacity()

        Get the LineOpacity property

        The opacity at which the line will be drawn.

      • setLineOpacity

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

        Parameters:
        value - constant property value for Float
      • getLineColorAsInt

        @ColorInt() int getLineColorAsInt()

        Get the LineColor property

        The color with which the line will be drawn.

      • getLineColor

         String getLineColor()

        Get the LineColor property

        The color with which the line will be drawn.

      • setLineColor

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

        Parameters:
        color - value for String
      • setLineColor

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

        Parameters:
        color - value for String
      • setLineWidth

         void setLineWidth(Float value)

        Set the LineWidth property

        Stroke thickness.

        To update the line on the map use update.

        Parameters:
        value - constant property value for Float
      • getLineGapWidth

         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.

      • setLineGapWidth

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

        Parameters:
        value - constant property value for Float
      • getLineOffset

         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.

      • setLineOffset

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

        Parameters:
        value - constant property value for Float
      • getLineBlur

         Float getLineBlur()

        Get the LineBlur property

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

      • setLineBlur

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

        Parameters:
        value - constant property value for Float
      • getLinePattern

         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.

      • setLinePattern

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

        Parameters:
        value - constant property value for String