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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetThreshold(int zoom)줌 레벨이zoom일 때 두Node를 클러스터링할 기준 거리를 반환합니다.
-
-
-
Method Detail
-
getThreshold
@WorkerThread double getThreshold(@IntRange(from=0L,to=21L) int zoom)줌 레벨이zoom일 때 두Node를 클러스터링할 기준 거리를 반환합니다.- Parameters:
zoom- 기준 거리를 구할 줌 레벨.- Returns:
- 클러스터링할 기준 거리.
-
-