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));
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-09-05 (世界標準時間)。"],[[["`BitmapDescriptor` defines bitmap images for marker icons and ground overlays in Google Maps."],["Use `BitmapDescriptorFactory` to create instances of `BitmapDescriptor`."],["Marker icons can be customized using `BitmapDescriptor` obtained from `BitmapDescriptorFactory`."],["`BitmapDescriptor` inherits standard methods from `java.lang.Object` like `equals`, `hashCode`, and `toString`."]]],[]]