Marker
Marker 컴포넌트는 지도 위에 마커를 표시합니다.
사용법
import { Marker, useNavermaps } from 'react-naver-maps';
const navermaps = useNavermaps();
<Marker position={new navermaps.LatLng(37.5, 127.0)} />;
Props
| 이름 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
position | naver.maps.Coord | naver.maps.CoordLiteral | undefined | - | - | - |
defaultPosition | naver.maps.Coord | naver.maps.CoordLiteral | undefined | - | - | - |
icon | string | naver.maps.ImageIcon | naver.maps.SymbolIcon | naver.maps.HtmlIcon | undefined | - | - | - |
animation | naver.maps.Animation | undefined | - | - | - |
shape | naver.maps.MarkerShape | undefined | - | - | - |
title | string | undefined | - | - | - |
cursor | string | undefined | - | - | - |
clickable | boolean | undefined | - | - | - |
draggable | boolean | undefined | - | - | - |
visible | boolean | undefined | - | - | - |
zIndex | number | undefined | - | - | - |