public static class StaticMapsRequest.Markers
extends java.lang.Object
implements com.google.maps.internal.StringJoin.UrlValue
Modifier and Type | Class and Description |
---|---|
static class |
StaticMapsRequest.Markers.CustomIconAnchor |
static class |
StaticMapsRequest.Markers.MarkersSize |
Constructor and Description |
---|
Markers() |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(LatLng location)
Add the location of a marker.
|
void |
addLocation(java.lang.String location)
Add the location of a marker.
|
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 |
customIcon(java.lang.String url,
StaticMapsRequest.Markers.CustomIconAnchor anchorPoint)
Set a custom icon for these markers.
|
void |
customIcon(java.lang.String url,
StaticMapsRequest.Markers.CustomIconAnchor anchorPoint,
int scale)
Set a custom icon for these markers.
|
void |
label(java.lang.String label)
Specifies a single uppercase alphanumeric character from the set {A-Z, 0-9}.
|
void |
size(StaticMapsRequest.Markers.MarkersSize size)
Specifies the size of marker.
|
java.lang.String |
toUrlValue() |
public void size(StaticMapsRequest.Markers.MarkersSize size)
size
- The size of the markers.public void color(java.lang.String color)
color
- The color of the markers.public void label(java.lang.String label)
label
- The label to add to markers.public void customIcon(java.lang.String url, StaticMapsRequest.Markers.CustomIconAnchor anchorPoint)
url
- URL for the custom icon.anchorPoint
- The anchor point for this custom icon.public void customIcon(java.lang.String url, StaticMapsRequest.Markers.CustomIconAnchor anchorPoint, int scale)
url
- URL for the custom icon.anchorPoint
- The anchor point for this custom icon.scale
- Set the image density scale (1, 2, or 4) of the custom icon provided.public void addLocation(java.lang.String location)
location
- The location of the added marker.public void addLocation(LatLng location)
location
- The location of the added marker.public java.lang.String toUrlValue()
toUrlValue
in interface com.google.maps.internal.StringJoin.UrlValue