Constructor 링크 복사

카텍(KATEC) 좌표와 반지름을 설정하여 KNMapCircle 객체를 생성합니다.

KNMapCircle(center: FloatPoint, radius: Float, fillColor: Int, strokeColor: Int, strokeWidth: Float, strokeDashType: KNLineDashType, priority: Int)
KNMapCircle(center: FloatPoint, radius: Float, fillColor: Int, strokeColor: Int, strokeWidth: Float, strokeDashType: KNLineDashType, priority: Int)
코드가 숨겨졌습니다.
  • centerradius는 필수 입력 항목입니다.
  • 마커의 우선순위는 다른 오브젝트(원, 폴리곤 등)보다 항상 높습니다. 따라서, 마커와 같은 값을 가져 위치가 겹치더라도 마커를 최상위 레이어에 표시합니다.
표 1 Properties
Name Description Type
center 원이 표시되는 카텍(KATEC) 좌표 var center: FloatPoint
radius 원의 반지름 크기 var radius: Float
fillColor 원의 면 색상 var fillColor: Int
strokeColor 원의 외곽선 색상 var strokeColor: Int
strokeWidth 원의 외곽선 두께(외곽선 두께 설정 범위: 1~5) var strokeWidth: Float
strokeDashType 원의 외곽선 종류
실선, 점선, 파선, 1점 쇄선, 2점 쇄선 등을 설정할 수 있음
(기본값: KNLineDashType_Solid)
var strokeDashType: KNLineDashType
priority 원을 표시할 우선순위
숫자가 높을수록 상위로 표시됨
(기본값: 0, 우선순위 설정 범위: 0~65535)
var priority: Int
isVisible 원의 표시 여부
(기본값: true)
var isVisible: Boolean
tag 원에 설정할 태그(tag)
태그는 Int 값을 가지며 카테고리 분류나 별도의 구분을 하고 싶을 때 사용할 수 있음(선택 사항)
var tag: Int
id(readOnly) 원의 고유 아이디 값 var id: Int
예시 코드 KNMapCircle
fun createCircleWithMapView(): KNMapCircle {
    val center = WGS84ToKATEC(127.11019081347423,37.3941851228957)
    return KNMapCircle(center, 100f,
            fillColor = Color.BLUE, 
            strokeColor = Color.YELLOW, 
            strokeWidth = 2f, 
            strokeDashType = KNLineDashType.KNLineDashType_Dotted,
            1)
}
fun createCircleWithMapView(): KNMapCircle {
    val center = WGS84ToKATEC(127.11019081347423,37.3941851228957)
    return KNMapCircle(center, 100f,
            fillColor = Color.BLUE, 
            strokeColor = Color.YELLOW, 
            strokeWidth = 2f, 
            strokeDashType = KNLineDashType.KNLineDashType_Dotted,
            1)
}
코드가 숨겨졌습니다.