개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
고급 마커를 사용하면 성능이 뛰어난 마커를 만들고 맞춤설정할 수 있습니다. 기본 마커의 배경, 테두리와 글리프 색상을 맞춤설정하고 기본 마커 아이콘을 맞춤 그래픽 이미지로 대체할 수 있습니다.
고급 마커는
AdvancedMarker
유형의 객체이며,
이는 Marker
의
서브클래스입니다.
고급 마커를 사용하면 다음을 비롯한
기존 Marker
속성을 모두 맞춤설정할 수 있습니다.
고급 마커에는 다음과 같은 기능이 추가되었습니다.
- 색상 핀 맞춤설정
- Android
뷰를
마커로 설정
- 충돌 동작 제어
마커 속성 맞춤설정
기본 마커의 배경, 글리프, 테두리 색상을 맞춤설정합니다.
Android 뷰를 마커로 사용
기본 마커 아이콘을 완전히 맞춤설정된 마커가 포함된
Android View
로 대체합니다.
마커 충돌 동작 설정
마커가 다른 마커 또는 지도 라벨과 충돌할 때의 동작을 지정합니다. 마커 고도는 벡터 지도에서만 설정할 수 있습니다.
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-05-14(UTC)
[null,null,["최종 업데이트: 2024-05-14(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)"]]