ภาพรวม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เครื่องหมายขั้นสูงช่วยให้คุณสร้างและปรับแต่งเครื่องหมายที่มีประสิทธิภาพสูงได้ ปรับแต่งพื้นหลัง เส้นขอบ และสีสัญลักษณ์
ของเครื่องหมายเริ่มต้น รวมถึงแทนที่ไอคอนเครื่องหมายเริ่มต้นด้วยรูปภาพกราฟิกที่กำหนดเอง
เครื่องหมายขั้นสูงคือออบเจ็กต์ประเภท
AdvancedMarker
ซึ่งเป็นคลาสย่อยของ
Marker
เครื่องหมายขั้นสูงช่วยให้คุณปรับแต่งพร็อพเพอร์ตี้ที่มีอยู่ทั้งหมด
Marker
ได้ ซึ่งรวมถึง
เครื่องหมายขั้นสูงมีฟีเจอร์เพิ่มเติมดังนี้
- ปรับแต่งหมุดสี
- ตั้งค่า View ของ Android
เป็นเครื่องหมาย
- ควบคุมการดำเนินการสำหรับการซ้อนทับ
ปรับแต่งพร็อพเพอร์ตี้ของเครื่องหมาย
ปรับแต่งพื้นหลัง กลีฟ และสีเส้นขอบของเครื่องหมายเริ่มต้น
ใช้มุมมอง Android เป็นเครื่องหมาย
แทนที่ไอคอนเครื่องหมายเริ่มต้นด้วย Android
View
ที่มีเครื่องหมายที่กำหนดเองโดยสมบูรณ์
กำหนดลักษณะการทำงานของการซ้อนทับของเครื่องหมาย
ระบุลักษณะการทำงานของเครื่องหมายเมื่อชนกับ
เครื่องหมายหรือป้ายกำกับแผนที่อื่น รองรับความสูงของเครื่องหมายในแผนที่เวกเตอร์เท่านั้น
ขั้นตอนถัดไป
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eAdvanced markers allow you to create highly performant and customizable markers, offering control over background, border, glyph color, and the ability to replace the default icon with custom graphics.\u003c/p\u003e\n"],["\u003cp\u003eThey inherit all existing \u003ccode\u003eMarker\u003c/code\u003e properties, including title, snippet, click events, and drag events, while adding features like customizing colored pins, using Android views as markers, and controlling collision behavior.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can further personalize markers by customizing the default marker's appearance, including background, glyph, and border color, or even replace it entirely with a custom Android view.\u003c/p\u003e\n"],["\u003cp\u003eAdvanced markers also provide options for managing collision behavior, allowing developers to specify how markers should react when overlapping with other markers or map labels.\u003c/p\u003e\n"]]],["Advanced markers enable highly customizable and performant markers on maps. Users can personalize the default marker's background, border, and glyph colors, or substitute it with a custom graphic image or an Android `View`. These markers support standard `Marker` properties like title, snippet, click, and drag events. Unique features include colored pins, `View`-based markers, and collision behavior control. Users can customize the default marker's properties and specify how markers interact with other elements.\n"],null,["# Overview\n\nSelect platform: [Android](/maps/documentation/android-sdk/advanced-markers/overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/advanced-markers/overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/advanced-markers/overview \"View this page for the JavaScript platform docs.\")\n\n\u003cbr /\u003e\n\nWith advanced markers you can create and customize highly\nperformant markers. Customize the default marker's background, border, and glyph\ncolor, and replace the default marker icon with a custom\ngraphic image.\n\nAdvanced markers are objects of type\n[`AdvancedMarker`](/android/reference/com/google/android/gms/maps/model/AdvancedMarker),\nwhich is a subclass of\n[`Marker`](/android/reference/com/google/android/gms/maps/model/Marker).\nWith advanced markers, all the existing\n`Marker` properties are customizable, including:\n\n- The [title](/maps/documentation/android-sdk/marker#customize_a_marker) and [snippet](/maps/documentation/android-sdk/marker#customize_a_marker) fields\n- [Click events](/maps/documentation/android-sdk/marker#marker_click_events)\n- [Drag events](/maps/documentation/android-sdk/marker#marker_drag_events)\n\nAdvanced markers add the following additional features:\n\n- Customize colored pins\n- Set any Android [View](https://developer.android.com/reference/android/view/View) as the marker\n- Control collision behavior\n\nCustomize marker properties\n---------------------------\n\nCustomize the default marker's background, glyph, and border color.\n\nUse an Android view as the marker\n---------------------------------\n\nReplace the default marker icon with an Android\n[`View`](https://developer.android.com/reference/android/view/View)\ncontaining a custom completely custom marker.\n\nSet marker collision behavior\n-----------------------------\n\nSpecify how a marker should behave when it collides with\nanother marker or map label. Marker altitude is only supported on vector maps.\n\nNext step\n---------\n\n- [Get started with advanced markers](/maps/documentation/android-sdk/advanced-markers/start)"]]