@mint-ui/map 1.1.1 → 1.2.0-test.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.
Files changed (31) hide show
  1. package/.claude/settings.local.json +16 -0
  2. package/.vscode/settings.json +11 -0
  3. package/CLAUDE.md +100 -0
  4. package/README.md +190 -0
  5. package/dist/components/mint-map/core/MintMapController.d.ts +1 -1
  6. package/dist/components/mint-map/core/MintMapCore.js +4 -1
  7. package/dist/components/mint-map/core/advanced/canvas/CanvasMarkerClaude.d.ts +63 -0
  8. package/dist/components/mint-map/core/advanced/canvas/CanvasMarkerClaude.js +1084 -0
  9. package/dist/components/mint-map/core/advanced/canvas/CanvasMarkerHanquf.d.ts +22 -0
  10. package/dist/components/mint-map/core/advanced/canvas/CanvasMarkerHanquf.js +413 -0
  11. package/dist/components/mint-map/core/advanced/canvas/index.d.ts +2 -0
  12. package/dist/components/mint-map/core/advanced/woongCanvas/ClusterMarker.d.ts +11 -0
  13. package/dist/components/mint-map/core/advanced/woongCanvas/WoongKonvaMarker.d.ts +48 -0
  14. package/dist/components/mint-map/core/advanced/woongCanvas/shared/context.d.ts +31 -0
  15. package/dist/components/mint-map/core/advanced/woongCanvas/shared/context.js +159 -0
  16. package/dist/components/mint-map/core/advanced/woongCanvas/shared/index.d.ts +4 -0
  17. package/dist/components/mint-map/core/advanced/woongCanvas/shared/performance.d.ts +161 -0
  18. package/dist/components/mint-map/core/advanced/woongCanvas/shared/types.d.ts +121 -0
  19. package/dist/components/mint-map/core/advanced/woongCanvas/shared/utils.d.ts +23 -0
  20. package/dist/components/mint-map/core/util/geohash.d.ts +2 -0
  21. package/dist/components/mint-map/core/util/geohash.js +125 -0
  22. package/dist/components/mint-map/google/GoogleMintMapController.js +1 -0
  23. package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +58 -0
  24. package/dist/components/mint-map/kakao/KakaoMintMapController.js +1 -0
  25. package/dist/components/mint-map/naver/NaverMintMapController.js +1 -0
  26. package/dist/components/mint-map/types/CommonTypes.d.ts +11 -0
  27. package/dist/index.es.js +1863 -137
  28. package/dist/index.js +4 -0
  29. package/dist/index.umd.js +1862 -134
  30. package/dist/mock.d.ts +133 -0
  31. package/package.json +17 -4
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './utils';
3
+ export * from './context';
4
+ export * from './performance';
@@ -0,0 +1,161 @@
1
+ /**
2
+ * 공간 인덱스 그리드 셀 크기 (px)
3
+ *
4
+ * 최적값 계산:
5
+ * - 목표: 클릭 시 셀당 10~30개 항목만 체크 (빠른 Hit Test)
6
+ * - 화면 크기: 1920×1080 기준
7
+ * - 30,000개 항목 → 50px 셀 크기 = 약 800개 셀 = 셀당 ~37개
8
+ *
9
+ * 성능 비교 (30,000개 기준):
10
+ * - 200px: 셀당 ~577개 → Hit Test O(577) ❌ 느림
11
+ * - 50px: 셀당 ~37개 → Hit Test O(37) ✅ 15배 빠름!
12
+ *
13
+ * 트레이드오프:
14
+ * - 작을수록: Hit Test 빠름, 메모리 사용량 증가
15
+ * - 클수록: 메모리 효율적, Hit Test 느림
16
+ */
17
+ export declare const SPATIAL_GRID_CELL_SIZE = 50;
18
+ /**
19
+ * 뷰포트 컬링 여유 공간 (px)
20
+ *
21
+ * 화면 밖 100px까지 렌더링하여 스크롤 시 부드러운 전환
22
+ * 30,000개 중 실제 렌더링: 화면에 보이는 1,000~3,000개만
23
+ */
24
+ export declare const DEFAULT_CULLING_MARGIN = 100;
25
+ /**
26
+ * LRU 캐시 최대 항목 수
27
+ *
28
+ * 좌표 변환 결과 캐싱 (positionToOffset 연산 비용 절약)
29
+ *
30
+ * 최적값 계산:
31
+ * - 전체 항목: 30,000개
32
+ * - 캐시 크기: 30,000개 → 100% 히트율 (메모리: ~2.4MB)
33
+ *
34
+ * 메모리 사용량 (항목당 ~80 bytes):
35
+ * - 10,000개: ~800KB → 캐시 히트율 33% ❌
36
+ * - 30,000개: ~2.4MB → 캐시 히트율 100% ✅
37
+ *
38
+ * zoom/pan 시 어차피 clear() 호출되므로 메모리 누적 없음
39
+ */
40
+ export declare const DEFAULT_MAX_CACHE_SIZE = 30000;
41
+ /**
42
+ * LRU (Least Recently Used) Cache
43
+ * 메모리 제한을 위한 캐시 구현 (최적화 버전)
44
+ *
45
+ * 개선 사항:
46
+ * 1. get() 성능 향상: 접근 빈도 추적 없이 단순 조회만 수행 (delete+set 제거)
47
+ * 2. set() 버그 수정: 기존 키 업데이트 시 maxSize 체크 로직 개선
48
+ * 3. 메모리 효율: 단순 FIFO 캐시로 동작하여 오버헤드 최소화
49
+ */
50
+ export declare class LRUCache<K, V> {
51
+ private cache;
52
+ private maxSize;
53
+ constructor(maxSize?: number);
54
+ /**
55
+ * 캐시에서 값 조회
56
+ *
57
+ * 최적화: delete+set 제거
58
+ * - 이전: 매번 delete+set으로 LRU 갱신 (해시 재계산 비용)
59
+ * - 현재: 단순 조회만 수행 (O(1) 해시 조회)
60
+ *
61
+ * 트레이드오프:
62
+ * - 장점: 읽기 성능 대폭 향상 (10,000번 get → 이전보다 2배 빠름)
63
+ * - 단점: 접근 빈도가 아닌 삽입 순서 기반 eviction (FIFO)
64
+ *
65
+ * WoongKonvaMarker 사용 사례에 최적:
66
+ * - 좌표 변환 결과는 zoom/pan 시 어차피 전체 초기화
67
+ * - 접근 빈도 추적보다 빠른 조회가 더 중요
68
+ */
69
+ get(key: K): V | undefined;
70
+ /**
71
+ * 캐시에 값 저장 (버그 수정 + 최적화)
72
+ *
73
+ * 수정 사항:
74
+ * 1. 기존 키 업데이트 시 크기 체크 누락 버그 수정
75
+ * 2. 로직 명확화: 기존 항목/신규 항목 분리 처리
76
+ */
77
+ set(key: K, value: V): void;
78
+ clear(): void;
79
+ size(): number;
80
+ has(key: K): boolean;
81
+ }
82
+ /**
83
+ * Spatial Hash Grid (공간 해시 그리드)
84
+ * 공간 인덱싱을 위한 그리드 기반 자료구조 (개선 버전)
85
+ *
86
+ * 개선 사항:
87
+ * 1. 중복 삽입 방지: 같은 항목을 여러 번 insert 해도 안전
88
+ * 2. 메모리 누수 방지: 기존 항목 자동 제거
89
+ * 3. 성능 최적화: 불필요한 배열 생성 최소화
90
+ *
91
+ * 사용 사례:
92
+ * - 빠른 Hit Test (마우스 클릭 시 어떤 마커/폴리곤인지 찾기)
93
+ * - 30,000개 항목 → 클릭 위치 주변 ~10개만 체크 (3,000배 빠름)
94
+ */
95
+ export declare class SpatialHashGrid<T> {
96
+ private cellSize;
97
+ private grid;
98
+ private itemToCells;
99
+ constructor(cellSize?: number);
100
+ /**
101
+ * 셀 키 생성 (x, y 좌표 → 그리드 셀 ID)
102
+ */
103
+ private getCellKey;
104
+ /**
105
+ * 바운딩 박스가 걸치는 모든 셀 키 배열 반환
106
+ */
107
+ private getCellsForBounds;
108
+ /**
109
+ * 항목 추가 (바운딩 박스 기반)
110
+ *
111
+ * 개선 사항:
112
+ * - 중복 삽입 방지: 기존 항목이 있으면 먼저 제거 후 재삽입
113
+ * - 메모리 누수 방지: 이전 셀 참조 완전 제거
114
+ */
115
+ insert(item: T, minX: number, minY: number, maxX: number, maxY: number): void;
116
+ /**
117
+ * 항목 제거
118
+ *
119
+ * 추가된 메서드: 메모리 누수 방지 및 업데이트 지원
120
+ */
121
+ remove(item: T): void;
122
+ /**
123
+ * 항목 위치 업데이트
124
+ *
125
+ * 추가된 메서드: remove + insert의 편의 함수
126
+ */
127
+ update(item: T, minX: number, minY: number, maxX: number, maxY: number): void;
128
+ /**
129
+ * 점 주변의 항목 조회 (1개 셀만)
130
+ *
131
+ * 성능: O(해당 셀의 항목 수) - 보통 ~10개
132
+ */
133
+ queryPoint(x: number, y: number): T[];
134
+ /**
135
+ * 영역 내 항목 조회
136
+ *
137
+ * 성능: O(셀 개수 × 셀당 평균 항목 수)
138
+ * Set으로 중복 제거 보장
139
+ */
140
+ queryBounds(minX: number, minY: number, maxX: number, maxY: number): T[];
141
+ /**
142
+ * 항목 존재 여부 확인
143
+ *
144
+ * 추가된 메서드: 빠른 존재 여부 체크
145
+ */
146
+ has(item: T): boolean;
147
+ /**
148
+ * 전체 초기화
149
+ */
150
+ clear(): void;
151
+ /**
152
+ * 통계 정보
153
+ *
154
+ * 개선: totalItems는 실제 고유 항목 수를 정확히 반환
155
+ */
156
+ stats(): {
157
+ totalCells: number;
158
+ totalItems: number;
159
+ avgItemsPerCell: number;
160
+ };
161
+ }
@@ -0,0 +1,121 @@
1
+ import Konva from "konva";
2
+ import { Position, Offset } from "../../../../types";
3
+ /**
4
+ * 폴리곤 경로 정의
5
+ */
6
+ export interface Paths {
7
+ type: string;
8
+ coordinates: number[][][][];
9
+ }
10
+ /**
11
+ * 캔버스 마커/폴리곤 기본 옵션
12
+ */
13
+ /**
14
+ * 캔버스 마커/폴리곤의 기본 필수 속성
15
+ * (렌더링에 필요한 최소 정보)
16
+ */
17
+ export interface CanvasMarkerOption {
18
+ id: string;
19
+ position: Position[];
20
+ boxWidth?: number;
21
+ boxHeight?: number;
22
+ paths?: Paths;
23
+ isDonutPolygon?: boolean;
24
+ }
25
+ /**
26
+ * 서버 데이터와 캔버스 옵션을 결합한 타입
27
+ * @template T 서버에서 받은 원본 데이터 타입 (예: Marker, Polygon)
28
+ * @example
29
+ * // API에서 받은 Marker 타입을 그대로 유지하면서 캔버스 렌더링 정보 추가
30
+ * type MarkerWithCanvas = CanvasMarkerData<Marker>
31
+ * // { raId, lat, lng, buildingName, totalArea } + { id, position, boxWidth, ... }
32
+ */
33
+ export declare type CanvasMarkerData<T = {}> = T & CanvasMarkerOption;
34
+ /**
35
+ * 렌더링 유틸리티 함수들
36
+ */
37
+ export interface RenderUtils<T> {
38
+ getOrComputePolygonOffsets: (polygonData: CanvasMarkerData<T>) => number[][][][] | null;
39
+ getOrComputeMarkerOffset: (markerData: CanvasMarkerData<T>) => Offset | null;
40
+ }
41
+ /**
42
+ * 커스텀 렌더링 함수 파라미터 - Base Layer
43
+ */
44
+ export interface RenderBaseParams<T> {
45
+ /** Canvas 2D 렌더링 컨텍스트 (순수 Canvas API) */
46
+ ctx: CanvasRenderingContext2D;
47
+ /** 렌더링할 마커 데이터 배열 */
48
+ items: CanvasMarkerData<T>[];
49
+ /** 현재 선택된 마커 ID Set */
50
+ selectedIds: Set<string>;
51
+ /** 렌더링 유틸리티 함수들 */
52
+ utils: RenderUtils<T>;
53
+ }
54
+ /**
55
+ * 커스텀 렌더링 함수 타입 - Base Layer
56
+ *
57
+ * 🔥 순수 Canvas API 사용 (Konva 지식 불필요!)
58
+ *
59
+ * @example
60
+ * const renderBase = ({ ctx, items, selectedIds, utils }) => {
61
+ * for (const item of items) {
62
+ * if (selectedIds.has(item.id)) continue;
63
+ * const pos = utils.getOrComputeMarkerOffset(item);
64
+ * ctx.fillRect(pos.x, pos.y, 50, 50); // 순수 Canvas API!
65
+ * }
66
+ * };
67
+ */
68
+ export declare type CustomRenderBase<T> = (params: RenderBaseParams<T>) => void;
69
+ /**
70
+ * 커스텀 렌더링 함수 파라미터 - Animation Layer
71
+ */
72
+ export interface RenderAnimationParams<T> {
73
+ /** Konva Layer 인스턴스 */
74
+ layer: Konva.Layer;
75
+ /** 현재 선택된 마커 ID Set */
76
+ selectedIds: Set<string>;
77
+ /** 전체 마커 데이터 배열 */
78
+ items: CanvasMarkerData<T>[];
79
+ /** 렌더링 유틸리티 함수들 */
80
+ utils: RenderUtils<T>;
81
+ }
82
+ /**
83
+ * 커스텀 렌더링 함수 타입 - Animation Layer (선택)
84
+ *
85
+ * @example
86
+ * const renderAnimation = ({ layer, selectedIds, items, utils }) => {
87
+ * for (const id of selectedIds) {
88
+ * const item = items.find(i => i.id === id);
89
+ * // Konva 애니메이션 구현
90
+ * }
91
+ * };
92
+ */
93
+ export declare type CustomRenderAnimation<T> = (params: RenderAnimationParams<T>) => void;
94
+ /**
95
+ * 커스텀 렌더링 함수 파라미터 - Event Layer
96
+ */
97
+ export interface RenderEventParams<T> {
98
+ /** Canvas 2D 렌더링 컨텍스트 (순수 Canvas API) */
99
+ ctx: CanvasRenderingContext2D;
100
+ /** 현재 hover된 마커 데이터 */
101
+ hoveredItem: CanvasMarkerData<T> | null;
102
+ /** 렌더링 유틸리티 함수들 */
103
+ utils: RenderUtils<T>;
104
+ /** 현재 선택된 마커 데이터 배열 (선택 강조용) */
105
+ selectedItems?: CanvasMarkerData<T>[];
106
+ }
107
+ /**
108
+ * 커스텀 렌더링 함수 타입 - Event Layer
109
+ *
110
+ * 🔥 순수 Canvas API 사용 (Konva 지식 불필요!)
111
+ *
112
+ * @example
113
+ * const renderEvent = ({ ctx, hoveredItem, utils, selectedItems }) => {
114
+ * if (hoveredItem) {
115
+ * const pos = utils.getOrComputeMarkerOffset(hoveredItem);
116
+ * ctx.fillStyle = 'red';
117
+ * ctx.fillRect(pos.x, pos.y, 50, 50); // 순수 Canvas API!
118
+ * }
119
+ * };
120
+ */
121
+ export declare type CustomRenderEvent<T> = (params: RenderEventParams<T>) => void;
@@ -0,0 +1,23 @@
1
+ import { Offset } from "../../../../types";
2
+ import { MintMapController } from "../../../MintMapController";
3
+ import { CanvasMarkerData } from "./types";
4
+ /**
5
+ * 폴리곤 offset 계산
6
+ */
7
+ export declare const computePolygonOffsets: (polygonData: CanvasMarkerData<any>, controller: MintMapController) => number[][][][] | null;
8
+ /**
9
+ * 마커 offset 계산
10
+ */
11
+ export declare const computeMarkerOffset: (markerData: CanvasMarkerData<any>, controller: MintMapController) => Offset | null;
12
+ /**
13
+ * Point-in-Polygon 알고리즘
14
+ */
15
+ export declare const isPointInPolygon: (point: Offset, polygon: number[][]) => boolean;
16
+ /**
17
+ * 폴리곤 히트 테스트
18
+ */
19
+ export declare const isPointInPolygonData: (clickedOffset: Offset, polygonData: CanvasMarkerData<any>, getPolygonOffsets: (data: CanvasMarkerData<any>) => number[][][][] | null) => boolean;
20
+ /**
21
+ * 마커 히트 테스트
22
+ */
23
+ export declare const isPointInMarkerData: (clickedOffset: Offset, markerData: CanvasMarkerData<any>, getMarkerOffset: (data: CanvasMarkerData<any>) => Offset | null) => boolean;
@@ -0,0 +1,2 @@
1
+ export declare function geohashEncode(lat: number, lon: number, precision?: number): string;
2
+ export declare function geohashNeighbors(hash: string): string[];
@@ -0,0 +1,125 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ // Lightweight Geohash encoder and neighbor utilities
6
+ var BASE32 = '0123456789bcdefghjkmnpqrstuvwxyz';
7
+ var NEIGHBORS = {
8
+ n: {
9
+ even: {
10
+ border: 'prxz',
11
+ neighbor: 'bc01fg45238967deuvhjyznpkmstqrwx'
12
+ },
13
+ odd: {
14
+ border: 'bcfguvyz',
15
+ neighbor: 'p0r21436x8zb9dcf5h7kjnmqesgutwvy'
16
+ }
17
+ },
18
+ s: {
19
+ even: {
20
+ border: '028b',
21
+ neighbor: '238967debc01fg45kmstqrwxuvhjyznp'
22
+ },
23
+ odd: {
24
+ border: '0145hjnp',
25
+ neighbor: '14365h7k9dcfesgujnmqp0r2twvyx8zb'
26
+ }
27
+ },
28
+ e: {
29
+ even: {
30
+ border: 'bcfguvyz',
31
+ neighbor: '14365h7k9dcfesgujnmqp0r2twvyx8zb'
32
+ },
33
+ odd: {
34
+ border: 'prxz',
35
+ neighbor: 'bc01fg45238967deuvhjyznpkmstqrwx'
36
+ }
37
+ },
38
+ w: {
39
+ even: {
40
+ border: '0145hjnp',
41
+ neighbor: '238967debc01fg45kmstqrwxuvhjyznp'
42
+ },
43
+ odd: {
44
+ border: '028b',
45
+ neighbor: 'p0r21436x8zb9dcf5h7kjnmqesgutwvy'
46
+ }
47
+ }
48
+ };
49
+ function geohashEncode(lat, lon, precision) {
50
+ if (precision === void 0) {
51
+ precision = 6;
52
+ }
53
+
54
+ var idx = 0;
55
+ var bit = 0;
56
+ var evenBit = true;
57
+ var geohash = '';
58
+ var latMin = -90,
59
+ latMax = 90;
60
+ var lonMin = -180,
61
+ lonMax = 180;
62
+
63
+ while (geohash.length < precision) {
64
+ if (evenBit) {
65
+ var lonMid = (lonMin + lonMax) / 2;
66
+
67
+ if (lon >= lonMid) {
68
+ idx = idx * 2 + 1;
69
+ lonMin = lonMid;
70
+ } else {
71
+ idx = idx * 2;
72
+ lonMax = lonMid;
73
+ }
74
+ } else {
75
+ var latMid = (latMin + latMax) / 2;
76
+
77
+ if (lat >= latMid) {
78
+ idx = idx * 2 + 1;
79
+ latMin = latMid;
80
+ } else {
81
+ idx = idx * 2;
82
+ latMax = latMid;
83
+ }
84
+ }
85
+
86
+ evenBit = !evenBit;
87
+
88
+ if (++bit == 5) {
89
+ geohash += BASE32.charAt(idx);
90
+ bit = 0;
91
+ idx = 0;
92
+ }
93
+ }
94
+
95
+ return geohash;
96
+ }
97
+
98
+ function adjacent(hash, dir) {
99
+ var lastChr = hash[hash.length - 1];
100
+ var type = hash.length % 2 ? 'odd' : 'even'; // @ts-ignore
101
+
102
+ var border = NEIGHBORS[dir][type].border; // @ts-ignore
103
+
104
+ var neighbor = NEIGHBORS[dir][type].neighbor;
105
+ var base = hash.substring(0, hash.length - 1);
106
+
107
+ if (border.indexOf(lastChr) !== -1) {
108
+ base = adjacent(base, dir);
109
+ }
110
+
111
+ var pos = neighbor.indexOf(lastChr);
112
+ var nextChr = BASE32.charAt(pos);
113
+ return base + nextChr;
114
+ }
115
+
116
+ function geohashNeighbors(hash) {
117
+ var n = adjacent(hash, 'n');
118
+ var s = adjacent(hash, 's');
119
+ var e = adjacent(hash, 'e');
120
+ var w = adjacent(hash, 'w');
121
+ return [hash, n, s, e, w, adjacent(n, 'e'), adjacent(n, 'w'), adjacent(s, 'e'), adjacent(s, 'w')];
122
+ }
123
+
124
+ exports.geohashEncode = geohashEncode;
125
+ exports.geohashNeighbors = geohashNeighbors;
@@ -18,6 +18,7 @@ require('../core/util/animation.js');
18
18
  require('../core/util/geo.js');
