Package com.naver.maps.map.clustering
Interface ThresholdStrategy
- All Known Implementing Classes:
DefaultThresholdStrategy
public interface ThresholdStrategy
두
이 전략은
Node를 클러스터링할 기준 거리를 구하는 전략에 대한 인터페이스.
이 전략은
DistanceStrategy와 밀접하게 연관되어 있습니다. 두 노드 node1, node2가
있을 때, getDistance(zoom, node1, node2)가 반환한 둘 간의 거리가 getThreshold(zoom)가
반환한 기준 거리보다 작거나 같으면 두 노드는 zoom 레벨에서 클러스터링됩니다.-
Method Summary
Modifier and TypeMethodDescriptiondoublegetThreshold(int zoom) 줌 레벨이zoom일 때 두Node를 클러스터링할 기준 거리를 반환합니다.
-
Method Details
-
getThreshold
@WorkerThread double getThreshold(@IntRange(from=0L,to=21L) int zoom) 줌 레벨이zoom일 때 두Node를 클러스터링할 기준 거리를 반환합니다.- Parameters:
zoom- 기준 거리를 구할 줌 레벨.- Returns:
- 클러스터링할 기준 거리.
-