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));
 

繼承方法摘要