Used to create a definition of a Bitmap image, used for marker icons and ground overlays.
Prior to using any methods from this class, you must do one of the following to ensure that this class is initialized:
GoogleMap to
become available from a MapFragment or
MapView that you
have added to your application. You can obtain the GoogleMap
instance by calling getMapAsync() and waiting for the
onMapReady(GoogleMap map) callback.
MapsInitializer.initialize(Context). As long as a
GooglePlayServicesNotAvailableException isn't thrown, this class will be
correctly initialized.| float | HUE_AZURE | |
| float | HUE_BLUE | |
| float | HUE_CYAN | |
| float | HUE_GREEN | |
| float | HUE_MAGENTA | |
| float | HUE_ORANGE | |
| float | HUE_RED | |
| float | HUE_ROSE | |
| float | HUE_VIOLET | |
| float | HUE_YELLOW |
| static BitmapDescriptor |
defaultMarker(float hue)
Creates a
BitmapDescriptor
that refers to a colorization of the default marker image.
|
| static BitmapDescriptor |
defaultMarker()
Creates a
BitmapDescriptor
that refers to the default marker image.
|
| static BitmapDescriptor |
fromAsset(String assetName)
Creates a
BitmapDescriptor
using the name of a Bitmap image in the assets directory.
|
| static BitmapDescriptor | |
| static BitmapDescriptor |
fromFile(String fileName)
Creates a
BitmapDescriptor
using the name of a Bitmap image file located in the internal storage.
|
| static BitmapDescriptor |
fromPath(String
absolutePath)
Creates a
BitmapDescriptor
from the absolute file path of a Bitmap image.
|
| static BitmapDescriptor | |
| static BitmapDescriptor |
fromResource(int resourceId)
Creates a
BitmapDescriptor
using the resource ID of a Bitmap image.
|
Creates a BitmapDescriptor
that refers to a colorization of the default marker image. For convenience, there is a
predefined set of hue values. See example
HUE_YELLOW.
| hue | The hue of the marker. Value must be greater or equal to 0 and less than 360. |
|---|
BitmapDescriptor
for the colored marker image.Creates a BitmapDescriptor
that refers to the default marker image.
Creates a BitmapDescriptor
using the name of a Bitmap image in the assets directory.
| assetName | The name of a Bitmap image in the assets directory. Must not be
null. |
|---|
BitmapDescriptor
that was loaded from the asset.Creates a BitmapDescriptor
from a given Bitmap image.
| image | The image referenced in the descriptor. Must not be null. |
|---|
BitmapDescriptor
for the image.Creates a BitmapDescriptor
using the name of a Bitmap image file located in the internal storage. In particular,
this calls
Context.openFileInput(String).
| fileName | The name of the Bitmap image file. Must not be null. |
|---|
BitmapDescriptor
for the image in the app's internal storage.Creates a BitmapDescriptor
from the absolute file path of a Bitmap image.
| absolutePath | The absolute path of the Bitmap image. Must not be null. |
|---|
BitmapDescriptor
that was loaded from the absolute path.Creates a BitmapDescriptor
from a given PinConfig.
| pinConfig | instance to create a bitmap for |
|---|
BitmapDescriptor
that will be created using the given PinConfigCreates a BitmapDescriptor
using the resource ID of a Bitmap image.
| resourceId | The resource ID of a Bitmap image. |
|---|
BitmapDescriptor
for the image with the given resource ID.