Circle

NaverCircle는 원을 생성하는 컴포넌트 입니다. NaverMap 생성 이후에 사용 가능합니다.

예시

자세한 Props, Emit 옵션은 NaverCircle에서 확인 가능합니다.

<script setup>
import { ref } from "vue";
import { NaverMap, NaverCircle } from "../../dist/vue3-naver-maps.esm";

const circle = ref();
const mapOptions = {
  latitude: 37.51347, // 지도 중앙 위도
  longitude: 127.041722, // 지도 중앙 경도
  zoom: 13,
  zoomControl: false,
  zoomControlOptions: { position: "TOP_RIGHT" },
};

const onLoadCircle = (circleObject) => {
  circle.value = circleObject;
};
</script>

<template>
  <naver-map width="100%" height="400px" :mapOptions="mapOptions">
    <naver-circle
      :latitude="37.51347"
      :longitude="127.041722"
      :radius="350"
      @onLoad="onLoadCircle($event)"
    />
  </naver-map>
</template>

설정

latitude, longitude는 필수적으로 입력해 주셔야 합니다.

radius는 원의 반경을 나타냅니다. 단위는 미터입니다.

UI 이벤트

이벤트에 대한 자세한 설명은 이벤트 상세설명open in new window에서 확인 가능합니다.

  • center_changed
  • click
  • clickable_changed
  • dblclick
  • mousedown
  • mouseout
  • mouseover
  • mouseup
  • radius_changed
  • visible_changed
  • zIndex_changed
Last Updated:
Contributors: dongkyuuuu