| java.lang.Object | |
| ↳ | com.google.android.gms.maps.model.BitmapDescriptorFactory |
Used to create a definition of an 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 verify that the GoogleMap is available by
calling the getMap() method and checking that the returned object is not null.
MapsInitializer.initialize(Context). As long as a
GooglePlayServicesNotAvailableException isn't thrown, this class will be correctly initialized.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a bitmap descriptor that refers to the default marker image.
| |||||||||||
Creates a bitmap descriptor that refers to a colorization of the default marker image.
| |||||||||||
Creates a
BitmapDescriptor using the name of an image in the assets directory.
| |||||||||||
Creates a bitmap descriptor from a given image.
| |||||||||||
Creates a
BitmapDescriptor using the name of an image file located in the internal
storage.
| |||||||||||
Creates a bitmap descriptor from an absolute file path.
| |||||||||||
Creates a
BitmapDescriptor using the resource id of an image.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
Creates a bitmap descriptor that refers to the default marker image.
Creates a bitmap descriptor 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. |
|---|
Creates a BitmapDescriptor using the name of an image in the assets directory.
| assetName | The name of an image in the assets directory. |
|---|
BitmapDescriptor that was loaded from the asset or null if failed
to load.
Creates a bitmap descriptor from a given image.
Creates a BitmapDescriptor using the name of an image file located in the internal
storage. In particular, this calls openFileInput(String).
| fileName | The name of the image file. |
|---|
BitmapDescriptor that was loaded from the asset or null if failed
to load.
Creates a bitmap descriptor from an absolute file path.
| absolutePath | The absolute path of the image. |
|---|
BitmapDescriptor that was loaded from the absolute path or null
if failed to load.
Creates a BitmapDescriptor using the resource id of an image.
| resourceId | The resource id of an image. |
|---|
BitmapDescriptor that was loaded from the asset or null if failed
to load.