컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
차단 > MarkerManager
MarkerManager 클래스
작업공간의 여러 마커와 커서를 관리하는 클래스입니다.
서명:
export declare class MarkerManager
이 클래스의 생성자가 내부 생성자로 표시됩니다. 서드 파티 코드는 생성자를 직접 호출하거나 MarkerManager
클래스를 확장하는 서브클래스를 만들면 안 됩니다.
속성
속성 |
수정자 |
유형 |
설명 |
LOCAL_MARKER |
static
readonly
|
(선언되지 않음) |
로컬 마커의 이름입니다. |
메서드
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],["The `MarkerManager` class manages multiple markers and a cursor on a workspace. It allows registration and unregistration of markers via `registerMarker` and `unregisterMarker`, respectively. It also provides `getMarker` to retrieve a specific marker by ID, `getCursor` to access the workspace's cursor, and `setCursor` to define and initialize the cursor for keyboard navigation. `LOCAL_MARKER` is a static property holding the local marker's name. Direct instantiation of this class is restricted.\n"],null,[]]