19
19
  var polygon = require('../core/util/polygon.js');
20
20
  require('../naver/NaverMintMapController.js');
21
+ require('../core/advanced/canvas/CanvasMarkerClaude.js');
21
22
  require('../core/advanced/MapLoadingComponents.js');
22
23
  require('../core/wrapper/MapControlWrapper.js');
23
24
 
@@ -0,0 +1,58 @@
1
+ /// <reference types="kakaomaps" />
2
+ import { MintMapController } from "../core/MintMapController";
3
+ import { ObjectPool } from '@mint-ui/tools';
4
+ import { MapType, MapVendorType } from "../types/CommonTypes";
5
+ import { Drawable, Marker, MarkerOptions, Polygon, PolygonOptions, Polyline, PolylineOptions } from "../types/MapDrawables";
6
+ import { Bounds, Position, Spacing } from '../types/MapTypes';
7
+ import { MintMapProps } from "../types/MintMapProps";
8
+ import { EventCallback, EventParamType, MapEvent, MapEventName, MapUIEvent } from "../types/MapEventTypes";
9
+ import { Property } from "csstype";
10
+ export declare class KakaoMintMapController extends MintMapController {
11
+ type: MapType;
12
+ map: kakao.maps.Map | null;
13
+ scriptUrl: string;
14
+ scriptModules: string[];
15
+ protected mapEvent: MapEvent;
16
+ protected mapUIEvent: MapUIEvent;
17
+ markerPool?: ObjectPool<kakao.maps.CustomOverlay>;
18
+ constructor(props: MintMapProps);
19
+ private initMarkerPool;
20
+ polylineEvents: string[];
21
+ createPolyline(polyline: Polyline): void;
22
+ updatePolyline(polyline: Polyline, options: PolylineOptions): void;
23
+ polygonEvents: string[];
24
+ createPolygon(polygon: Polygon): void;
25
+ updatePolygon(polygon: Polygon, options: PolygonOptions): void;
26
+ markerEvents: string[];
27
+ createMarker(marker: Marker): void;
28
+ updateMarker(marker: Marker, options: MarkerOptions): void;
29
+ private removeParentElementsMargin;
30
+ private markerMaxZIndex;
31
+ private getMaxZIndex;
32
+ setMarkerZIndex(marker: Marker, zIndex: number): void;
33
+ markerToTheTop(marker: Marker): void;
34
+ clearDrawable(drawable: Drawable): boolean;
35
+ private dragged;
36
+ isMapDragged(): boolean;
37
+ setMapDragged(value: boolean): void;
38
+ private checkLoaded;
39
+ loadMapApi(): Promise<boolean>;
40
+ initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
41
+ private getSafeZoomValue;
42
+ destroyMap(): void;
43
+ getCurrBounds(): Bounds;
44
+ panningTo(targetCenter: Position): void;
45
+ getZoomLevel(): number;
46
+ setZoomLevel(zoom: number): void;
47
+ getCenter(): Position;
48
+ setCenter(position: Position): void;
49
+ setMapCursor(cursor: Property.Cursor): void;
50
+ private positionToLatLng;
51
+ private latLngToPosition;
52
+ focusPositionsToFitViewport(positions: Position[], spacing?: number | Spacing): void;
53
+ private eventMap;
54
+ addEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void;
55
+ removeEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void;
56
+ removeAllEventListener(eventName?: MapEventName | undefined): void;
57
+ private clearEventListener;
58
+ }
@@ -19,6 +19,7 @@ require('../core/util/animation.js');
19
19
  require('../core/util/geo.js');
