Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

클러스터링된 마커 커스텀 #73

Open
easyhooon opened this issue Apr 13, 2024 · 4 comments
Open

클러스터링된 마커 커스텀 #73

easyhooon opened this issue Apr 13, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@easyhooon
Copy link
Collaborator

image

@easyhooon easyhooon added the enhancement New feature or request label Apr 13, 2024
@easyhooon easyhooon self-assigned this Apr 13, 2024
@easyhooon
Copy link
Collaborator Author

https://navermaps.github.io/android-map-sdk/guide-ko/5-8.html

네이버 맵에서 이제 공식적으로 clustering 을 지원하는관계로 ted clustering 라이브러리 의존성은 제거해도될듯

@easyhooon
Copy link
Collaborator Author

안녕하세요. 네이버 클라우드 플랫폼입니다.

Clusterer를 생성할 때 Builder에 clusterMarkerUpdater를 지정하여 클러스터링 마커를 커스터마이징 할 수 있습니다.

고정된 이미지는 아이콘으로, 변하는 숫자는 캡션 텍스트로 표현하는 것을 권장하나 하나의 이미지로 만들어 아이콘으로 지정할 수도 있습니다.

https://github.com/navermaps/android-map-sdk/blob/master/app/src/main/java/com/naver/maps/map/demo/kotlin/clustering/ComplexClusteringActivity.kt#L119-L138 예제를 참고하시기 바랍니다.

감사합니다.

@easyhooon
Copy link
Collaborator Author

커스텀 마커를 만들기 위해선 CustomView(xml layout)를 만든 후에 이를 비트맵으로 변환하여 OverlayImage 의 drawable resource 로 넣어줘야 할듯! Composable 함수를 bitmap 으로 변환해서 drawable resource 로 변환하는 방법은 없을까도 고민해봐겠음

@easyhooon
Copy link
Collaborator Author

Composable 함수를 bitmap 으로 변환해서 drawable resource 로 변환하는 방법은 없을까도 고민해봐겠음 매번 클러스터링이 바뀔때마다 composable 을 bitmap으로 변환하면 성능면에서 좋지 않을 것 같긴함

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant