BitmapDescriptor

パブリック ファイナル クラス BitmapDescriptor オブジェクト
を拡張

ビットマップ画像を定義します。マーカーの場合、このクラスを使用してマーカー アイコンの画像を設定できます。 地面オーバーレイの場合、これを使用して画像を地表に配置できます。宛先 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));
 

継承されたメソッドの概要