Skip to content

Conversation

Chimaa123
Copy link

@Chimaa123 Chimaa123 commented Jun 23, 2025

  • New feature (non-breaking change which adds functionality)

What does this change?

feat1: setting custom image to cluster
feat2: setting captions to cluster marker

🐛 문제 상황

네이버맵에서 클러스터를 적용 시에 클러스터에 커스텀 이미지를 설정하는 기능과 클러스터 내부 마커에서 캡션 설정하는 기능이 없었습니다.

👍 해결방법

따라서 클러스터 이미지 prop 및 클러스터에 속하는 마커에서 caption을 설정하는 기능을 Android, IOS 에서 개발했습니다.

🧪 테스트 방법

NaverMapView 에 clusters prop을 넘길 때 image를 다음과 같이 세팅 할 수 있습니다. 그리고 clusters의 markers에 caption을 다음 예제와 같이 설정할 수 있습니다. caption type는 일단 마커의 캡션 타입과 똑같습니다.

<NaverMapView style={{flex: 1}} 
      clusters={[{
        ... 
        image={{ uri: 'https://picsum.photos/100/100' }}
        markers: [{
              ...
             caption={{
                key: '1',
                text: 'hello',
              }}
             ....
            }]
    ]}
/>

@Chimaa123 Chimaa123 changed the title Set custom image for cluster and caption to cluster marker 클러스터 커스텀 이미지 설정 기능 및 클러스터 마케에 캡션 설정 기능 추가 Jun 23, 2025
@mym0404
Copy link
Owner

mym0404 commented Jun 27, 2025

PR 감사드립니다. 확인해보도록 하겠습니다.

@rhanziy

This comment was marked as off-topic.

@mym0404
Copy link
Owner

mym0404 commented Aug 15, 2025

브랜치에 대해 origin/main 을 merge하고 push해두었는데, CI가 통과할수있도록 수정 부탁드립니다.

@Chimaa123
Copy link
Author

@mym0404 안녕하세요? 덧글 지금 확인했습니다. 브렌치 업데이트해서 올립니다.

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

Successfully merging this pull request may close these issues.

3 participants