
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
vue3-kakao-maps
Advanced tools
Vue3로 카카오맵을 가장 손쉽게 사용하는 법.
vue3-kakao-maps
는 Vue3
로 Kakao Map API를 손쉽게 사용할 수 있도록 개발된 컴포넌트 라이브러리입니다.
카카오맵 API의 지도
, 마커
, 인포윈도우
, 커스텀 오버레이
, 마커 클러스터
등을 컴포넌트 형태로 제공합니다.
사용 예시 및 컴포넌트 별 세부 속성값은 Docs에서 확인하실 수 있습니다.
NPM
npm i vue3-kakao-maps
Yarn
yarn add vue3-kakao-maps
PNPM
pnpm install vue3-kakao-maps
1. 카카오맵 API 로드
main.{js|ts}
에서 useKakao('API key')
호출을 통해 카카오맵 API를 로드합니다.
참고: API key 발급 관련 내용은 공식 문서을 참고해주세요.
import { createApp } from 'vue';
import App from './App.vue';
import { useKakao } from 'vue3-kakao-maps/@utils';
useKakao('API key');
createApp(App).mount('#app');
2. 지도 컴포넌트 호출
카카오맵 지도를 띄우기 위해서 KakaoMap
컴포넌트를 사용합니다. props
를 통해 카카오맵 API에서 제공하는 다양한 option
을 전달할 수 있습니다.
<script setup>
import { KakaoMap, KakaoMapMarker } from 'vue3-kakao-maps';
const coordinate = {
lat: 37.566826,
lng: 126.9786567
};
</script>
<template>
<KakaoMap :lat="coordinate.lat" :lng="coordinate.lng" :draggable="true">
<KakaoMapMarker :lat="coordinate.lat" :lng="coordinate.lng"></KakaoMapMarker>
</KakaoMap>
</template>
vue3-kakao-maps
로 만든 결과물vue3-kakao-maps
에서 제공하는 마커
, 커스텀 오버레이
, 폴리라인
, 키워드 검색
을 활용한 예제입니다. 여러 개의 마커를 사용하거나 이벤트를 추가할 수 있습니다.
문의사항이 있거나 도움이 필요한 경우 Github 이슈를 달아주세요!
아직 Kakao 지도 Web API를 100% 구현하지 못했습니다. 버그 또는 미구현 사항을 보완해서 Pull Request를 보내주시면 같이 잘 쓰도록 하겠습니다.
FAQs
kakao maps component library with vue3 and TS
The npm package vue3-kakao-maps receives a total of 62 weekly downloads. As such, vue3-kakao-maps popularity was classified as not popular.
We found that vue3-kakao-maps demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.