Stay organized with collections
Save and categorize content based on your preferences.
public final class
BitmapDescriptor
extends Object
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.
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));
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-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`."]]],[]]