Package com.google.maps
Class StaticMapsRequest.Markers
- java.lang.Object
-
- com.google.maps.StaticMapsRequest.Markers
-
- All Implemented Interfaces:
com.google.maps.internal.StringJoin.UrlValue
- Enclosing class:
- StaticMapsRequest
public static class StaticMapsRequest.Markers extends java.lang.Object implements com.google.maps.internal.StringJoin.UrlValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaticMapsRequest.Markers.CustomIconAnchor
static class
StaticMapsRequest.Markers.MarkersSize
-
Constructor Summary
Constructors Constructor Description Markers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
size
public void size(StaticMapsRequest.Markers.MarkersSize size)
Specifies the size of marker. If no size parameter is set, the marker will appear in its default (normal) size.- Parameters:
size
- The size of the markers.
-
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 markers.
-
label
public void label(java.lang.String label)
Specifies a single uppercase alphanumeric character from the set {A-Z, 0-9}.- Parameters:
label
- The label to add to markers.
-
customIcon
public void customIcon(java.lang.String url, StaticMapsRequest.Markers.CustomIconAnchor anchorPoint)
Set a custom icon for these markers.- Parameters:
url
- URL for the custom icon.anchorPoint
- The anchor point for this custom icon.
-
customIcon
public void customIcon(java.lang.String url, StaticMapsRequest.Markers.CustomIconAnchor anchorPoint, int scale)
Set a custom icon for these markers.- Parameters:
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.
-
addLocation
public void addLocation(java.lang.String location)
Add the location of a marker. At least one is required.- Parameters:
location
- The location of the added marker.
-
addLocation
public void addLocation(LatLng location)
Add the location of a marker. At least one is required.- Parameters:
location
- The location of the added marker.
-
toUrlValue
public java.lang.String toUrlValue()
- Specified by:
toUrlValue
in interfacecom.google.maps.internal.StringJoin.UrlValue
-
-