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));
สรุปวิธีการที่รับมา
จากชั้นเรียน
java.lang.Object
|
boolean
|
เท่ากับ(อาร์กิวเมนต์ 0)
|
|
รอบชิงชนะเลิศ
ชั้นเรียน<?>
|
getClass()
|
|
int
|
hashCode()
|
|
รอบชิงชนะเลิศ
เป็นโมฆะ
|
notify()
|
|
รอบชิงชนะเลิศ
เป็นโมฆะ
|
notifyAll()
|
|
สตริง
|
toString()
|
|
รอบชิงชนะเลิศ
เป็นโมฆะ
|
Wait(long ARP0, int ARP1)
|
|
รอบชิงชนะเลิศ
เป็นโมฆะ
|
Wait(long ARP0)
|
|
รอบชิงชนะเลิศ
เป็นโมฆะ
|
wait()
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-11-02 UTC
[null,null,["อัปเดตล่าสุด 2025-11-02 UTC"],[],["`BitmapDescriptor` defines a bitmap image for markers or ground overlays. To use it, utilize the `BitmapDescriptorFactory` class. For instance, to set a marker's icon, you can use `BitmapDescriptorFactory.defaultMarker()` to define a color. The example provided demonstrates adding a marker to a map at specific coordinates and customizing it with an azure-colored icon, along with title and snippet. Additionally, this class inherits methods from the `java.lang.Object` class.\n"]]