20
20
  var polygon = require('../core/util/polygon.js');
21
21
  require('../naver/NaverMintMapController.js');
22
+ require('../core/advanced/canvas/CanvasMarkerClaude.js');
22
23
  require('../core/advanced/MapLoadingComponents.js');
23
24
  require('../core/wrapper/MapControlWrapper.js');
24
25
 
@@ -18,6 +18,7 @@ require('react-dom');
18
18
  require('../core/util/animation.js');
19
19
  require('../core/util/geo.js');
20
20
  var polygon = require('../core/util/polygon.js');
21
+ require('../core/advanced/canvas/CanvasMarkerClaude.js');
21
22
  require('../core/advanced/MapLoadingComponents.js');
22
23
  require('../core/wrapper/MapControlWrapper.js');
23
24
 
@@ -0,0 +1,11 @@
1
+ /// <reference types="navermaps" />
2
+ /// <reference types="google.maps" />
3
+ /// <reference types="kakaomaps" />
4
+ /**
5
+ * 지원되는 맵 종류
6
+ */
7
+ export declare type MapType = 'naver' | 'google' | 'kakao';
8
+ /**
9
+ * 맵 객체의 native 타입
10
+ */
11
+ export declare type MapVendorType = naver.maps.Map | google.maps.Map | kakao.maps.Map;