-
-
Method Summary
Modifier and Type Method Description booleanisStyleSet(String style)Checks if a given style (for a marker, linestring or polygon) has been set booleanhasFill()Gets whether the Polygon fill is set voidsetFill(boolean fill)Sets whether the Polygon has a fill doublegetIconScale()Gets the scale for a marker icon booleanhasOutline()Gets whether the Polygon outline is set booleanhasBalloonStyle()Gets whether a BalloonStyle has been set StringgetIconUrl()Gets the url for the marker icon booleanisLineRandomColorMode()Checks whether the color mode for a polyline is true / random booleanisPolyRandomColorMode()Checks whether the color mode for a polygon is true / random HashMap<String, String>getBalloonOptions()Gets the balloon options MarkerOptionsgetMarkerOptions()Gets a MarkerOption PolylineOptionsgetPolylineOptions()Gets a PolylineOption PolygonOptionsgetPolygonOptions()Gets a PolygonOption static intcomputeRandomColor(int color)Computes a random color given an integer. StringtoString()-
Methods inherited from class com.google.maps.android.data.Style
getRotation, setLineStringWidth, setMarkerHotSpot, setMarkerRotation, setPolygonFillColor, setPolygonStrokeWidth -
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isStyleSet
boolean isStyleSet(String style)
Checks if a given style (for a marker, linestring or polygon) has been set
- Parameters:
style- style to check if set
-
hasFill
boolean hasFill()
Gets whether the Polygon fill is set
-
setFill
void setFill(boolean fill)
Sets whether the Polygon has a fill
- Parameters:
fill- True if the polygon fill is set, false otherwise
-
getIconScale
double getIconScale()
Gets the scale for a marker icon
-
hasOutline
boolean hasOutline()
Gets whether the Polygon outline is set
-
hasBalloonStyle
boolean hasBalloonStyle()
Gets whether a BalloonStyle has been set
-
getIconUrl
String getIconUrl()
Gets the url for the marker icon
-
isLineRandomColorMode
boolean isLineRandomColorMode()
Checks whether the color mode for a polyline is true / random
-
isPolyRandomColorMode
boolean isPolyRandomColorMode()
Checks whether the color mode for a polygon is true / random
-
getBalloonOptions
HashMap<String, String> getBalloonOptions()
Gets the balloon options
-
getMarkerOptions
MarkerOptions getMarkerOptions()
Gets a MarkerOption
-
getPolylineOptions
PolylineOptions getPolylineOptions()
Gets a PolylineOption
-
getPolygonOptions
PolygonOptions getPolygonOptions()
Gets a PolygonOption
-
computeRandomColor
static int computeRandomColor(int color)
Computes a random color given an integer. Algorithm to compute the random color can befound in https://developers.google.com/kml/documentation/kmlreference#colormode
- Parameters:
color- Color represented as an integer
-
-
-
-