-
- All Implemented Interfaces:
-
com.google.maps.android.data.geojson.GeoJsonStyle
public class GeoJsonPointStyle extends Style implements GeoJsonStyle
A class that allows for GeoJsonPoint objects to be styled and for these styles to be translated into a MarkerOptions object. {@see * * MarkerOptions docs for more details about the options.}
-
-
Constructor Summary
Constructors Constructor Description GeoJsonPointStyle()Creates a new PointStyle object
-
Method Summary
Modifier and Type Method Description Array<String>getGeometryType()Gets the type of geometries this style can be applied to floatgetAlpha()Gets the alpha of the GeoJsonPoint. voidsetAlpha(float alpha)Sets the alpha of the GeoJsonPoint. floatgetAnchorU()Gets the Anchor U coordinate of the GeoJsonPoint. floatgetAnchorV()Gets the Anchor V coordinate of the GeoJsonPoint. voidsetAnchor(float anchorU, float anchorV)Sets the Anchor U and V coordinates of the GeoJsonPoint. booleanisDraggable()Gets whether the GeoJsonPoint is draggable voidsetDraggable(boolean draggable)Sets the GeoJsonPoint to be draggable booleanisFlat()Gets whether the GeoJsonPoint is flat voidsetFlat(boolean flat)Sets the GeoJsonPoint to be flat BitmapDescriptorgetIcon()Gets a bitmap image for the GeoJsonPoint voidsetIcon(BitmapDescriptor bitmap)Sets a bitmap image for the GeoJsonPoint floatgetInfoWindowAnchorU()Gets the info window anchor U coordinate of the GeoJsonPoint. floatgetInfoWindowAnchorV()Gets the info window anchor V coordinate of the GeoJsonPoint. voidsetInfoWindowAnchor(float infoWindowAnchorU, float infoWindowAnchorV)Sets the info window anchor U and V coordinates of the GeoJsonPoint. floatgetRotation()Gets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point voidsetRotation(float rotation)Sets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point StringgetSnippet()Gets the snippet of the GeoJsonPoint voidsetSnippet(String snippet)Sets the snippet of the GeoJsonPoint StringgetTitle()Gets the title of the GeoJsonPoint voidsetTitle(String title)Sets the title of the GeoJsonPoint booleanisVisible()Gets whether the GeoJsonPoint is visible voidsetVisible(boolean visible)Sets whether the GeoJsonPoint is visible MarkerOptionstoMarkerOptions()Gets a new MarkerOptions object containing styles for the GeoJsonPoint StringtoString()floatgetZIndex()Gets the z index of the GeoJsonLineString voidsetZIndex(float zIndex)Sets the z index of the GeoJsonLineString -
Methods inherited from class com.google.maps.android.data.Style
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
-
getGeometryType
Array<String> getGeometryType()
Gets the type of geometries this style can be applied to
-
getAlpha
float getAlpha()
Gets the alpha of the GeoJsonPoint. This is a value from 0 to 1, where 0 means the marker iscompletely transparent and 1 means the marker is completely opaque.
-
setAlpha
void setAlpha(float alpha)
Sets the alpha of the GeoJsonPoint. This is a value from 0 to 1, where 0 means the marker iscompletely transparent and 1 means the marker is completely opaque.
- Parameters:
alpha- alpha value of the GeoJsonPoint
-
getAnchorU
float getAnchorU()
Gets the Anchor U coordinate of the GeoJsonPoint. Normalized to [0, 1], of the anchor fromthe left edge. This is equivalent to the same U value used in .
-
getAnchorV
float getAnchorV()
Gets the Anchor V coordinate of the GeoJsonPoint. Normalized to [0, 1], of the anchor fromthe top edge. This is equivalent to the same V value used in .
-
setAnchor
void setAnchor(float anchorU, float anchorV)
Sets the Anchor U and V coordinates of the GeoJsonPoint. The anchor point is specified inthecontinuous space [0.0, 1.0] x [0.0, 1.0], where (0, 0) is the top-left corner of the image,and (1, 1) is the bottom-right corner. The U & V values are the same U & V valuesused in anchor ()}.
- Parameters:
anchorU- Anchor U coordinate of the GeoJsonPointanchorV- Anchor V coordinate of the GeoJsonPoint
-
isDraggable
boolean isDraggable()
Gets whether the GeoJsonPoint is draggable
-
setDraggable
void setDraggable(boolean draggable)
Sets the GeoJsonPoint to be draggable
- Parameters:
draggable- true if GeoJsonPoint is draggable, false if not draggable
-
isFlat
boolean isFlat()
Gets whether the GeoJsonPoint is flat
-
setFlat
void setFlat(boolean flat)
Sets the GeoJsonPoint to be flat
- Parameters:
flat- true if GeoJsonPoint is flat, false if not flat
-
getIcon
BitmapDescriptor getIcon()
Gets a bitmap image for the GeoJsonPoint
-
setIcon
void setIcon(BitmapDescriptor bitmap)
Sets a bitmap image for the GeoJsonPoint
- Parameters:
bitmap- bitmap descriptor for the GeoJsonPoint
-
getInfoWindowAnchorU
float getInfoWindowAnchorU()
Gets the info window anchor U coordinate of the GeoJsonPoint. Normalized to [0, 1], of theinfo window anchor from the left edge. This is equivalent to the same U value used in .
-
getInfoWindowAnchorV
float getInfoWindowAnchorV()
Gets the info window anchor V coordinate of the GeoJsonPoint. Normalized to [0, 1], of theinfo window anchor from the top edge. This is equivalent to the same V value used in .
-
setInfoWindowAnchor
void setInfoWindowAnchor(float infoWindowAnchorU, float infoWindowAnchorV)
Sets the info window anchor U and V coordinates of the GeoJsonPoint. This is specified inthe same coordinate system as the anchor. The U & V values are the same U & V valuesused in infoWindowAnchor.
- Parameters:
infoWindowAnchorU- info window anchor U coordinate of the GeoJsonPointinfoWindowAnchorV- info window anchor V coordinate of the GeoJsonPoint
-
getRotation
float getRotation()
Gets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point
-
setRotation
void setRotation(float rotation)
Sets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point
- Parameters:
rotation- rotation value of the GeoJsonPoint
-
getSnippet
String getSnippet()
Gets the snippet of the GeoJsonPoint
-
setSnippet
void setSnippet(String snippet)
Sets the snippet of the GeoJsonPoint
- Parameters:
snippet- sets the snippet value of the GeoJsonPoint
-
setTitle
void setTitle(String title)
Sets the title of the GeoJsonPoint
- Parameters:
title- title value of the GeoJsonPoint
-
isVisible
boolean isVisible()
Gets whether the GeoJsonPoint is visible
-
setVisible
void setVisible(boolean visible)
Sets whether the GeoJsonPoint is visible
- Parameters:
visible- true if GeoJsonPoint is visible, false if not visible
-
toMarkerOptions
MarkerOptions toMarkerOptions()
Gets a new MarkerOptions object containing styles for the GeoJsonPoint
-
getZIndex
float getZIndex()
Gets the z index of the GeoJsonLineString
-
setZIndex
void setZIndex(float zIndex)
Sets the z index of the GeoJsonLineString
- Parameters:
zIndex- z index value of the GeoJsonPoint
-
-
-
-