Package com.google.maps
Class StaticMapsRequest.Path
- java.lang.Object
-
- com.google.maps.StaticMapsRequest.Path
-
- All Implemented Interfaces:
com.google.maps.internal.StringJoin.UrlValue
- Enclosing class:
- StaticMapsRequest
public static class StaticMapsRequest.Path extends java.lang.Object implements com.google.maps.internal.StringJoin.UrlValue
-
-
Constructor Summary
Constructors Constructor Description Path()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPoint(LatLng point)
Add a point to the path.void
addPoint(java.lang.String point)
Add a point to the path.void
color(java.lang.String color)
Specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.void
fillcolor(java.lang.String color)
Specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.void
geodesic(boolean geodesic)
Indicates that the requested path should be interpreted as a geodesic line that follows the curvature of the earth.java.lang.String
toUrlValue()
void
weight(int weight)
Specifies the thickness of the path in pixels.
-
-
-
Method Detail
-
weight
public void weight(int weight)
Specifies the thickness of the path in pixels. If no weight parameter is set, the path will appear in its default thickness (5 pixels).- Parameters:
weight
- The thickness of the path in pixels.
-
color
public void color(java.lang.String color)
Specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.- Parameters:
color
- The color of the path.
-
fillcolor
public void fillcolor(java.lang.String color)
Specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.- Parameters:
color
- The fill color.
-
geodesic
public void geodesic(boolean geodesic)
Indicates that the requested path should be interpreted as a geodesic line that follows the curvature of the earth.- Parameters:
geodesic
- Whether the path is geodesic.
-
addPoint
public void addPoint(java.lang.String point)
Add a point to the path. At least two are required.- Parameters:
point
- The point to add.
-
addPoint
public void addPoint(LatLng point)
Add a point to the path. At least two are required.- Parameters:
point
- The point to add.
-
toUrlValue
public java.lang.String toUrlValue()
- Specified by:
toUrlValue
in interfacecom.google.maps.internal.StringJoin.UrlValue
-
-