Class Line
-
Field Summary
Fields inherited from class com.trimblemaps.mapsdk.plugins.annotation.Annotation
geometry, jsonObject -
Method Summary
Modifier and TypeMethodDescriptionList<com.trimblemaps.mapsdk.geometry.LatLng> Get a list of LatLng for the line, which represents the locations of the line on the mapGet the LineBlur propertyGet the LineColor propertyintGet the LineColor propertyGet the LineGapWidth propertyGet the LineJoin propertyGet the LineOffset propertyGet the LineOpacity propertyGet the LinePattern propertyGet the LineWidth propertyvoidsetLatLngs(List<com.trimblemaps.mapsdk.geometry.LatLng> latLngs) Set a list of LatLng for the line, which represents the locations of the line on the mapvoidsetLineBlur(Float value) Set the LineBlur propertyvoidsetLineColor(int color) Set the LineColor propertyvoidsetLineColor(String color) Set the LineColor propertyvoidsetLineGapWidth(Float value) Set the LineGapWidth propertyvoidsetLineJoin(String value) Set the LineJoin propertyvoidsetLineOffset(Float value) Set the LineOffset propertyvoidsetLineOpacity(Float value) Set the LineOpacity propertyvoidsetLinePattern(String value) Set the LinePattern propertyvoidsetLineWidth(Float value) Set the LineWidth propertyMethods inherited from class com.trimblemaps.mapsdk.plugins.annotation.Annotation
equals, getData, getGeometry, getId, hashCode, isDraggable, setData, setDraggable, setGeometry, toString
-
Method Details
-
setLatLngs
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
AnnotationManager.update(Annotation).- Parameters:
latLngs- a list of the locations of the line in a longitude and latitude pairs
-
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
Get the LineJoin propertyThe display of lines when joining.
- Returns:
- property wrapper value around String
-
setLineJoin
Set the LineJoin propertyThe display of lines when joining.
To update the line on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for String
-
getLineOpacity
Get the LineOpacity propertyThe opacity at which the line will be drawn.
- Returns:
- property wrapper value around Float
-
setLineOpacity
Set the LineOpacity propertyThe 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 propertyThe color with which the line will be drawn.
- Returns:
- color value for String
-
getLineColor
Get the LineColor propertyThe color with which the line will be drawn.
- Returns:
- color value for String
-
setLineColor
public void setLineColor(@ColorInt int color) Set the LineColor propertyThe 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
Set the LineColor propertyThe 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
Get the LineWidth propertyStroke thickness.
- Returns:
- property wrapper value around Float
-
setLineWidth
Set the LineWidth propertyStroke thickness.
To update the line on the map use
AnnotationManager.update(Annotation).- Parameters:
value- constant property value for Float
-
getLineGapWidth
Get the LineGapWidth propertyDraws 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
Set the LineGapWidth propertyDraws 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
Get the LineOffset propertyThe 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
Set the LineOffset propertyThe 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
Get the LineBlur propertyBlur applied to the line, in density-independent pixels.
- Returns:
- property wrapper value around Float
-
setLineBlur
Set the LineBlur propertyBlur 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
Get the LinePattern propertyName 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
Set the LinePattern propertyName 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
-