BitmapDescriptor

公開最終課 BitmapDescriptor 擴充物件

定義點陣圖圖片。如果是標記,這個類別可用來設定標記圖示的圖片。 如為區域疊加層,則可用於設定圖片並放在地球表面上。目的地: 使用工廠類別 BitmapDescriptorFactory 取得 BitmapDescriptor

設定標記 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));
 

繼承方法摘要