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

สรุปวิธีการที่รับมา