| java.lang.Object | |
| ↳ | com.amazon.geo.mapsv2.model.BitmapDescriptorFactory |
Contains methods for creating BitmapDescriptor objects from different
sources. The bitmaps can then be used as Marker icons.
You can create a BitmapDescriptor that just changes the color of the
default marker icon, or you can use a custom image.
To assign a BitmapDescriptor to a marker, use
icon(BitmapDescriptor).
Before you can use the methods in this class, the map must be initialized. If
you call these methods before obtaining an AmazonMap object, you must
initialize the map first by calling
initialize(Context).
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| float | HUE_AZURE | Azure hue. | |||||||||
| float | HUE_BLUE | Blue hue. | |||||||||
| float | HUE_CYAN | Cyan hue. | |||||||||
| float | HUE_GREEN | Green hue. | |||||||||
| float | HUE_MAGENTA | Magenta hue. | |||||||||
| float | HUE_ORANGE | Orange hue. | |||||||||
| float | HUE_RED | Red hue. | |||||||||
| float | HUE_ROSE | Rose hue. | |||||||||
| float | HUE_VIOLET | Violet hue. | |||||||||
| float | HUE_YELLOW | Yellow hue. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a bitmap descriptor for the default
Marker image. | |||||||||||
Creates a bitmap descriptor for the default
Marker image
using the specified color. | |||||||||||
Creates a bitmap descriptor from the specified image in the assets
directory.
| |||||||||||
Creates a bitmap descriptor from the specified in-memory
Bitmap. | |||||||||||
Creates a bitmap descriptor from a private (package-specific) file.
| |||||||||||
Creates a bitmap descriptor from a file in internal storage, such as the
SD card.
| |||||||||||
Creates a bitmap descriptor from an image resource id.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Azure hue. Constant value 210.0.
Blue hue. Constant value 240.0.
Cyan hue. Constant value 180.0.
Green hue. Constant value 120.0.
Magenta hue. Constant value 300.0.
Orange hue. Constant value 30.0.
Red hue. Constant value 0.0.
Rose hue. Constant value 330.0.
Violet hue. Constant value 270.0.
Yellow hue. Constant value 60.0.
Creates a bitmap descriptor for the default Marker image.
BitmapDescriptor.
Creates a bitmap descriptor for the default Marker image
using the specified color.
| hue | The color to use for the image. Must be a number greater than or equal to 0 and less than 360. Note that this specifies a color in HSV color space with S and V of 1.0. |
|---|
BitmapDescriptor.
Creates a bitmap descriptor from the specified image in the assets
directory. Returns null if the asset fails to load.
| assetName | The name of the asset. |
|---|
BitmapDescriptor created from the asset or
null if the asset failed to load.
Creates a bitmap descriptor from the specified in-memory Bitmap.
| image | The in-memory Bitmap. |
|---|
BitmapDescriptor created from the Bitmap.
Creates a bitmap descriptor from a private (package-specific) file.
| fileName | The name of the file. Note that this must not contain a path. |
|---|
BitmapDescriptor created from the private file,
or null if the file failed to load.
Creates a bitmap descriptor from a file in internal storage, such as the SD card.
| absolutePath | The absolute path to the file. |
|---|
BitmapDescriptor created from the file, or
null if the file failed to load.
Creates a bitmap descriptor from an image resource id. Throws an
IllegalArgumentException for bad resource ids (<0).
| resourceId | The resource id of the image. |
|---|
BitmapDescriptor created from the image, or
null if the resource failed to load.