Với điểm đánh dấu nâng cao, bạn có thể tạo và tuỳ chỉnh các điểm đánh dấu có hiệu suất cao. Tuỳ chỉnh nền, đường viền và màu ký tự của điểm đánh dấu mặc định, đồng thời thay thế biểu tượng điểm đánh dấu mặc định bằng hình ảnh đồ hoạ tuỳ chỉnh.
Điểm đánh dấu nâng cao là các đối tượng thuộc loại
AdvancedMarker,
là một lớp con của
Marker.
Với điểm đánh dấu nâng cao, bạn có thể tuỳ chỉnh tất cả các thuộc tính Marker hiện có, bao gồm:
Các trường title (tiêu đề) và snippet (đoạn trích)
Đặt bất kỳ Chế độ xem Android nào làm điểm đánh dấu
Kiểm soát hành vi va chạm
Tuỳ chỉnh thuộc tính điểm đánh dấu
Tuỳ chỉnh màu nền, ký tự và đường viền của điểm đánh dấu mặc định.
Sử dụng thành phần hiển thị Android làm điểm đánh dấu
Thay thế biểu tượng điểm đánh dấu mặc định bằng một View của Android chứa một điểm đánh dấu tuỳ chỉnh hoàn toàn.
Thiết lập hành vi va chạm của điểm đánh dấu
Chỉ định cách một điểm đánh dấu hoạt động khi va chạm với một điểm đánh dấu hoặc nhãn bản đồ khác. Độ cao của điểm đánh dấu chỉ được hỗ trợ trên bản đồ vectơ.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-06-16 UTC."],[[["Advanced 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."],["They inherit all existing `Marker` 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."],["Developers 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."],["Advanced markers also provide options for managing collision behavior, allowing developers to specify how markers should react when overlapping with other markers or map labels."]]],["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"]]