-
@UiThread() public class Line extends Annotation<LineString>
-
-
Method Summary
Modifier and Type Method Description voidsetLatLngs(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 StringgetLineJoin()Get the LineJoin propertyThe display of lines when joining. voidsetLineJoin(String value)Set the LineJoin propertyThe display of lines when joining. FloatgetLineOpacity()Get the LineOpacity propertyThe opacity at which the line will be drawn. voidsetLineOpacity(Float value)Set the LineOpacity propertyThe opacity at which the line will be drawn. intgetLineColorAsInt()Get the LineColor propertyThe color with which the line will be drawn. StringgetLineColor()Get the LineColor propertyThe color with which the line will be drawn. voidsetLineColor(@ColorInt() int color)Set the LineColor propertyThe color with which the line will be drawn. voidsetLineColor(@NonNull() String color)Set the LineColor propertyThe color with which the line will be drawn. FloatgetLineWidth()Get the LineWidth propertyStroke thickness. voidsetLineWidth(Float value)Set the LineWidth propertyStroke thickness. FloatgetLineGapWidth()Get the LineGapWidth propertyDraws a line casing outside of a line's actual path. voidsetLineGapWidth(Float value)Set the LineGapWidth propertyDraws a line casing outside of a line's actual path. FloatgetLineOffset()Get the LineOffset propertyThe line's offset. voidsetLineOffset(Float value)Set the LineOffset propertyThe line's offset. FloatgetLineBlur()Get the LineBlur propertyBlur applied to the line, in density-independent pixels. voidsetLineBlur(Float value)Set the LineBlur propertyBlur applied to the line, in density-independent pixels. StringgetLinePattern()Get the LinePattern propertyName of image in sprite to use for drawing image lines. voidsetLinePattern(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
-
getLineWidth
Float getLineWidth()
Get the LineWidth property
Stroke thickness.
-
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
-
-
-
-