Defines a glyph, which is the element at the center of an AdvancedMarker icon. By default, this is a circle, but can be configured to have a different color, or set to some text or bitmap.
| float | DEFAULT_CIRCLE_RADIUS_DP | |
| float | X_COORDINATE_DP | |
| float | Y_COORDINATE_DP |
|
Glyph(int glyphColor)
Creates a glyph instance, using the default circle, but with a custom color.
|
| boolean | |
| BitmapDescriptor |
getBitmapDescriptor()
Gets the
BitmapDescriptor
for this PinConfig.Glyph
object.
|
| int |
getGlyphColor()
Gets the color for this
PinConfig.Glyph
object.
|
| String |
getText()
Gets the text for this
PinConfig.Glyph
object.
|
| int |
getTextColor()
Gets the text color for this
PinConfig.Glyph
object.
|
| int |
hashCode()
|
| void |
writeToParcel(Parcel out, int
flags)
|
Creates a glyph instance with the specified text. The default value is black
(0xff000000). Use
Glyph(String, int) to set text with a different color.
Creates a glyph instance with the specified text, and color (in ARGB format).
Creates a glyph instance with a specified bitmap.
Because the default glyph circle has a radius of 5dp, it is recommended to provide a bitmap drawable that is 10x10 pixels for mdpi screens, along with alternative bitmap drawables, following a 3:4:6:8:12:16 scaling ratio between the six primary densities. This will ensure that the glyph size for a custom bitmap pin will be similar to the glyph size for a pin using the default circle glyph.
Creates a glyph instance, using the default circle, but with a custom color.
Gets the BitmapDescriptor
for this PinConfig.Glyph
object.
Gets the color for this PinConfig.Glyph
object.
Gets the text for this PinConfig.Glyph
object.
Gets the text color for this PinConfig.Glyph
object.