MarkerOptions에서 마커의 색상을 변경하는 방법
MarkerOptions#icon
에 BitmapDescriptor
를 전달합니다.구현은 다음과 같습니다.
val latLng = LatLng(0.0, 0.0)
val bitmapDescriptor = BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)
MarkerOptions().position(latLng).icon(bitmapDescriptor)
색상 종류
BitmapDescriptorFactory
에는 다음과 같은 색상이 있습니다.
HUE_RED

HUE_ORANGE

HUE_YELLOW

HUE_GREEN

HUE_CYAN

HUE_AZURE

HUE_BLUE

HUE_VIOLET

HUE_MAGENTA

HUE_ROSE
Reference
이 문제에 관하여(MarkerOptions에서 마커의 색상을 변경하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/yass97/items/23d7941bb963346b6efa
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여(MarkerOptions에서 마커의 색상을 변경하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yass97/items/23d7941bb963346b6efa텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)