@mint-ui/map 0.7.3-beta → 0.7.4-beta
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/.eslintrc.js +109 -109
- package/LICENSE +21 -21
- package/README.md +73 -73
- package/dist/components/mint-map/MintMap.d.ts +10 -10
- package/dist/components/mint-map/MintMap.js +6 -6
- package/dist/components/mint-map/core/MintMapCanvasRenderer.d.ts +4 -4
- package/dist/components/mint-map/core/MintMapController.d.ts +69 -67
- package/dist/components/mint-map/core/MintMapController.js +9 -9
- package/dist/components/mint-map/core/MintMapCore.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/MapBuildingProjection.d.ts +15 -15
- package/dist/components/mint-map/core/advanced/MapLoadingComponents.d.ts +17 -17
- package/dist/components/mint-map/core/advanced/index.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.d.ts +22 -22
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +28 -28
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/base/SVGCircle.d.ts +8 -8
- package/dist/components/mint-map/core/advanced/shapes/base/SVGPolygon.d.ts +12 -12
- package/dist/components/mint-map/core/advanced/shapes/base/SVGRect.d.ts +10 -10
- package/dist/components/mint-map/core/advanced/shapes/base/index.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/shapes/index.d.ts +3 -3
- package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
- package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
- package/dist/components/mint-map/core/index.d.ts +8 -8
- package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
- package/dist/components/mint-map/core/provider/index.d.ts +1 -1
- package/dist/components/mint-map/core/util/animation.d.ts +16 -16
- package/dist/components/mint-map/core/util/cluster.d.ts +18 -18
- package/dist/components/mint-map/core/util/geo.d.ts +38 -38
- package/dist/components/mint-map/core/util/index.d.ts +7 -7
- package/dist/components/mint-map/core/util/log.d.ts +1 -1
- package/dist/components/mint-map/core/util/polygon.d.ts +42 -42
- package/dist/components/mint-map/core/util/status.d.ts +9 -9
- package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.d.ts +27 -27
- package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.d.ts +11 -11
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +19 -19
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +51 -51
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +12 -12
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +12 -12
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/index.d.ts +6 -6
- package/dist/components/mint-map/google/GoogleMintMapController.d.ts +53 -51
- package/dist/components/mint-map/google/GoogleMintMapController.js +17 -6
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +57 -55
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +22 -13
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +55 -53
- package/dist/components/mint-map/naver/NaverMintMapController.js +20 -11
- package/dist/components/mint-map/types/CommonTypes.d.ts +11 -11
- package/dist/components/mint-map/types/MapDrawables.d.ts +118 -118
- package/dist/components/mint-map/types/MapDrawables.js +8 -8
- package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -44
- package/dist/components/mint-map/types/MapTypes.d.ts +60 -60
- package/dist/components/mint-map/types/MapTypes.js +13 -13
- package/dist/components/mint-map/types/MintMapEvents.d.ts +25 -25
- package/dist/components/mint-map/types/MintMapProps.d.ts +106 -101
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +143 -114
- package/dist/index.umd.js +143 -114
- package/package.json +77 -77
|
@@ -18,8 +18,8 @@ var Marker =
|
|
|
18
18
|
/** @class */
|
|
19
19
|
function (_super) {
|
|
20
20
|
tslib.__extends(Marker, _super);
|
|
21
|
-
/**
|
|
22
|
-
* 지도에 표시할 마커정보
|
|
21
|
+
/**
|
|
22
|
+
* 지도에 표시할 마커정보
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
|
|
@@ -37,8 +37,8 @@ var Polyline =
|
|
|
37
37
|
/** @class */
|
|
38
38
|
function (_super) {
|
|
39
39
|
tslib.__extends(Polyline, _super);
|
|
40
|
-
/**
|
|
41
|
-
* 지도에 표시할 폴리곤정보
|
|
40
|
+
/**
|
|
41
|
+
* 지도에 표시할 폴리곤정보
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
44
|
|
|
@@ -56,8 +56,8 @@ var Polygon =
|
|
|
56
56
|
/** @class */
|
|
57
57
|
function (_super) {
|
|
58
58
|
tslib.__extends(Polygon, _super);
|
|
59
|
-
/**
|
|
60
|
-
* 지도에 표시할 폴리곤정보
|
|
59
|
+
/**
|
|
60
|
+
* 지도에 표시할 폴리곤정보
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
|
|
@@ -67,8 +67,8 @@ function (_super) {
|
|
|
67
67
|
_this.options = options;
|
|
68
68
|
return _this;
|
|
69
69
|
}
|
|
70
|
-
/**
|
|
71
|
-
* 폴리곤의 중점을 구한다.
|
|
70
|
+
/**
|
|
71
|
+
* 폴리곤의 중점을 구한다.
|
|
72
72
|
*/
|
|
73
73
|
|
|
74
74
|
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { MapType } from "./CommonTypes";
|
|
2
|
-
import { Bounds, Offset, Position } from "./MapTypes";
|
|
3
|
-
export declare class MapEvent {
|
|
4
|
-
BOUNDS_CHANGED: string;
|
|
5
|
-
CENTER_CHANGED: string;
|
|
6
|
-
IDLE: string;
|
|
7
|
-
ZOOM_CHANGED: string;
|
|
8
|
-
ZOOMSTART: string;
|
|
9
|
-
get(eventName: MapEventName): string | undefined;
|
|
10
|
-
}
|
|
11
|
-
export declare class MapUIEvent {
|
|
12
|
-
CLICK: string;
|
|
13
|
-
DBLCLICK: string;
|
|
14
|
-
MOUSEDOWN: string;
|
|
15
|
-
MOUSEUP: string;
|
|
16
|
-
MOUSEOUT: string;
|
|
17
|
-
MOUSEMOVE: string;
|
|
18
|
-
MOUSEOVER: string;
|
|
19
|
-
DRAG: string;
|
|
20
|
-
DRAGSTART: string;
|
|
21
|
-
DRAGEND: string;
|
|
22
|
-
RIGHTCLICK: string;
|
|
23
|
-
CONTEXTMENU: string;
|
|
24
|
-
get(eventName: MapEventName): string | undefined;
|
|
25
|
-
}
|
|
26
|
-
export declare type MapEventName = keyof MapEvent | keyof MapUIEvent;
|
|
27
|
-
export declare type MapEventParam = {
|
|
28
|
-
center: Position;
|
|
29
|
-
bounds: Bounds;
|
|
30
|
-
zoomLevel: number;
|
|
31
|
-
};
|
|
32
|
-
export declare type MapUIEventParam = {
|
|
33
|
-
offset: Offset;
|
|
34
|
-
position: Position;
|
|
35
|
-
pointerEvent?: PointerEvent;
|
|
36
|
-
};
|
|
37
|
-
export declare type EventParamType = MapEventParam & MapUIEventParam;
|
|
38
|
-
export interface EventParam<T> {
|
|
39
|
-
mapType: MapType;
|
|
40
|
-
name: MapEventName;
|
|
41
|
-
vendorEventName: string;
|
|
42
|
-
param: T;
|
|
43
|
-
}
|
|
44
|
-
export declare type EventCallback<T> = (e: EventParam<T>) => void;
|
|
1
|
+
import { MapType } from "./CommonTypes";
|
|
2
|
+
import { Bounds, Offset, Position } from "./MapTypes";
|
|
3
|
+
export declare class MapEvent {
|
|
4
|
+
BOUNDS_CHANGED: string;
|
|
5
|
+
CENTER_CHANGED: string;
|
|
6
|
+
IDLE: string;
|
|
7
|
+
ZOOM_CHANGED: string;
|
|
8
|
+
ZOOMSTART: string;
|
|
9
|
+
get(eventName: MapEventName): string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare class MapUIEvent {
|
|
12
|
+
CLICK: string;
|
|
13
|
+
DBLCLICK: string;
|
|
14
|
+
MOUSEDOWN: string;
|
|
15
|
+
MOUSEUP: string;
|
|
16
|
+
MOUSEOUT: string;
|
|
17
|
+
MOUSEMOVE: string;
|
|
18
|
+
MOUSEOVER: string;
|
|
19
|
+
DRAG: string;
|
|
20
|
+
DRAGSTART: string;
|
|
21
|
+
DRAGEND: string;
|
|
22
|
+
RIGHTCLICK: string;
|
|
23
|
+
CONTEXTMENU: string;
|
|
24
|
+
get(eventName: MapEventName): string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export declare type MapEventName = keyof MapEvent | keyof MapUIEvent;
|
|
27
|
+
export declare type MapEventParam = {
|
|
28
|
+
center: Position;
|
|
29
|
+
bounds: Bounds;
|
|
30
|
+
zoomLevel: number;
|
|
31
|
+
};
|
|
32
|
+
export declare type MapUIEventParam = {
|
|
33
|
+
offset: Offset;
|
|
34
|
+
position: Position;
|
|
35
|
+
pointerEvent?: PointerEvent;
|
|
36
|
+
};
|
|
37
|
+
export declare type EventParamType = MapEventParam & MapUIEventParam;
|
|
38
|
+
export interface EventParam<T> {
|
|
39
|
+
mapType: MapType;
|
|
40
|
+
name: MapEventName;
|
|
41
|
+
vendorEventName: string;
|
|
42
|
+
param: T;
|
|
43
|
+
}
|
|
44
|
+
export declare type EventCallback<T> = (e: EventParam<T>) => void;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 좌표값
|
|
3
|
-
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
4
|
-
*/
|
|
5
|
-
export declare class Position {
|
|
6
|
-
/**
|
|
7
|
-
* 위도
|
|
8
|
-
* @description 위도(latitude)
|
|
9
|
-
*/
|
|
10
|
-
lat: number;
|
|
11
|
-
/**
|
|
12
|
-
* 경도
|
|
13
|
-
* @description 경도(longitude)
|
|
14
|
-
*/
|
|
15
|
-
lng: number;
|
|
16
|
-
/**
|
|
17
|
-
* offset 좌표
|
|
18
|
-
* @description DOM 상에서의 offset 정보
|
|
19
|
-
*/
|
|
20
|
-
offset?: Offset;
|
|
21
|
-
constructor(lat: number, lng: number);
|
|
22
|
-
static equals(pos1: Position, pos2: Position): boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare class Bounds {
|
|
25
|
-
nw: Position;
|
|
26
|
-
se: Position;
|
|
27
|
-
ne: Position;
|
|
28
|
-
sw: Position;
|
|
29
|
-
constructor(nw?: Position, se?: Position, ne?: Position, sw?: Position);
|
|
30
|
-
static fromNWSE(nw: Position, se: Position): Bounds;
|
|
31
|
-
static fromNESW(ne: Position, sw: Position): Bounds;
|
|
32
|
-
private covertNWSEtoNESW;
|
|
33
|
-
private covertNESWtoNWSE;
|
|
34
|
-
getCenter(): Position;
|
|
35
|
-
includesPosition(pos: Position): boolean;
|
|
36
|
-
getIncludedPositions(positions: Position[]): Position[];
|
|
37
|
-
includes(positions: Position | Position[]): boolean;
|
|
38
|
-
includesOnlyOnePoint(positions: Position[]): boolean;
|
|
39
|
-
intersects(positions: Position[]): boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
43
|
-
*/
|
|
44
|
-
export declare class Offset {
|
|
45
|
-
/**
|
|
46
|
-
* x 좌표
|
|
47
|
-
* @description DOM 상에서의 offsetX
|
|
48
|
-
*/
|
|
49
|
-
x: number;
|
|
50
|
-
/**
|
|
51
|
-
* y 좌표
|
|
52
|
-
* @description DOM 상에서의 offsetY
|
|
53
|
-
*/
|
|
54
|
-
y: number;
|
|
55
|
-
/**
|
|
56
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
57
|
-
*/
|
|
58
|
-
constructor(x: number, y: number);
|
|
59
|
-
equals(other?: Offset): boolean | undefined;
|
|
60
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 좌표값
|
|
3
|
+
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
4
|
+
*/
|
|
5
|
+
export declare class Position {
|
|
6
|
+
/**
|
|
7
|
+
* 위도
|
|
8
|
+
* @description 위도(latitude)
|
|
9
|
+
*/
|
|
10
|
+
lat: number;
|
|
11
|
+
/**
|
|
12
|
+
* 경도
|
|
13
|
+
* @description 경도(longitude)
|
|
14
|
+
*/
|
|
15
|
+
lng: number;
|
|
16
|
+
/**
|
|
17
|
+
* offset 좌표
|
|
18
|
+
* @description DOM 상에서의 offset 정보
|
|
19
|
+
*/
|
|
20
|
+
offset?: Offset;
|
|
21
|
+
constructor(lat: number, lng: number);
|
|
22
|
+
static equals(pos1: Position, pos2: Position): boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class Bounds {
|
|
25
|
+
nw: Position;
|
|
26
|
+
se: Position;
|
|
27
|
+
ne: Position;
|
|
28
|
+
sw: Position;
|
|
29
|
+
constructor(nw?: Position, se?: Position, ne?: Position, sw?: Position);
|
|
30
|
+
static fromNWSE(nw: Position, se: Position): Bounds;
|
|
31
|
+
static fromNESW(ne: Position, sw: Position): Bounds;
|
|
32
|
+
private covertNWSEtoNESW;
|
|
33
|
+
private covertNESWtoNWSE;
|
|
34
|
+
getCenter(): Position;
|
|
35
|
+
includesPosition(pos: Position): boolean;
|
|
36
|
+
getIncludedPositions(positions: Position[]): Position[];
|
|
37
|
+
includes(positions: Position | Position[]): boolean;
|
|
38
|
+
includesOnlyOnePoint(positions: Position[]): boolean;
|
|
39
|
+
intersects(positions: Position[]): boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
43
|
+
*/
|
|
44
|
+
export declare class Offset {
|
|
45
|
+
/**
|
|
46
|
+
* x 좌표
|
|
47
|
+
* @description DOM 상에서의 offsetX
|
|
48
|
+
*/
|
|
49
|
+
x: number;
|
|
50
|
+
/**
|
|
51
|
+
* y 좌표
|
|
52
|
+
* @description DOM 상에서의 offsetY
|
|
53
|
+
*/
|
|
54
|
+
y: number;
|
|
55
|
+
/**
|
|
56
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
57
|
+
*/
|
|
58
|
+
constructor(x: number, y: number);
|
|
59
|
+
equals(other?: Offset): boolean | undefined;
|
|
60
|
+
}
|
|
@@ -4,23 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var polygon = require('../core/util/polygon.js');
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* 좌표값
|
|
9
|
-
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
7
|
+
/**
|
|
8
|
+
* 좌표값
|
|
9
|
+
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
var Position =
|
|
13
13
|
/** @class */
|
|
14
14
|
function () {
|
|
15
15
|
function Position(lat, lng) {
|
|
16
|
-
/**
|
|
17
|
-
* 위도
|
|
18
|
-
* @description 위도(latitude)
|
|
16
|
+
/**
|
|
17
|
+
* 위도
|
|
18
|
+
* @description 위도(latitude)
|
|
19
19
|
*/
|
|
20
20
|
this.lat = 0;
|
|
21
|
-
/**
|
|
22
|
-
* 경도
|
|
23
|
-
* @description 경도(longitude)
|
|
21
|
+
/**
|
|
22
|
+
* 경도
|
|
23
|
+
* @description 경도(longitude)
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
this.lng = 0;
|
|
@@ -128,15 +128,15 @@ function () {
|
|
|
128
128
|
|
|
129
129
|
return Bounds;
|
|
130
130
|
}();
|
|
131
|
-
/**
|
|
132
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
131
|
+
/**
|
|
132
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
133
133
|
*/
|
|
134
134
|
|
|
135
135
|
var Offset =
|
|
136
136
|
/** @class */
|
|
137
137
|
function () {
|
|
138
|
-
/**
|
|
139
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
138
|
+
/**
|
|
139
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
140
140
|
*/
|
|
141
141
|
function Offset(x, y) {
|
|
142
142
|
this.x = x;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { MapVendorType } from "./CommonTypes";
|
|
2
|
-
import { Bounds, Position } from "./MapTypes";
|
|
3
|
-
import { MintMapController } from "../core/MintMapController";
|
|
4
|
-
export interface MintMapEvents {
|
|
5
|
-
/**
|
|
6
|
-
* 지도의 보여지는 영역이 변경되었을때 호출되는 콜백
|
|
7
|
-
*/
|
|
8
|
-
onBoundsChanged?: (bounds: Bounds) => void;
|
|
9
|
-
/**
|
|
10
|
-
* 지도의 줌이 변경되었을때 호출되는 콜백
|
|
11
|
-
*/
|
|
12
|
-
onZoomChanged?: (level: number) => void;
|
|
13
|
-
/**
|
|
14
|
-
* 지도 준비완료시 호출되는 콜백
|
|
15
|
-
*/
|
|
16
|
-
onLoad?: (map: MapVendorType, controller: MintMapController) => void;
|
|
17
|
-
/**
|
|
18
|
-
* 지도 클릭시 호출되는 콜백
|
|
19
|
-
*/
|
|
20
|
-
onClick?: (positon: Position) => void;
|
|
21
|
-
/**
|
|
22
|
-
* 지도 위에서 마우스 이동시 호출되는 콜백
|
|
23
|
-
*/
|
|
24
|
-
onMouseMove?: (positon: Position) => void;
|
|
25
|
-
}
|
|
1
|
+
import { MapVendorType } from "./CommonTypes";
|
|
2
|
+
import { Bounds, Position } from "./MapTypes";
|
|
3
|
+
import { MintMapController } from "../core/MintMapController";
|
|
4
|
+
export interface MintMapEvents {
|
|
5
|
+
/**
|
|
6
|
+
* 지도의 보여지는 영역이 변경되었을때 호출되는 콜백
|
|
7
|
+
*/
|
|
8
|
+
onBoundsChanged?: (bounds: Bounds) => void;
|
|
9
|
+
/**
|
|
10
|
+
* 지도의 줌이 변경되었을때 호출되는 콜백
|
|
11
|
+
*/
|
|
12
|
+
onZoomChanged?: (level: number) => void;
|
|
13
|
+
/**
|
|
14
|
+
* 지도 준비완료시 호출되는 콜백
|
|
15
|
+
*/
|
|
16
|
+
onLoad?: (map: MapVendorType, controller: MintMapController) => void;
|
|
17
|
+
/**
|
|
18
|
+
* 지도 클릭시 호출되는 콜백
|
|
19
|
+
*/
|
|
20
|
+
onClick?: (positon: Position) => void;
|
|
21
|
+
/**
|
|
22
|
+
* 지도 위에서 마우스 이동시 호출되는 콜백
|
|
23
|
+
*/
|
|
24
|
+
onMouseMove?: (positon: Position) => void;
|
|
25
|
+
}
|
|
@@ -1,101 +1,106 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MapType } from "./CommonTypes";
|
|
3
|
-
import { Position } from "./MapTypes";
|
|
4
|
-
import { MintMapEvents } from "./MintMapEvents";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MapType } from "./CommonTypes";
|
|
3
|
+
import { Position } from "./MapTypes";
|
|
4
|
+
import { MintMapEvents } from "./MintMapEvents";
|
|
5
|
+
import { Property } from "csstype";
|
|
6
|
+
/**
|
|
7
|
+
* Mint Map Props
|
|
8
|
+
*/
|
|
9
|
+
export interface MintMapProps extends MintMapEvents {
|
|
10
|
+
/**
|
|
11
|
+
* Mint Map 에서 지원하는 지도 타입
|
|
12
|
+
*/
|
|
13
|
+
mapType: MapType | null;
|
|
14
|
+
/**
|
|
15
|
+
* Map 종류에 따른 인증키
|
|
16
|
+
* @description 각 지도 타입에 맞는 키를 입력해야한다.
|
|
17
|
+
*/
|
|
18
|
+
mapKey: string;
|
|
19
|
+
/**
|
|
20
|
+
* Map Script 로드시에 지도 타입에 따라 로드할 서브 모듈 목록
|
|
21
|
+
* @description 각 지도 타입에 맞는 서브모듈을 지정해야한다.
|
|
22
|
+
*/
|
|
23
|
+
scriptModules?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Map 종류에 따른 추가 맵 ID
|
|
26
|
+
* @description 특정 지도에서는 맵ID 가 추가로 요구된다 (ex: Google Maps)
|
|
27
|
+
*/
|
|
28
|
+
mapId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 지도의 기본 설정 정보
|
|
31
|
+
*/
|
|
32
|
+
base?: BaseProps;
|
|
33
|
+
/**
|
|
34
|
+
* 지도의 보기 설정
|
|
35
|
+
*/
|
|
36
|
+
visible?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 지도 중심 좌표
|
|
39
|
+
*/
|
|
40
|
+
center?: Position;
|
|
41
|
+
/**
|
|
42
|
+
* center 값을 통해 지도의 중심 으로 이동할때 panning 효과 적용 여부
|
|
43
|
+
*/
|
|
44
|
+
centerMoveWithPanning?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 지도 줌레벨
|
|
47
|
+
*/
|
|
48
|
+
zoomLevel?: number;
|
|
49
|
+
/**
|
|
50
|
+
* 마우스의 드래그로 지도 위치 움직임 가능 여부
|
|
51
|
+
*/
|
|
52
|
+
draggable?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 키보드 방향키로 지도 위치 움직임 가능 여부
|
|
55
|
+
*/
|
|
56
|
+
keyboardShortcuts?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 마커 cache 사용 여부
|
|
59
|
+
*/
|
|
60
|
+
markerCache?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 마커 cache 사용시 초기 pool 갯수
|
|
63
|
+
*/
|
|
64
|
+
markerCachePoolSize?: number;
|
|
65
|
+
/**
|
|
66
|
+
* 마커 cache 사용시 초기 pool 갯수
|
|
67
|
+
*/
|
|
68
|
+
boundsChangeThrottlingTime?: number;
|
|
69
|
+
/**
|
|
70
|
+
* 로딩 완료 후 장면전환 효과 여부
|
|
71
|
+
*/
|
|
72
|
+
dissolveEffectWhenLoaded?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* 맵 로딩화면
|
|
75
|
+
*/
|
|
76
|
+
mapLoadingComponent?: () => JSX.Element;
|
|
77
|
+
/**
|
|
78
|
+
* 디버그
|
|
79
|
+
*/
|
|
80
|
+
debug?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 지도의 기본 설정
|
|
84
|
+
*/
|
|
85
|
+
export interface BaseProps {
|
|
86
|
+
/**
|
|
87
|
+
* 지도 시작시의 중심 좌표
|
|
88
|
+
*/
|
|
89
|
+
center?: Position;
|
|
90
|
+
/**
|
|
91
|
+
* 지도 시작시의 줌레벨
|
|
92
|
+
*/
|
|
93
|
+
zoomLevel?: number;
|
|
94
|
+
/**
|
|
95
|
+
* 지도의 최대 줌 레벨
|
|
96
|
+
*/
|
|
97
|
+
maxZoomLevel?: number;
|
|
98
|
+
/**
|
|
99
|
+
* 지도의 최소 줌 레벨
|
|
100
|
+
*/
|
|
101
|
+
minZoomLevel?: number;
|
|
102
|
+
/**
|
|
103
|
+
* 지도의 기본 커서
|
|
104
|
+
*/
|
|
105
|
+
mapCursor?: Property.Cursor;
|
|
106
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './CommonTypes';
|
|
2
|
-
export * from './MapDrawables';
|
|
3
|
-
export * from './MapTypes';
|
|
4
|
-
export * from './MintMapEvents';
|
|
5
|
-
export * from './MintMapProps';
|
|
6
|
-
export * from './MapEventTypes';
|
|
1
|
+
export * from './CommonTypes';
|
|
2
|
+
export * from './MapDrawables';
|
|
3
|
+
export * from './MapTypes';
|
|
4
|
+
export * from './MintMapEvents';
|
|
5
|
+
export * from './MintMapProps';
|
|
6
|
+
export * from './MapEventTypes';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 인덱스 모듈
|
|
3
|
-
*
|
|
4
|
-
* @author RWB
|
|
5
|
-
* @since 2022.05.19 Thu 01:37:54
|
|
6
|
-
*/
|
|
7
|
-
export * from './components/mint-map';
|
|
1
|
+
/**
|
|
2
|
+
* 인덱스 모듈
|
|
3
|
+
*
|
|
4
|
+
* @author RWB
|
|
5
|
+
* @since 2022.05.19 Thu 01:37:54
|
|
6
|
+
*/
|
|
7
|
+
export * from './components/mint-map';
|