새로운 지도 스타일이 곧 Google Maps Platform에 제공될 예정입니다. 이 지도 스타일 지정 업데이트에는 새로운 기본 색상 팔레트와 지도 환경 및 사용성 개선사항이 포함됩니다. 모든 지도 스타일이 2025년 3월에 자동으로 업데이트됩니다. 사용 가능 여부 및 더 일찍 선택하는 방법에 대한 자세한 내용은 Google Maps Platform용 새로운 지도 스타일을 참고하세요.
데이터 세트를 위한 데이터 기반 스타일 지정에는 지도 ID가 필요합니다. 지도 ID가 누락되었거나 잘못된 지도 ID가 전달된 경우 데이터 세트의 데이터 기반 스타일 지정을 로드할 수 없습니다. 문제 해결 단계로 MapCapabilities를 사용하여 데이터 세트의 데이터 기반 스타일 지정이 지원되는지 확인할 수 있습니다.
Kotlin
valcapabilities:MapCapabilities=googleMap.getMapCapabilities()System.out.println("Data-driven Styling is available: "+capabilities.isDataDrivenStylingAvailable())
Java
MapCapabilitiescapabilities=googleMap.getMapCapabilities();System.out.println("Data-driven Styling is available: "+capabilities.isDataDrivenStylingAvailable());
[null,null,["최종 업데이트: 2025-02-25(UTC)"],[[["To utilize data-driven styling for datasets, you'll need a Cloud project with billing enabled, the Maps SDK for Android, and the Maps Datasets API enabled."],["Ensure your app uses the upgraded map renderer (available since version 18.0.0 of the Maps SDK for Android) to support data-driven styling, rebuilding the app if necessary."],["You'll need to create a map ID associated with a new map style, then update your map initialization code to include this map ID."],["Before applying data-driven styling, it's crucial to check for map capabilities at runtime using `MapCapabilities` and provide fallback options for unsupported devices."],["Data-driven styling requires a valid map ID; if missing or invalid, the styling will fail to load."]]],[]]