All Projects → Musma → react-kakao-maps

Musma / react-kakao-maps

Licence: MIT license
카카오 지도 (Daum 지도 Web API) 리액트 컴포넌트

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-kakao-maps

react-kakao-maps-sdk
React components for using kakao map api
Stars: ✭ 134 (+294.12%)
Mutual labels:  daum-map, kakaomap, kakao-maps
yoast-components
Accessible React components by Yoast
Stars: ✭ 19 (-44.12%)
Mutual labels:  react-components
Slider
React Slider
Stars: ✭ 2,681 (+7785.29%)
Mutual labels:  react-components
Githubpopular Sj
慕课网实战课程:《React Native 开发跨平台 GitHub App》Demo
Stars: ✭ 246 (+623.53%)
Mutual labels:  react-components
React Npm Boilerplate
Boilerplate for creating React Npm packages with ES2015
Stars: ✭ 226 (+564.71%)
Mutual labels:  react-components
React Coroutine
Make your async components compact and descriptive by leveraging the power of the language features
Stars: ✭ 246 (+623.53%)
Mutual labels:  react-components
Nano Component
Fast & simple React component styles in under 1kb
Stars: ✭ 202 (+494.12%)
Mutual labels:  react-components
suomifi-ui-components
Suomi.fi-styleguide in React components
Stars: ✭ 28 (-17.65%)
Mutual labels:  react-components
Material Ui
MUI (formerly Material-UI) is the React UI library you always wanted. Follow your own design system, or start with Material Design.
Stars: ✭ 73,739 (+216779.41%)
Mutual labels:  react-components
Element React
Element UI
Stars: ✭ 2,690 (+7811.76%)
Mutual labels:  react-components
Coreui React
CoreUI React.js UI Components. CoreUI for React.js replaces and extends the Bootstrap javascript. Components have been built from scratch as true React.js hook components, without jQuery and unneeded dependencies.
Stars: ✭ 239 (+602.94%)
Mutual labels:  react-components
React Image Gallery
React carousel image gallery component with thumbnail support 🖼
Stars: ✭ 2,946 (+8564.71%)
Mutual labels:  react-components
React Arcgis
A few components to help you get started using the ArcGIS API for JavaScript and esri-loader with React
Stars: ✭ 251 (+638.24%)
Mutual labels:  react-components
Tailwind React Ui
React utility component primitives & UI framework for use with Tailwind CSS
Stars: ✭ 220 (+547.06%)
Mutual labels:  react-components
react-expandable-listview
React expandable components, assist you render expandable objects or React components
Stars: ✭ 38 (+11.76%)
Mutual labels:  react-components
Yoshino
A themable React component library!Flexible Lightweight PC UI Components built on React! Anyone can generate easily all kinds of themes by it!
Stars: ✭ 216 (+535.29%)
Mutual labels:  react-components
Hx
A simple, easy to use library for React development in ClojureScript.
Stars: ✭ 240 (+605.88%)
Mutual labels:  react-components
React Minimal Pie Chart
🍰 Lightweight but versatile SVG pie/donut charts for React. < 2kB gzipped.
Stars: ✭ 245 (+620.59%)
Mutual labels:  react-components
moon-design
Moon Design System for React
Stars: ✭ 209 (+514.71%)
Mutual labels:  react-components
hv-uikit-react
React UI library for the Hitachi Vantara Design System.
Stars: ✭ 29 (-14.71%)
Mutual labels:  react-components

Musma Logo

react-kakao-maps

카카오 지도 (Daum 지도 Web API) 리액트 컴포넌트

목적

react-google-maps도 있고, react-naver-maps도 있는데, react-kakao-maps는 없어서...

그래서 무스마 기술연구소에서 공유해드립니다.

설치 방법

애플리케이션이 시작되기 전에 Daum 지도 API를 먼저 불러와야 합니다.

다음 지도 Web API 사용법

<script type="text/javascript" src="https://github.com//dapi.kakao.com/v2/maps/sdk.js?appkey=발급받은 APP KEY를 넣으시면 됩니다.&libraries=services,clusterer"></script>

그리고 package.json에 dependencies로 추가합니다.

# npm
$ npm Musma/react-kakao-maps#0.0.1 --save

# yarn
$ yarn add Musma/react-kakao-maps#0.0.1

타입스크립트

타입스크립트 사용자를 위해 daum.maps.d.ts 패키지를 제공합니다.

tsconfig.json의 compilerOptions.types 속성에 daum.maps.d.ts 패키지를 추가하시면 됩니다.

{
  ...,
  "compilerOptions": {
    ...,
    "types": [
      ...,
      "daum.maps.d.ts"
    ]
  }
}

사용 방법

react-google-maps 컴포넌트 사용 방법과 비슷합니다.

import { Map, Marker, MarkerClusterer, Polyline } from 'react-kakao-maps'

...

render() {
  return (
    <React.Fragment>
      ...

      {/* 모든 지도 요소 컴포넌트들은 반드시 DOM 구조상 `Map`의 자손이어야 합니다. */}
      <Map options={{ ... }}>
        ...

        {/* 그냥 마커는 이렇게 */}
        <Marker options={{ ... }} />

        {/* 마커 클러스터링 기능 사용하려면 이렇게 */}
        <MarkerClusterer options={{ ... }}>
          <Marker options={{ ... }} />
        </MarkerClusterer>
        
        {/* 나머지도 동일합니다. */}
        <Polyline options={{ ... }} />
      </Map>
    </React.Fragment>
  )
}

제공되는 컴포넌트

  • AbstractOverlay
  • Circle
  • CustomOverlay
  • Ellipse
  • InfoWindow
  • Map
  • Marker
  • MarkerClusterer
  • Polygon
  • Polyline
  • Rectangle
  • 기타...

이슈/결함

  • GitHub 이슈에 등록해주세요.
  • 수정해서 Pull Request까지 주시면 더 좋습니다.

기여하기

모든 컴포넌트를 100% 다 만들지는 못했습니다. 필요한 부분을 보완해서 Pull Request를 보내주시면 같이 잘 쓰도록 하겠습니다.

저작권과 라이선스

  • 카카오 지도 API는 카카오 소유입니다.
  • MIT 라이선스로 제공되니 알아서 잘 쓰시고, 웬만하면 여기에 공유해서 같이 쓰도록 합시다.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].