@mint-ui/map 0.6.0-beta → 0.6.1-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 +66 -66
- 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 +18 -18
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +42 -42
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +8 -8
- 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 +51 -51
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +55 -55
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +7 -7
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +53 -53
- package/dist/components/mint-map/naver/NaverMintMapController.js +5 -5
- 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 +101 -101
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +98 -98
- package/dist/index.umd.js +98 -98
- package/package.json +77 -77
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
/// <reference types="navermaps" />
|
|
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, Offset, Position } from "../types/MapTypes";
|
|
7
|
-
import { MintMapProps } from "../types/MintMapProps";
|
|
8
|
-
import { EventCallback, EventParamType, MapEvent, MapEventName, MapUIEvent } from "../types/MapEventTypes";
|
|
9
|
-
export declare class NaverMintMapController extends MintMapController {
|
|
10
|
-
type: MapType;
|
|
11
|
-
map: naver.maps.Map | null;
|
|
12
|
-
scriptUrl: string;
|
|
13
|
-
scriptModules: string[];
|
|
14
|
-
protected mapEvent: MapEvent;
|
|
15
|
-
protected mapUIEvent: MapUIEvent;
|
|
16
|
-
markerPool?: ObjectPool<naver.maps.Marker>;
|
|
17
|
-
constructor(props: MintMapProps);
|
|
18
|
-
private initMarkerPool;
|
|
19
|
-
polylineEvents: string[];
|
|
20
|
-
createPolyline(polyline: Polyline): void;
|
|
21
|
-
updatePolyline(polyline: Polyline, options: PolylineOptions): void;
|
|
22
|
-
polygonEvents: string[];
|
|
23
|
-
createPolygon(polygon: Polygon): void;
|
|
24
|
-
updatePolygon(polygon: Polygon, options: PolygonOptions): void;
|
|
25
|
-
markerEvents: string[];
|
|
26
|
-
createMarker(marker: Marker): void;
|
|
27
|
-
updateMarker(marker: Marker, options: MarkerOptions): void;
|
|
28
|
-
private markerMaxZIndex;
|
|
29
|
-
private getMaxZIndex;
|
|
30
|
-
setMarkerZIndex(marker: Marker, zIndex: number): void;
|
|
31
|
-
markerToTheTop(marker: Marker): void;
|
|
32
|
-
clearDrawable(drawable: Drawable): boolean;
|
|
33
|
-
private dragged;
|
|
34
|
-
isMapDragged(): boolean;
|
|
35
|
-
setMapDragged(value: boolean): void;
|
|
36
|
-
private checkLoaded;
|
|
37
|
-
loadMapApi(): Promise<boolean>;
|
|
38
|
-
initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
|
|
39
|
-
private getSafeZoomValue;
|
|
40
|
-
destroyMap(): void;
|
|
41
|
-
getCurrBounds(): Bounds;
|
|
42
|
-
panningTo(targetCenter: Position): void;
|
|
43
|
-
getZoomLevel(): number;
|
|
44
|
-
setZoomLevel(zoom: number): void;
|
|
45
|
-
getCenter(): Position;
|
|
46
|
-
setCenter(position: Position): void;
|
|
47
|
-
naverPositionToOffset(position: Position): Offset;
|
|
48
|
-
private eventMap;
|
|
49
|
-
addEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void;
|
|
50
|
-
removeEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void;
|
|
51
|
-
removeAllEventListener(eventName?: MapEventName | undefined): void;
|
|
52
|
-
private clearEventListener;
|
|
53
|
-
}
|
|
1
|
+
/// <reference types="navermaps" />
|
|
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, Offset, Position } from "../types/MapTypes";
|
|
7
|
+
import { MintMapProps } from "../types/MintMapProps";
|
|
8
|
+
import { EventCallback, EventParamType, MapEvent, MapEventName, MapUIEvent } from "../types/MapEventTypes";
|
|
9
|
+
export declare class NaverMintMapController extends MintMapController {
|
|
10
|
+
type: MapType;
|
|
11
|
+
map: naver.maps.Map | null;
|
|
12
|
+
scriptUrl: string;
|
|
13
|
+
scriptModules: string[];
|
|
14
|
+
protected mapEvent: MapEvent;
|
|
15
|
+
protected mapUIEvent: MapUIEvent;
|
|
16
|
+
markerPool?: ObjectPool<naver.maps.Marker>;
|
|
17
|
+
constructor(props: MintMapProps);
|
|
18
|
+
private initMarkerPool;
|
|
19
|
+
polylineEvents: string[];
|
|
20
|
+
createPolyline(polyline: Polyline): void;
|
|
21
|
+
updatePolyline(polyline: Polyline, options: PolylineOptions): void;
|
|
22
|
+
polygonEvents: string[];
|
|
23
|
+
createPolygon(polygon: Polygon): void;
|
|
24
|
+
updatePolygon(polygon: Polygon, options: PolygonOptions): void;
|
|
25
|
+
markerEvents: string[];
|
|
26
|
+
createMarker(marker: Marker): void;
|
|
27
|
+
updateMarker(marker: Marker, options: MarkerOptions): void;
|
|
28
|
+
private markerMaxZIndex;
|
|
29
|
+
private getMaxZIndex;
|
|
30
|
+
setMarkerZIndex(marker: Marker, zIndex: number): void;
|
|
31
|
+
markerToTheTop(marker: Marker): void;
|
|
32
|
+
clearDrawable(drawable: Drawable): boolean;
|
|
33
|
+
private dragged;
|
|
34
|
+
isMapDragged(): boolean;
|
|
35
|
+
setMapDragged(value: boolean): void;
|
|
36
|
+
private checkLoaded;
|
|
37
|
+
loadMapApi(): Promise<boolean>;
|
|
38
|
+
initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
|
|
39
|
+
private getSafeZoomValue;
|
|
40
|
+
destroyMap(): void;
|
|
41
|
+
getCurrBounds(): Bounds;
|
|
42
|
+
panningTo(targetCenter: Position): void;
|
|
43
|
+
getZoomLevel(): number;
|
|
44
|
+
setZoomLevel(zoom: number): void;
|
|
45
|
+
getCenter(): Position;
|
|
46
|
+
setCenter(position: Position): void;
|
|
47
|
+
naverPositionToOffset(position: Position): Offset;
|
|
48
|
+
private eventMap;
|
|
49
|
+
addEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void;
|
|
50
|
+
removeEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void;
|
|
51
|
+
removeAllEventListener(eventName?: MapEventName | undefined): void;
|
|
52
|
+
private clearEventListener;
|
|
53
|
+
}
|
|
@@ -258,11 +258,11 @@ function (_super) {
|
|
|
258
258
|
var map = marker.native.getMap();
|
|
259
259
|
|
|
260
260
|
if (map) {
|
|
261
|
-
/** 중요!!!!
|
|
262
|
-
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
263
|
-
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
264
|
-
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
265
|
-
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
261
|
+
/** 중요!!!!
|
|
262
|
+
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
263
|
+
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
264
|
+
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
265
|
+
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
266
266
|
*/
|
|
267
267
|
//Position
|
|
268
268
|
if (options.position && options.position instanceof MapTypes.Position) {
|
|
@@ -1,11 +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;
|
|
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;
|
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
import { Offset, Position } from "./MapTypes";
|
|
2
|
-
export interface DrawableOptions {
|
|
3
|
-
/**
|
|
4
|
-
* 좌표값
|
|
5
|
-
*/
|
|
6
|
-
position: Position | Position[] | [number, number][];
|
|
7
|
-
/**
|
|
8
|
-
* 좌표값
|
|
9
|
-
*/
|
|
10
|
-
visible?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* 이벤트 목록
|
|
13
|
-
*/
|
|
14
|
-
event?: Map<keyof DocumentEventMap, (e: Event) => boolean | void>;
|
|
15
|
-
/**
|
|
16
|
-
* 디버그
|
|
17
|
-
*/
|
|
18
|
-
debug?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 디버그상의 label
|
|
21
|
-
*/
|
|
22
|
-
debugLabel?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare abstract class Drawable {
|
|
25
|
-
/**
|
|
26
|
-
* 지도의 native drawable object
|
|
27
|
-
*/
|
|
28
|
-
native?: any;
|
|
29
|
-
/**
|
|
30
|
-
* Drawable options
|
|
31
|
-
*/
|
|
32
|
-
abstract options: DrawableOptions;
|
|
33
|
-
}
|
|
34
|
-
export interface MarkerOptions extends DrawableOptions {
|
|
35
|
-
/**
|
|
36
|
-
* 마커의 좌표와 Element 사이의 offset 값
|
|
37
|
-
*/
|
|
38
|
-
anchor?: Offset;
|
|
39
|
-
/**
|
|
40
|
-
* zIndex 설정
|
|
41
|
-
*/
|
|
42
|
-
zIndex?: number;
|
|
43
|
-
}
|
|
44
|
-
export declare class Marker extends Drawable {
|
|
45
|
-
/**
|
|
46
|
-
* Marker 의 옵션
|
|
47
|
-
*/
|
|
48
|
-
options: MarkerOptions;
|
|
49
|
-
/**
|
|
50
|
-
* 커스텀 마커 Element
|
|
51
|
-
*/
|
|
52
|
-
element?: string | HTMLElement;
|
|
53
|
-
/**
|
|
54
|
-
* 지도에 표시할 마커정보
|
|
55
|
-
*/
|
|
56
|
-
constructor(options: MarkerOptions);
|
|
57
|
-
}
|
|
58
|
-
export interface PolylineOptions extends DrawableOptions {
|
|
59
|
-
/**
|
|
60
|
-
* 외곽선 의 색상
|
|
61
|
-
* @description css 의 color 에 준함
|
|
62
|
-
*/
|
|
63
|
-
lineColor?: string;
|
|
64
|
-
/**
|
|
65
|
-
* 외곽선 의 굵기
|
|
66
|
-
* @description 픽셀
|
|
67
|
-
*/
|
|
68
|
-
lineSize?: number;
|
|
69
|
-
/**
|
|
70
|
-
* 외곽선 의 투명도
|
|
71
|
-
* @description 0.0과 1.0 사이의 불투명도
|
|
72
|
-
*/
|
|
73
|
-
lineOpacity?: number;
|
|
74
|
-
/**
|
|
75
|
-
* 편집가능 여부
|
|
76
|
-
*/
|
|
77
|
-
editable?: boolean;
|
|
78
|
-
}
|
|
79
|
-
export declare class Polyline extends Drawable {
|
|
80
|
-
/**
|
|
81
|
-
* Polygon 의 옵션
|
|
82
|
-
*/
|
|
83
|
-
options: PolylineOptions;
|
|
84
|
-
/**
|
|
85
|
-
* 지도에 표시할 폴리곤정보
|
|
86
|
-
*/
|
|
87
|
-
constructor(options: PolylineOptions);
|
|
88
|
-
}
|
|
89
|
-
export interface PolygonOptions extends PolylineOptions {
|
|
90
|
-
/**
|
|
91
|
-
* 폴리곤 외곽선의 내부 다각형 position
|
|
92
|
-
*/
|
|
93
|
-
innerPositions?: Position[][];
|
|
94
|
-
/**
|
|
95
|
-
* 면의 배경색
|
|
96
|
-
* @description css 의 color 에 준함
|
|
97
|
-
*/
|
|
98
|
-
fillColor?: string;
|
|
99
|
-
/**
|
|
100
|
-
* 면의 투명도
|
|
101
|
-
* @description 0~1 의 값
|
|
102
|
-
*/
|
|
103
|
-
fillOpacity?: number;
|
|
104
|
-
}
|
|
105
|
-
export declare class Polygon extends Drawable {
|
|
106
|
-
/**
|
|
107
|
-
* Polygon 의 옵션
|
|
108
|
-
*/
|
|
109
|
-
options: PolygonOptions;
|
|
110
|
-
/**
|
|
111
|
-
* 지도에 표시할 폴리곤정보
|
|
112
|
-
*/
|
|
113
|
-
constructor(options: PolygonOptions);
|
|
114
|
-
/**
|
|
115
|
-
* 폴리곤의 중점을 구한다.
|
|
116
|
-
*/
|
|
117
|
-
getCenter(): Position;
|
|
118
|
-
}
|
|
1
|
+
import { Offset, Position } from "./MapTypes";
|
|
2
|
+
export interface DrawableOptions {
|
|
3
|
+
/**
|
|
4
|
+
* 좌표값
|
|
5
|
+
*/
|
|
6
|
+
position: Position | Position[] | [number, number][];
|
|
7
|
+
/**
|
|
8
|
+
* 좌표값
|
|
9
|
+
*/
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 이벤트 목록
|
|
13
|
+
*/
|
|
14
|
+
event?: Map<keyof DocumentEventMap, (e: Event) => boolean | void>;
|
|
15
|
+
/**
|
|
16
|
+
* 디버그
|
|
17
|
+
*/
|
|
18
|
+
debug?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 디버그상의 label
|
|
21
|
+
*/
|
|
22
|
+
debugLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare abstract class Drawable {
|
|
25
|
+
/**
|
|
26
|
+
* 지도의 native drawable object
|
|
27
|
+
*/
|
|
28
|
+
native?: any;
|
|
29
|
+
/**
|
|
30
|
+
* Drawable options
|
|
31
|
+
*/
|
|
32
|
+
abstract options: DrawableOptions;
|
|
33
|
+
}
|
|
34
|
+
export interface MarkerOptions extends DrawableOptions {
|
|
35
|
+
/**
|
|
36
|
+
* 마커의 좌표와 Element 사이의 offset 값
|
|
37
|
+
*/
|
|
38
|
+
anchor?: Offset;
|
|
39
|
+
/**
|
|
40
|
+
* zIndex 설정
|
|
41
|
+
*/
|
|
42
|
+
zIndex?: number;
|
|
43
|
+
}
|
|
44
|
+
export declare class Marker extends Drawable {
|
|
45
|
+
/**
|
|
46
|
+
* Marker 의 옵션
|
|
47
|
+
*/
|
|
48
|
+
options: MarkerOptions;
|
|
49
|
+
/**
|
|
50
|
+
* 커스텀 마커 Element
|
|
51
|
+
*/
|
|
52
|
+
element?: string | HTMLElement;
|
|
53
|
+
/**
|
|
54
|
+
* 지도에 표시할 마커정보
|
|
55
|
+
*/
|
|
56
|
+
constructor(options: MarkerOptions);
|
|
57
|
+
}
|
|
58
|
+
export interface PolylineOptions extends DrawableOptions {
|
|
59
|
+
/**
|
|
60
|
+
* 외곽선 의 색상
|
|
61
|
+
* @description css 의 color 에 준함
|
|
62
|
+
*/
|
|
63
|
+
lineColor?: string;
|
|
64
|
+
/**
|
|
65
|
+
* 외곽선 의 굵기
|
|
66
|
+
* @description 픽셀
|
|
67
|
+
*/
|
|
68
|
+
lineSize?: number;
|
|
69
|
+
/**
|
|
70
|
+
* 외곽선 의 투명도
|
|
71
|
+
* @description 0.0과 1.0 사이의 불투명도
|
|
72
|
+
*/
|
|
73
|
+
lineOpacity?: number;
|
|
74
|
+
/**
|
|
75
|
+
* 편집가능 여부
|
|
76
|
+
*/
|
|
77
|
+
editable?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export declare class Polyline extends Drawable {
|
|
80
|
+
/**
|
|
81
|
+
* Polygon 의 옵션
|
|
82
|
+
*/
|
|
83
|
+
options: PolylineOptions;
|
|
84
|
+
/**
|
|
85
|
+
* 지도에 표시할 폴리곤정보
|
|
86
|
+
*/
|
|
87
|
+
constructor(options: PolylineOptions);
|
|
88
|
+
}
|
|
89
|
+
export interface PolygonOptions extends PolylineOptions {
|
|
90
|
+
/**
|
|
91
|
+
* 폴리곤 외곽선의 내부 다각형 position
|
|
92
|
+
*/
|
|
93
|
+
innerPositions?: Position[][];
|
|
94
|
+
/**
|
|
95
|
+
* 면의 배경색
|
|
96
|
+
* @description css 의 color 에 준함
|
|
97
|
+
*/
|
|
98
|
+
fillColor?: string;
|
|
99
|
+
/**
|
|
100
|
+
* 면의 투명도
|
|
101
|
+
* @description 0~1 의 값
|
|
102
|
+
*/
|
|
103
|
+
fillOpacity?: number;
|
|
104
|
+
}
|
|
105
|
+
export declare class Polygon extends Drawable {
|
|
106
|
+
/**
|
|
107
|
+
* Polygon 의 옵션
|
|
108
|
+
*/
|
|
109
|
+
options: PolygonOptions;
|
|
110
|
+
/**
|
|
111
|
+
* 지도에 표시할 폴리곤정보
|
|
112
|
+
*/
|
|
113
|
+
constructor(options: PolygonOptions);
|
|
114
|
+
/**
|
|
115
|
+
* 폴리곤의 중점을 구한다.
|
|
116
|
+
*/
|
|
117
|
+
getCenter(): Position;
|
|
118
|
+
}
|
|
@@ -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
|
+
}
|