public final クラス BitmapDescriptor Extensions Object
Bitmap 画像を定義します。マーカーの場合、このクラスを使用してマーカー アイコンの画像を設定できます。地面オーバーレイの場合、これを使用して、地表面に配置する画像を設定できます。BitmapDescriptor
を取得するには、ファクトリ クラス BitmapDescriptorFactory
を使用します。
マーカー 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));