-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from mym0404/additional-cluster-properties
Additional cluster properties including width, height
- Loading branch information
Showing
32 changed files
with
933 additions
and
1,621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...a/com/mjstudio/reactnativenavermap/overlay/marker/cluster/RNCNaverMapClusterDataHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.mjstudio.reactnativenavermap.overlay.marker.cluster | ||
|
||
internal data class RNCNaverMapClusterDataHolder internal constructor( | ||
val width: Double? = null, | ||
val height: Double? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...om/mjstudio/reactnativenavermap/overlay/marker/cluster/RNCNaverMapClusterMarkerUpdater.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.mjstudio.reactnativenavermap.overlay.marker.cluster | ||
|
||
import com.mjstudio.reactnativenavermap.util.px | ||
import com.naver.maps.map.clustering.ClusterMarkerInfo | ||
import com.naver.maps.map.clustering.DefaultClusterMarkerUpdater | ||
import com.naver.maps.map.overlay.Marker | ||
import com.naver.maps.map.overlay.Marker.SIZE_AUTO | ||
|
||
internal class RNCNaverMapClusterMarkerUpdater( | ||
private val holder: RNCNaverMapClusterDataHolder, | ||
) : DefaultClusterMarkerUpdater() { | ||
override fun updateClusterMarker( | ||
info: ClusterMarkerInfo, | ||
marker: Marker, | ||
) { | ||
super.updateClusterMarker(info, marker) | ||
val (width, height) = holder | ||
marker.width = width?.px ?: SIZE_AUTO | ||
marker.height = height?.px ?: SIZE_AUTO | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.