@rousen/react-naver-maps 0.0.15 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ pnpm add @rousen/react-naver-maps
15
15
  ## 빠른 시작
16
16
 
17
17
  ```tsx
18
- import { Map, MapProvider, Marker } from "@rousen/react-naver-maps";
18
+ import { Map, Marker } from "@rousen/react-naver-maps";
19
19
 
20
20
  function App() {
21
21
  return (
@@ -28,7 +28,7 @@ function App() {
28
28
 
29
29
  > 기본적으로 GL 서브모듈을 포함해 로드하며, WebGL 렌더링을 사용합니다. 필요 시 `disableGL` prop으로 옵트아웃할 수 있습니다.
30
30
 
31
- 더 자세한 사용법과 API 문서는 [문서 사이트](https://your-docusaurus-site.com)를 참고하세요.
31
+ 더 자세한 사용법과 API 문서는 [문서 사이트](https://knsan189.github.io/react-naver-maps)를 참고하세요.
32
32
 
33
33
  ## 개발
34
34
 
@@ -64,13 +64,7 @@ npm run lint
64
64
 
65
65
  ## 문서
66
66
 
67
- 상세한 사용법, API 문서, 예제는 [문서 사이트](https://your-docusaurus-site.com)에서 확인할 수 있습니다.
68
-
69
- 로컬에서 문서를 실행하려면:
70
-
71
- ```bash
72
- npm run docs:dev
73
- ```
67
+ 상세한 사용법, API 문서, 예제는 [문서 사이트](https://knsan189.github.io/react-naver-maps)에서 확인할 수 있습니다.
74
68
 
75
69
  ## 주요 기능
76
70
 
@@ -101,14 +95,6 @@ npm run docs:dev
101
95
  - React DOM >= 16.8.0
102
96
  - 네이버 클라우드 플랫폼(NCP) 클라이언트 ID
103
97
 
104
- ## 기술 스택
105
-
106
- - **React** - UI 라이브러리
107
- - **TypeScript** - 타입 안정성
108
- - **Rollup** - 번들러
109
- - **Docusaurus** - 문서 사이트 생성
110
- - **ESLint** - 코드 품질 관리
111
-
112
98
  ## 라이선스
113
99
 
114
100
  MIT
@@ -0,0 +1,52 @@
1
+ declare const EVENT_TO_PROP: {
2
+ readonly addfeature: "onAddFeature";
3
+ readonly removefeature: "onRemoveFeature";
4
+ readonly setfeature: "onSetFeature";
5
+ readonly setgeometry: "onSetGeometry";
6
+ readonly setproperty: "onSetProperty";
7
+ readonly removeproperty: "onRemoveProperty";
8
+ readonly click: "onClick";
9
+ readonly dblclick: "onDblclick";
10
+ readonly rightclick: "onRightclick";
11
+ readonly mousedown: "onMouseDown";
12
+ readonly mouseup: "onMouseUp";
13
+ readonly mouseover: "onMouseOver";
14
+ readonly mouseout: "onMouseOut";
15
+ readonly mousemove: "onMouseMove";
16
+ };
17
+ type EventKey = keyof typeof EVENT_TO_PROP;
18
+ type PropKey = (typeof EVENT_TO_PROP)[EventKey];
19
+ interface DataLayerCallbacks {
20
+ addfeature?: (event: naver.maps.FeatureEvent) => void;
21
+ removefeature?: (event: naver.maps.FeatureEvent) => void;
22
+ setfeature?: (event: naver.maps.FeatureEvent) => void;
23
+ setgeometry?: (event: naver.maps.FeatureEvent) => void;
24
+ setproperty?: (event: naver.maps.PropertyEvent) => void;
25
+ removeproperty?: (event: naver.maps.PropertyEvent) => void;
26
+ click?: (event: naver.maps.PointerEvent) => void;
27
+ dblclick?: (event: naver.maps.PointerEvent) => void;
28
+ rightclick?: (event: naver.maps.PointerEvent) => void;
29
+ mousedown?: (event: naver.maps.PointerEvent) => void;
30
+ mouseup?: (event: naver.maps.PointerEvent) => void;
31
+ mouseover?: (event: naver.maps.PointerEvent) => void;
32
+ mouseout?: (event: naver.maps.PointerEvent) => void;
33
+ mousemove?: (event: naver.maps.PointerEvent) => void;
34
+ }
35
+ type HandlerOfProp<P extends PropKey> = DataLayerCallbacks[{
36
+ [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
37
+ }[EventKey]];
38
+ type DataLayerEventProps = {
39
+ [P in PropKey]?: HandlerOfProp<P>;
40
+ };
41
+ type DataLayerType = "gpx" | "kml" | "geojson";
42
+ export interface DataLayerProps extends DataLayerEventProps {
43
+ type: DataLayerType;
44
+ url: string;
45
+ autoStyle?: boolean;
46
+ style?: naver.maps.StyleOptions | naver.maps.StylingFunction;
47
+ onLoad?: (layer: naver.maps.Data) => void;
48
+ onError?: (error: Error) => void;
49
+ }
50
+ declare const DataLayer: ({ type, url, autoStyle, style, onLoad, onError, ...eventProps }: DataLayerProps) => null;
51
+ export default DataLayer;
52
+ //# sourceMappingURL=DataLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLayer.d.ts","sourceRoot":"","sources":["../../src/components/DataLayer.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;CAeT,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,aAAa,CAAC;AAC3C,KAAK,OAAO,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEhD,UAAU,kBAAkB;IAC1B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,KAAK,IAAI,CAAC;IACxD,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,KAAK,IAAI,CAAC;IAC3D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC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AE,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,SAAS,GAAI,iEAQhB,cAAc,SA8FhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -2,8 +2,6 @@ import { ReactNode } from "react";
2
2
  import { NaverMapsSubmodule } from "../utils/scriptLoader";
3
3
  declare const EVENT_TO_PROP: {
4
4
  readonly init: "onInit";
5
- readonly zoomstart: "onZoomStart";
6
- readonly zoomend: "onZoomEnd";
7
5
  readonly bounds_changed: "onBoundsChanged";
8
6
  readonly dragstart: "onDragStart";
9
7
  readonly dragend: "onDragEnd";
@@ -29,6 +27,15 @@ declare const EVENT_TO_PROP: {
29
27
  readonly projection_changed: "onProjectionChanged";
30
28
  readonly removeLayer: "onRemoveLayer";
31
29
  readonly size_changed: "onSizeChanged";
30
+ readonly tap: "onTap";
31
+ readonly tilesloaded: "onTilesLoaded";
32
+ readonly touchend: "onTouchEnd";
33
+ readonly touchstart: "onTouchStart";
34
+ readonly touchmove: "onTouchMove";
35
+ readonly twofintertap: "onTwoFingerTap";
36
+ readonly zoom_changed: "onZoomChanged";
37
+ readonly zoomend: "onZoomEnd";
38
+ readonly zoomstart: "onZoomStart";
32
39
  };
33
40
  type EventKey = keyof typeof EVENT_TO_PROP;
34
41
  type PropKey = (typeof EVENT_TO_PROP)[EventKey];
@@ -40,9 +47,6 @@ interface MapCallbacks {
40
47
  dbclick?: (event: naver.maps.PointerEvent) => void;
41
48
  doubletap?: (event: naver.maps.PointerEvent) => void;
42
49
  bounds_changed?: (bounds: naver.maps.Bounds) => void;
43
- zoomstart?: () => void;
44
- zoomend?: () => void;
45
- zoom_changed?: (zoom: number) => void;
46
50
  drag?: (event: naver.maps.PointerEvent) => void;
47
51
  dragstart?: (event: naver.maps.PointerEvent) => void;
48
52
  dragend?: (event: naver.maps.PointerEvent) => void;
@@ -50,12 +54,6 @@ interface MapCallbacks {
50
54
  init?: () => void;
51
55
  scroll?: () => void;
52
56
  rightclick?: (event: naver.maps.PointerEvent) => void;
53
- tap?: (event: naver.maps.PointerEvent) => void;
54
- tiles_loaded?: () => void;
55
- touchend?: (event: naver.maps.PointerEvent) => void;
56
- touchstart?: (event: naver.maps.PointerEvent) => void;
57
- touchmove?: (event: naver.maps.PointerEvent) => void;
58
- twofintertap?: (event: naver.maps.PointerEvent) => void;
59
57
  keydown?: (event: naver.maps.DOMEvent) => void;
60
58
  keyup?: (event: naver.maps.DOMEvent) => void;
61
59
  longtap?: (event: naver.maps.PointerEvent) => void;
@@ -73,6 +71,15 @@ interface MapCallbacks {
73
71
  removeLayer?: (layerName: naver.maps.Layer["name"]) => void;
74
72
  resize?: () => void;
75
73
  size_changed?: (size: naver.maps.Size) => void;
74
+ tap?: (event: naver.maps.PointerEvent) => void;
75
+ tilesloaded?: () => void;
76
+ touchend?: () => void;
77
+ touchmove?: (event: naver.maps.PointerEvent) => void;
78
+ touchstart?: (event: naver.maps.PointerEvent) => void;
79
+ twofintertap?: (event: naver.maps.PointerEvent) => void;
80
+ zoom_changed?: (zoom: number) => void;
81
+ zoomstart?: () => void;
82
+ zoomend?: () => void;
76
83
  }
77
84
  type HandlerOfProp<P extends PropKey> = MapCallbacks[{
78
85
  [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
@@ -1 +1 @@
1
- {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../src/components/Map.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BT,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,aAAa,CAAC;AAC3C,KAAK,OAAO,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,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,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACxD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,KAAK,aAAa,CAAC,CAAC,SAAS,OAAO,IAAI,YAAY,CAAC;KAClD,CAAC,IAAI,QAAQ,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CACjE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEb,KAAK,aAAa,GAAG;KAClB,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,GAAG,qGA8GR,CAAC;AAIF,eAAe,GAAG,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,10 +4,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
5
5
  type NaverMapsSubmodule = "traffic" | "transit" | "drawing" | "event" | "heatmap" | "marker";
6
6
 
7
- declare const EVENT_TO_PROP$6: {
7
+ declare const EVENT_TO_PROP$7: {
8
8
  readonly init: "onInit";
9
- readonly zoomstart: "onZoomStart";
10
- readonly zoomend: "onZoomEnd";
11
9
  readonly bounds_changed: "onBoundsChanged";
12
10
  readonly dragstart: "onDragStart";
13
11
  readonly dragend: "onDragEnd";
@@ -33,9 +31,18 @@ declare const EVENT_TO_PROP$6: {
33
31
  readonly projection_changed: "onProjectionChanged";
34
32
  readonly removeLayer: "onRemoveLayer";
35
33
  readonly size_changed: "onSizeChanged";
34
+ readonly tap: "onTap";
35
+ readonly tilesloaded: "onTilesLoaded";
36
+ readonly touchend: "onTouchEnd";
37
+ readonly touchstart: "onTouchStart";
38
+ readonly touchmove: "onTouchMove";
39
+ readonly twofintertap: "onTwoFingerTap";
40
+ readonly zoom_changed: "onZoomChanged";
41
+ readonly zoomend: "onZoomEnd";
42
+ readonly zoomstart: "onZoomStart";
36
43
  };
37
- type EventKey$6 = keyof typeof EVENT_TO_PROP$6;
38
- type PropKey$6 = (typeof EVENT_TO_PROP$6)[EventKey$6];
44
+ type EventKey$7 = keyof typeof EVENT_TO_PROP$7;
45
+ type PropKey$7 = (typeof EVENT_TO_PROP$7)[EventKey$7];
39
46
  interface MapCallbacks {
40
47
  addLayer?: (layer: naver.maps.Layer) => void;
41
48
  center_changed?: (center: naver.maps.Coord) => void;
@@ -44,9 +51,6 @@ interface MapCallbacks {
44
51
  dbclick?: (event: naver.maps.PointerEvent) => void;
45
52
  doubletap?: (event: naver.maps.PointerEvent) => void;
46
53
  bounds_changed?: (bounds: naver.maps.Bounds) => void;
47
- zoomstart?: () => void;
48
- zoomend?: () => void;
49
- zoom_changed?: (zoom: number) => void;
50
54
  drag?: (event: naver.maps.PointerEvent) => void;
51
55
  dragstart?: (event: naver.maps.PointerEvent) => void;
52
56
  dragend?: (event: naver.maps.PointerEvent) => void;
@@ -54,12 +58,6 @@ interface MapCallbacks {
54
58
  init?: () => void;
55
59
  scroll?: () => void;
56
60
  rightclick?: (event: naver.maps.PointerEvent) => void;
57
- tap?: (event: naver.maps.PointerEvent) => void;
58
- tiles_loaded?: () => void;
59
- touchend?: (event: naver.maps.PointerEvent) => void;
60
- touchstart?: (event: naver.maps.PointerEvent) => void;
61
- touchmove?: (event: naver.maps.PointerEvent) => void;
62
- twofintertap?: (event: naver.maps.PointerEvent) => void;
63
61
  keydown?: (event: naver.maps.DOMEvent) => void;
64
62
  keyup?: (event: naver.maps.DOMEvent) => void;
65
63
  longtap?: (event: naver.maps.PointerEvent) => void;
@@ -77,12 +75,21 @@ interface MapCallbacks {
77
75
  removeLayer?: (layerName: naver.maps.Layer["name"]) => void;
78
76
  resize?: () => void;
79
77
  size_changed?: (size: naver.maps.Size) => void;
78
+ tap?: (event: naver.maps.PointerEvent) => void;
79
+ tilesloaded?: () => void;
80
+ touchend?: () => void;
81
+ touchmove?: (event: naver.maps.PointerEvent) => void;
82
+ touchstart?: (event: naver.maps.PointerEvent) => void;
83
+ twofintertap?: (event: naver.maps.PointerEvent) => void;
84
+ zoom_changed?: (zoom: number) => void;
85
+ zoomstart?: () => void;
86
+ zoomend?: () => void;
80
87
  }
81
- type HandlerOfProp$6<P extends PropKey$6> = MapCallbacks[{
82
- [E in EventKey$6]: (typeof EVENT_TO_PROP$6)[E] extends P ? E : never;
83
- }[EventKey$6]];
88
+ type HandlerOfProp$7<P extends PropKey$7> = MapCallbacks[{
89
+ [E in EventKey$7]: (typeof EVENT_TO_PROP$7)[E] extends P ? E : never;
90
+ }[EventKey$7]];
84
91
  type MapEventProps = {
85
- [P in PropKey$6]?: HandlerOfProp$6<P>;
92
+ [P in PropKey$7]?: HandlerOfProp$7<P>;
86
93
  };
87
94
  interface MapProps extends MapEventProps {
88
95
  ncpKeyId: string;
@@ -106,7 +113,7 @@ type MapCollection = {
106
113
  };
107
114
  declare const useMap: () => MapCollection;
108
115
 
109
- declare const EVENT_TO_PROP$5: {
116
+ declare const EVENT_TO_PROP$6: {
110
117
  readonly click: "onClick";
111
118
  readonly position_changed: "onPositionChanged";
112
119
  readonly rightclick: "onRightclick";
@@ -125,8 +132,8 @@ declare const EVENT_TO_PROP$5: {
125
132
  readonly mouseover: "onMouseOver";
126
133
  readonly mouseout: "onMouseOut";
127
134
  };
128
- type EventKey$5 = keyof typeof EVENT_TO_PROP$5;
129
- type PropKey$5 = (typeof EVENT_TO_PROP$5)[EventKey$5];
135
+ type EventKey$6 = keyof typeof EVENT_TO_PROP$6;
136
+ type PropKey$6 = (typeof EVENT_TO_PROP$6)[EventKey$6];
130
137
  interface MarkerCallbacks {
131
138
  click?: (event: naver.maps.PointerEvent) => void;
132
139
  clickable_changed?: (clickable: boolean) => void;
@@ -146,11 +153,11 @@ interface MarkerCallbacks {
146
153
  mouseover?: (event: naver.maps.PointerEvent) => void;
147
154
  mouseout?: (event: naver.maps.PointerEvent) => void;
148
155
  }
149
- type HandlerOfProp$5<P extends PropKey$5> = MarkerCallbacks[{
150
- [E in EventKey$5]: (typeof EVENT_TO_PROP$5)[E] extends P ? E : never;
151
- }[EventKey$5]];
156
+ type HandlerOfProp$6<P extends PropKey$6> = MarkerCallbacks[{
157
+ [E in EventKey$6]: (typeof EVENT_TO_PROP$6)[E] extends P ? E : never;
158
+ }[EventKey$6]];
152
159
  type MarkerEventProps = {
153
- [P in PropKey$5]?: HandlerOfProp$5<P>;
160
+ [P in PropKey$6]?: HandlerOfProp$6<P>;
154
161
  };
155
162
  type BaseMarkerProps = Omit<naver.maps.MarkerOptions, "map">;
156
163
  interface MarkerProps extends BaseMarkerProps, MarkerEventProps {
@@ -167,6 +174,41 @@ interface Props {
167
174
  }
168
175
  declare const Overlay: ({ children, ...options }: Props) => react_jsx_runtime.JSX.Element;
169
176
 
177
+ declare const EVENT_TO_PROP$5: {
178
+ readonly click: "onClick";
179
+ readonly dblclick: "onDblclick";
180
+ readonly rightclick: "onRightclick";
181
+ readonly mousedown: "onMouseDown";
182
+ readonly mouseup: "onMouseUp";
183
+ readonly mouseover: "onMouseOver";
184
+ readonly mouseout: "onMouseOut";
185
+ readonly mouseenter: "onMouseEnter";
186
+ readonly mouseleave: "onMouseLeave";
187
+ };
188
+ type EventKey$5 = keyof typeof EVENT_TO_PROP$5;
189
+ type PropKey$5 = (typeof EVENT_TO_PROP$5)[EventKey$5];
190
+ interface PolygonCallbacks {
191
+ click?: (event: naver.maps.PointerEvent) => void;
192
+ dblclick?: (event: naver.maps.PointerEvent) => void;
193
+ rightclick?: (event: naver.maps.PointerEvent) => void;
194
+ mousedown?: (event: naver.maps.PointerEvent) => void;
195
+ mouseup?: (event: naver.maps.PointerEvent) => void;
196
+ mouseover?: (event: naver.maps.PointerEvent) => void;
197
+ mouseout?: (event: naver.maps.PointerEvent) => void;
198
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
199
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
200
+ }
201
+ type HandlerOfProp$5<P extends PropKey$5> = PolygonCallbacks[{
202
+ [E in EventKey$5]: (typeof EVENT_TO_PROP$5)[E] extends P ? E : never;
203
+ }[EventKey$5]];
204
+ type PolygonEventProps = {
205
+ [P in PropKey$5]?: HandlerOfProp$5<P>;
206
+ };
207
+ type BasePolygonProps = Omit<naver.maps.PolygonOptions, "map">;
208
+ interface PolygonProps extends BasePolygonProps, PolygonEventProps {
209
+ }
210
+ declare const Polygon: react.ForwardRefExoticComponent<PolygonProps & react.RefAttributes<naver.maps.Polygon>>;
211
+
170
212
  declare const EVENT_TO_PROP$4: {
171
213
  readonly click: "onClick";
172
214
  readonly dblclick: "onDblclick";
@@ -180,7 +222,7 @@ declare const EVENT_TO_PROP$4: {
180
222
  };
181
223
  type EventKey$4 = keyof typeof EVENT_TO_PROP$4;
182
224
  type PropKey$4 = (typeof EVENT_TO_PROP$4)[EventKey$4];
183
- interface PolygonCallbacks {
225
+ interface PolylineCallbacks {
184
226
  click?: (event: naver.maps.PointerEvent) => void;
185
227
  dblclick?: (event: naver.maps.PointerEvent) => void;
186
228
  rightclick?: (event: naver.maps.PointerEvent) => void;
@@ -191,16 +233,16 @@ interface PolygonCallbacks {
191
233
  mouseenter?: (event: naver.maps.PointerEvent) => void;
192
234
  mouseleave?: (event: naver.maps.PointerEvent) => void;
193
235
  }
194
- type HandlerOfProp$4<P extends PropKey$4> = PolygonCallbacks[{
236
+ type HandlerOfProp$4<P extends PropKey$4> = PolylineCallbacks[{
195
237
  [E in EventKey$4]: (typeof EVENT_TO_PROP$4)[E] extends P ? E : never;
196
238
  }[EventKey$4]];
197
- type PolygonEventProps = {
239
+ type PolylineEventProps = {
198
240
  [P in PropKey$4]?: HandlerOfProp$4<P>;
199
241
  };
200
- type BasePolygonProps = Omit<naver.maps.PolygonOptions, "map">;
201
- interface PolygonProps extends BasePolygonProps, PolygonEventProps {
242
+ type BasePolylineProps = Omit<naver.maps.PolylineOptions, "map">;
243
+ interface PolylineProps extends BasePolylineProps, PolylineEventProps {
202
244
  }
203
- declare const Polygon: react.ForwardRefExoticComponent<PolygonProps & react.RefAttributes<naver.maps.Polygon>>;
245
+ declare const Polyline: react.ForwardRefExoticComponent<PolylineProps & react.RefAttributes<naver.maps.Polyline>>;
204
246
 
205
247
  declare const EVENT_TO_PROP$3: {
206
248
  readonly click: "onClick";
@@ -215,7 +257,7 @@ declare const EVENT_TO_PROP$3: {
215
257
  };
216
258
  type EventKey$3 = keyof typeof EVENT_TO_PROP$3;
217
259
  type PropKey$3 = (typeof EVENT_TO_PROP$3)[EventKey$3];
218
- interface PolylineCallbacks {
260
+ interface RectangleCallbacks {
219
261
  click?: (event: naver.maps.PointerEvent) => void;
220
262
  dblclick?: (event: naver.maps.PointerEvent) => void;
221
263
  rightclick?: (event: naver.maps.PointerEvent) => void;
@@ -226,16 +268,16 @@ interface PolylineCallbacks {
226
268
  mouseenter?: (event: naver.maps.PointerEvent) => void;
227
269
  mouseleave?: (event: naver.maps.PointerEvent) => void;
228
270
  }
229
- type HandlerOfProp$3<P extends PropKey$3> = PolylineCallbacks[{
271
+ type HandlerOfProp$3<P extends PropKey$3> = RectangleCallbacks[{
230
272
  [E in EventKey$3]: (typeof EVENT_TO_PROP$3)[E] extends P ? E : never;
231
273
  }[EventKey$3]];
232
- type PolylineEventProps = {
274
+ type RectangleEventProps = {
233
275
  [P in PropKey$3]?: HandlerOfProp$3<P>;
234
276
  };
235
- type BasePolylineProps = Omit<naver.maps.PolylineOptions, "map">;
236
- interface PolylineProps extends BasePolylineProps, PolylineEventProps {
277
+ type BaseRectangleProps = Omit<naver.maps.RectangleOptions, "map">;
278
+ interface RectangleProps extends BaseRectangleProps, RectangleEventProps {
237
279
  }
238
- declare const Polyline: react.ForwardRefExoticComponent<PolylineProps & react.RefAttributes<naver.maps.Polyline>>;
280
+ declare const Rectangle: react.ForwardRefExoticComponent<RectangleProps & react.RefAttributes<naver.maps.Rectangle>>;
239
281
 
240
282
  declare const EVENT_TO_PROP$2: {
241
283
  readonly click: "onClick";
@@ -250,7 +292,7 @@ declare const EVENT_TO_PROP$2: {
250
292
  };
251
293
  type EventKey$2 = keyof typeof EVENT_TO_PROP$2;
252
294
  type PropKey$2 = (typeof EVENT_TO_PROP$2)[EventKey$2];
253
- interface RectangleCallbacks {
295
+ interface CircleCallbacks {
254
296
  click?: (event: naver.maps.PointerEvent) => void;
255
297
  dblclick?: (event: naver.maps.PointerEvent) => void;
256
298
  rightclick?: (event: naver.maps.PointerEvent) => void;
@@ -261,16 +303,16 @@ interface RectangleCallbacks {
261
303
  mouseenter?: (event: naver.maps.PointerEvent) => void;
262
304
  mouseleave?: (event: naver.maps.PointerEvent) => void;
263
305
  }
264
- type HandlerOfProp$2<P extends PropKey$2> = RectangleCallbacks[{
306
+ type HandlerOfProp$2<P extends PropKey$2> = CircleCallbacks[{
265
307
  [E in EventKey$2]: (typeof EVENT_TO_PROP$2)[E] extends P ? E : never;
266
308
  }[EventKey$2]];
267
- type RectangleEventProps = {
309
+ type CircleEventProps = {
268
310
  [P in PropKey$2]?: HandlerOfProp$2<P>;
269
311
  };
270
- type BaseRectangleProps = Omit<naver.maps.RectangleOptions, "map">;
271
- interface RectangleProps extends BaseRectangleProps, RectangleEventProps {
312
+ type BaseCircleProps = Omit<naver.maps.CircleOptions, "map">;
313
+ interface CircleProps extends BaseCircleProps, CircleEventProps {
272
314
  }
273
- declare const Rectangle: react.ForwardRefExoticComponent<RectangleProps & react.RefAttributes<naver.maps.Rectangle>>;
315
+ declare const Circle: react.ForwardRefExoticComponent<CircleProps & react.RefAttributes<naver.maps.Circle>>;
274
316
 
275
317
  declare const EVENT_TO_PROP$1: {
276
318
  readonly click: "onClick";
@@ -285,7 +327,7 @@ declare const EVENT_TO_PROP$1: {
285
327
  };
286
328
  type EventKey$1 = keyof typeof EVENT_TO_PROP$1;
287
329
  type PropKey$1 = (typeof EVENT_TO_PROP$1)[EventKey$1];
288
- interface CircleCallbacks {
330
+ interface EllipseCallbacks {
289
331
  click?: (event: naver.maps.PointerEvent) => void;
290
332
  dblclick?: (event: naver.maps.PointerEvent) => void;
291
333
  rightclick?: (event: naver.maps.PointerEvent) => void;
@@ -296,18 +338,24 @@ interface CircleCallbacks {
296
338
  mouseenter?: (event: naver.maps.PointerEvent) => void;
297
339
  mouseleave?: (event: naver.maps.PointerEvent) => void;
298
340
  }
299
- type HandlerOfProp$1<P extends PropKey$1> = CircleCallbacks[{
341
+ type HandlerOfProp$1<P extends PropKey$1> = EllipseCallbacks[{
300
342
  [E in EventKey$1]: (typeof EVENT_TO_PROP$1)[E] extends P ? E : never;
301
343
  }[EventKey$1]];
302
- type CircleEventProps = {
344
+ type EllipseEventProps = {
303
345
  [P in PropKey$1]?: HandlerOfProp$1<P>;
304
346
  };
305
- type BaseCircleProps = Omit<naver.maps.CircleOptions, "map">;
306
- interface CircleProps extends BaseCircleProps, CircleEventProps {
347
+ type BaseEllipseProps = Omit<naver.maps.EllipseOptions, "map">;
348
+ interface EllipseProps extends BaseEllipseProps, EllipseEventProps {
307
349
  }
308
- declare const Circle: react.ForwardRefExoticComponent<CircleProps & react.RefAttributes<naver.maps.Circle>>;
350
+ declare const Ellipse: react.ForwardRefExoticComponent<EllipseProps & react.RefAttributes<naver.maps.Ellipse>>;
309
351
 
310
352
  declare const EVENT_TO_PROP: {
353
+ readonly addfeature: "onAddFeature";
354
+ readonly removefeature: "onRemoveFeature";
355
+ readonly setfeature: "onSetFeature";
356
+ readonly setgeometry: "onSetGeometry";
357
+ readonly setproperty: "onSetProperty";
358
+ readonly removeproperty: "onRemoveProperty";
311
359
  readonly click: "onClick";
312
360
  readonly dblclick: "onDblclick";
313
361
  readonly rightclick: "onRightclick";
@@ -315,12 +363,17 @@ declare const EVENT_TO_PROP: {
315
363
  readonly mouseup: "onMouseUp";
316
364
  readonly mouseover: "onMouseOver";
317
365
  readonly mouseout: "onMouseOut";
318
- readonly mouseenter: "onMouseEnter";
319
- readonly mouseleave: "onMouseLeave";
366
+ readonly mousemove: "onMouseMove";
320
367
  };
321
368
  type EventKey = keyof typeof EVENT_TO_PROP;
322
369
  type PropKey = (typeof EVENT_TO_PROP)[EventKey];
323
- interface EllipseCallbacks {
370
+ interface DataLayerCallbacks {
371
+ addfeature?: (event: naver.maps.FeatureEvent) => void;
372
+ removefeature?: (event: naver.maps.FeatureEvent) => void;
373
+ setfeature?: (event: naver.maps.FeatureEvent) => void;
374
+ setgeometry?: (event: naver.maps.FeatureEvent) => void;
375
+ setproperty?: (event: naver.maps.PropertyEvent) => void;
376
+ removeproperty?: (event: naver.maps.PropertyEvent) => void;
324
377
  click?: (event: naver.maps.PointerEvent) => void;
325
378
  dblclick?: (event: naver.maps.PointerEvent) => void;
326
379
  rightclick?: (event: naver.maps.PointerEvent) => void;
@@ -328,19 +381,24 @@ interface EllipseCallbacks {
328
381
  mouseup?: (event: naver.maps.PointerEvent) => void;
329
382
  mouseover?: (event: naver.maps.PointerEvent) => void;
330
383
  mouseout?: (event: naver.maps.PointerEvent) => void;
331
- mouseenter?: (event: naver.maps.PointerEvent) => void;
332
- mouseleave?: (event: naver.maps.PointerEvent) => void;
384
+ mousemove?: (event: naver.maps.PointerEvent) => void;
333
385
  }
334
- type HandlerOfProp<P extends PropKey> = EllipseCallbacks[{
386
+ type HandlerOfProp<P extends PropKey> = DataLayerCallbacks[{
335
387
  [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
336
388
  }[EventKey]];
337
- type EllipseEventProps = {
389
+ type DataLayerEventProps = {
338
390
  [P in PropKey]?: HandlerOfProp<P>;
339
391
  };
340
- type BaseEllipseProps = Omit<naver.maps.EllipseOptions, "map">;
341
- interface EllipseProps extends BaseEllipseProps, EllipseEventProps {
392
+ type DataLayerType = "gpx" | "kml" | "geojson";
393
+ interface DataLayerProps extends DataLayerEventProps {
394
+ type: DataLayerType;
395
+ url: string;
396
+ autoStyle?: boolean;
397
+ style?: naver.maps.StyleOptions | naver.maps.StylingFunction;
398
+ onLoad?: (layer: naver.maps.Data) => void;
399
+ onError?: (error: Error) => void;
342
400
  }
343
- declare const Ellipse: react.ForwardRefExoticComponent<EllipseProps & react.RefAttributes<naver.maps.Ellipse>>;
401
+ declare const DataLayer: ({ type, url, autoStyle, style, onLoad, onError, ...eventProps }: DataLayerProps) => null;
344
402
 
345
- export { Circle, Ellipse, Map, MapProvider, Marker, Overlay, Polygon, Polyline, Rectangle, useMap };
346
- export type { CircleProps, EllipseProps, MapProps, MarkerProps, PolylineProps, RectangleProps };
403
+ export { Circle, DataLayer, Ellipse, Map, MapProvider, Marker, Overlay, Polygon, Polyline, Rectangle, useMap };
404
+ export type { CircleProps, DataLayerProps, EllipseProps, MapProps, MarkerProps, PolylineProps, RectangleProps };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,EAAE,MAAM,0BAA0B,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