BitmapDescriptor
Defines a Bitmap image. For a marker, this class can be used to set the image of the marker icon.
For a ground overlay, it can be used to set the image to place on the surface of the earth. To
obtain a BitmapDescriptor
use the factory class BitmapDescriptorFactory
.
Example of setting the icon of a marker BitmapDescriptor
.
GoogleMap map = ... // get a map.
// Add a marker at San Francisco with an azure colored marker.
Marker marker = map.add(new MarkerOptions()
.position(new LatLng(37.7750, 122.4183))
.title("San Francisco")
.snippet("Population: 776733"))
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));
Inherited Method Summary
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[null,null,["Last updated 2025-05-07 UTC."],[[["`BitmapDescriptor` defines a Bitmap image used for marker icons and ground overlays in Google Maps."],["You can obtain a `BitmapDescriptor` using the `BitmapDescriptorFactory` class."],["The provided example demonstrates how to set a marker's icon using a `BitmapDescriptor` created with `BitmapDescriptorFactory`."],["The class inherits methods from `java.lang.Object` like `equals`, `hashCode`, and `toString`."]]],[]]