MapsInitializer
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
공개 최종 클래스 MapsInitializer는 객체를 확장합니다.
지도를 가져오기 전에 기능을 사용해야 하는 경우 이 클래스를 사용하여
Android용 Google Maps SDK를 초기화합니다. BitmapDescriptorFactory 및 CameraUpdateFactory와 같은 일부 클래스를 초기화해야 하므로 호출해야 합니다.
MapFragment 또는 MapView를 사용 중이고 이러한 클래스 중 하나에서 getMapAsync()를 호출하고 onMapReady(GoogleMap map) 콜백을 대기하여 이미 null이 아닌 GoogleMap를 가져왔다면 이 클래스에 관해 걱정할 필요가 없습니다. 몇 가지 예는 샘플 애플리케이션을 참조하세요.
클래스를 사용할 수 있도록 Android용 Google Maps SDK를 초기화합니다. MapFragment 또는 MapView를 사용 중이며 이러한 클래스 중 하나에서 getMapAsync()을 호출하여 이미 null이 아닌 GoogleMap를 가져온 경우에는 이 함수를 호출할 필요가 없습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2026-05-13(UTC)"],[],["The `MapsInitializer` class initializes the Google Maps SDK for Android, enabling the use of classes like `BitmapDescriptorFactory` and `CameraUpdateFactory`. It is necessary when map features are used before obtaining a map. Initialization is performed via the `initialize(Context context)` method, which requires a non-null context. This step is not required if a `GoogleMap` is already obtained via `getMapAsync()` on `MapFragment` or `MapView`. The method returns a `ConnectionResult` error code.\n"]]