@mint-ui/map 0.5.12-beta → 0.6.0-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/dist/components/mint-map/core/MintMapController.d.ts +1 -0
- package/dist/components/mint-map/core/MintMapController.js +1 -1
- package/dist/components/mint-map/google/GoogleMintMapController.js +8 -1
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +8 -1
- package/dist/components/mint-map/naver/NaverMintMapController.js +8 -1
- package/dist/components/mint-map/types/MintMapProps.d.ts +5 -0
- package/dist/index.es.js +25 -4
- package/dist/index.umd.js +25 -4
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare abstract class MintMapController {
|
|
|
7
7
|
abstract type: MapType;
|
|
8
8
|
abstract map: MapVendorType | null;
|
|
9
9
|
abstract scriptUrl: string;
|
|
10
|
+
abstract scriptModules: string[];
|
|
10
11
|
abstract initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
|
|
11
12
|
abstract destroyMap(): void;
|
|
12
13
|
abstract loadMapApi(): Promise<boolean>;
|
|
@@ -124,7 +124,7 @@ function () {
|
|
|
124
124
|
var params = Object.entries(param).map(function (_a) {
|
|
125
125
|
var key = _a[0],
|
|
126
126
|
value = _a[1];
|
|
127
|
-
var temp =
|
|
127
|
+
var temp = Array.isArray(value) ? value.join(',') : value;
|
|
128
128
|
return "".concat(key, "=").concat(temp);
|
|
129
129
|
}).join('&');
|
|
130
130
|
return "".concat(baseUrl, "?").concat(params);
|
|
@@ -16,6 +16,8 @@ function (_super) {
|
|
|
16
16
|
tslib.__extends(GoogleMintMapController, _super);
|
|
17
17
|
|
|
18
18
|
function GoogleMintMapController(props) {
|
|
19
|
+
var _a;
|
|
20
|
+
|
|
19
21
|
var _this = _super.call(this, props) || this;
|
|
20
22
|
|
|
21
23
|
_this.type = 'google';
|
|
@@ -42,9 +44,14 @@ function (_super) {
|
|
|
42
44
|
|
|
43
45
|
};
|
|
44
46
|
|
|
45
|
-
_this.eventMap = new Map(); //
|
|
47
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
48
|
+
|
|
49
|
+
if (props.scriptModules) {
|
|
50
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
51
|
+
} //google 은 zoomstart 가 없으므로 zoom_changed 로 대체 (하지만 zooming 되는 내내 여러번 호출됨)
|
|
46
52
|
//나중에 naver 와 마찬가지로 zoomstart 1번 zoom_changed 1번 호출되도록 바꾸는것 고려중
|
|
47
53
|
|
|
54
|
+
|
|
48
55
|
_this.mapEvent.ZOOMSTART = 'zoom_changed';
|
|
49
56
|
Object.freeze(_this.mapEvent);
|
|
50
57
|
Object.freeze(_this.mapUIEvent);
|
|
@@ -17,6 +17,8 @@ function (_super) {
|
|
|
17
17
|
tslib.__extends(KakaoMintMapController, _super);
|
|
18
18
|
|
|
19
19
|
function KakaoMintMapController(props) {
|
|
20
|
+
var _a;
|
|
21
|
+
|
|
20
22
|
var _this = _super.call(this, props) || this;
|
|
21
23
|
|
|
22
24
|
_this.type = 'kakao';
|
|
@@ -30,7 +32,12 @@ function (_super) {
|
|
|
30
32
|
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
31
33
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
32
34
|
_this.dragged = false;
|
|
33
|
-
_this.eventMap = new Map(); //
|
|
35
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
36
|
+
|
|
37
|
+
if (props.scriptModules) {
|
|
38
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
39
|
+
} //kakao only 이벤트이름 재정의 zoom_start
|
|
40
|
+
|
|
34
41
|
|
|
35
42
|
_this.mapEvent.ZOOMSTART = 'zoom_start'; //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
36
43
|
|
|
@@ -17,6 +17,8 @@ function (_super) {
|
|
|
17
17
|
tslib.__extends(NaverMintMapController, _super);
|
|
18
18
|
|
|
19
19
|
function NaverMintMapController(props) {
|
|
20
|
+
var _a;
|
|
21
|
+
|
|
20
22
|
var _this = _super.call(this, props) || this;
|
|
21
23
|
|
|
22
24
|
_this.type = 'naver';
|
|
@@ -30,7 +32,12 @@ function (_super) {
|
|
|
30
32
|
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
31
33
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
32
34
|
_this.dragged = false;
|
|
33
|
-
_this.eventMap = new Map(); //
|
|
35
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
36
|
+
|
|
37
|
+
if (props.scriptModules) {
|
|
38
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
39
|
+
} //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
40
|
+
|
|
34
41
|
|
|
35
42
|
_this.mapUIEvent.CONTEXTMENU = 'rightclick';
|
|
36
43
|
Object.freeze(_this.mapEvent);
|
|
@@ -15,6 +15,11 @@ export interface MintMapProps extends MintMapEvents {
|
|
|
15
15
|
* @description 각 지도 타입에 맞는 키를 입력해야한다.
|
|
16
16
|
*/
|
|
17
17
|
mapKey: string;
|
|
18
|
+
/**
|
|
19
|
+
* Map Script 로드시에 지도 타입에 따라 로드할 서브 모듈 목록
|
|
20
|
+
* @description 각 지도 타입에 맞는 서브모듈을 지정해야한다.
|
|
21
|
+
*/
|
|
22
|
+
scriptModules?: string[];
|
|
18
23
|
/**
|
|
19
24
|
* Map 종류에 따른 추가 맵 ID
|
|
20
25
|
* @description 특정 지도에서는 맵ID 가 추가로 요구된다 (ex: Google Maps)
|
package/dist/index.es.js
CHANGED
|
@@ -1149,7 +1149,7 @@ function () {
|
|
|
1149
1149
|
var params = Object.entries(param).map(function (_a) {
|
|
1150
1150
|
var key = _a[0],
|
|
1151
1151
|
value = _a[1];
|
|
1152
|
-
var temp =
|
|
1152
|
+
var temp = Array.isArray(value) ? value.join(',') : value;
|
|
1153
1153
|
return "".concat(key, "=").concat(temp);
|
|
1154
1154
|
}).join('&');
|
|
1155
1155
|
return "".concat(baseUrl, "?").concat(params);
|
|
@@ -1457,6 +1457,8 @@ function (_super) {
|
|
|
1457
1457
|
__extends(NaverMintMapController, _super);
|
|
1458
1458
|
|
|
1459
1459
|
function NaverMintMapController(props) {
|
|
1460
|
+
var _a;
|
|
1461
|
+
|
|
1460
1462
|
var _this = _super.call(this, props) || this;
|
|
1461
1463
|
|
|
1462
1464
|
_this.type = 'naver';
|
|
@@ -1470,7 +1472,12 @@ function (_super) {
|
|
|
1470
1472
|
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
1471
1473
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
1472
1474
|
_this.dragged = false;
|
|
1473
|
-
_this.eventMap = new Map(); //
|
|
1475
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
1476
|
+
|
|
1477
|
+
if (props.scriptModules) {
|
|
1478
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
1479
|
+
} //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
1480
|
+
|
|
1474
1481
|
|
|
1475
1482
|
_this.mapUIEvent.CONTEXTMENU = 'rightclick';
|
|
1476
1483
|
Object.freeze(_this.mapEvent);
|
|
@@ -2181,6 +2188,8 @@ function (_super) {
|
|
|
2181
2188
|
__extends(GoogleMintMapController, _super);
|
|
2182
2189
|
|
|
2183
2190
|
function GoogleMintMapController(props) {
|
|
2191
|
+
var _a;
|
|
2192
|
+
|
|
2184
2193
|
var _this = _super.call(this, props) || this;
|
|
2185
2194
|
|
|
2186
2195
|
_this.type = 'google';
|
|
@@ -2207,9 +2216,14 @@ function (_super) {
|
|
|
2207
2216
|
|
|
2208
2217
|
};
|
|
2209
2218
|
|
|
2210
|
-
_this.eventMap = new Map(); //
|
|
2219
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
2220
|
+
|
|
2221
|
+
if (props.scriptModules) {
|
|
2222
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
2223
|
+
} //google 은 zoomstart 가 없으므로 zoom_changed 로 대체 (하지만 zooming 되는 내내 여러번 호출됨)
|
|
2211
2224
|
//나중에 naver 와 마찬가지로 zoomstart 1번 zoom_changed 1번 호출되도록 바꾸는것 고려중
|
|
2212
2225
|
|
|
2226
|
+
|
|
2213
2227
|
_this.mapEvent.ZOOMSTART = 'zoom_changed';
|
|
2214
2228
|
Object.freeze(_this.mapEvent);
|
|
2215
2229
|
Object.freeze(_this.mapUIEvent);
|
|
@@ -2865,6 +2879,8 @@ function (_super) {
|
|
|
2865
2879
|
__extends(KakaoMintMapController, _super);
|
|
2866
2880
|
|
|
2867
2881
|
function KakaoMintMapController(props) {
|
|
2882
|
+
var _a;
|
|
2883
|
+
|
|
2868
2884
|
var _this = _super.call(this, props) || this;
|
|
2869
2885
|
|
|
2870
2886
|
_this.type = 'kakao';
|
|
@@ -2878,7 +2894,12 @@ function (_super) {
|
|
|
2878
2894
|
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
2879
2895
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
2880
2896
|
_this.dragged = false;
|
|
2881
|
-
_this.eventMap = new Map(); //
|
|
2897
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
2898
|
+
|
|
2899
|
+
if (props.scriptModules) {
|
|
2900
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
2901
|
+
} //kakao only 이벤트이름 재정의 zoom_start
|
|
2902
|
+
|
|
2882
2903
|
|
|
2883
2904
|
_this.mapEvent.ZOOMSTART = 'zoom_start'; //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
2884
2905
|
|
package/dist/index.umd.js
CHANGED
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
var params = Object.entries(param).map(function (_a) {
|
|
1154
1154
|
var key = _a[0],
|
|
1155
1155
|
value = _a[1];
|
|
1156
|
-
var temp =
|
|
1156
|
+
var temp = Array.isArray(value) ? value.join(',') : value;
|
|
1157
1157
|
return "".concat(key, "=").concat(temp);
|
|
1158
1158
|
}).join('&');
|
|
1159
1159
|
return "".concat(baseUrl, "?").concat(params);
|
|
@@ -1461,6 +1461,8 @@
|
|
|
1461
1461
|
tslib.__extends(NaverMintMapController, _super);
|
|
1462
1462
|
|
|
1463
1463
|
function NaverMintMapController(props) {
|
|
1464
|
+
var _a;
|
|
1465
|
+
|
|
1464
1466
|
var _this = _super.call(this, props) || this;
|
|
1465
1467
|
|
|
1466
1468
|
_this.type = 'naver';
|
|
@@ -1474,7 +1476,12 @@
|
|
|
1474
1476
|
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
1475
1477
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
1476
1478
|
_this.dragged = false;
|
|
1477
|
-
_this.eventMap = new Map(); //
|
|
1479
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
1480
|
+
|
|
1481
|
+
if (props.scriptModules) {
|
|
1482
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
1483
|
+
} //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
1484
|
+
|
|
1478
1485
|
|
|
1479
1486
|
_this.mapUIEvent.CONTEXTMENU = 'rightclick';
|
|
1480
1487
|
Object.freeze(_this.mapEvent);
|
|
@@ -2185,6 +2192,8 @@
|
|
|
2185
2192
|
tslib.__extends(GoogleMintMapController, _super);
|
|
2186
2193
|
|
|
2187
2194
|
function GoogleMintMapController(props) {
|
|
2195
|
+
var _a;
|
|
2196
|
+
|
|
2188
2197
|
var _this = _super.call(this, props) || this;
|
|
2189
2198
|
|
|
2190
2199
|
_this.type = 'google';
|
|
@@ -2211,9 +2220,14 @@
|
|
|
2211
2220
|
|
|
2212
2221
|
};
|
|
2213
2222
|
|
|
2214
|
-
_this.eventMap = new Map(); //
|
|
2223
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
2224
|
+
|
|
2225
|
+
if (props.scriptModules) {
|
|
2226
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
2227
|
+
} //google 은 zoomstart 가 없으므로 zoom_changed 로 대체 (하지만 zooming 되는 내내 여러번 호출됨)
|
|
2215
2228
|
//나중에 naver 와 마찬가지로 zoomstart 1번 zoom_changed 1번 호출되도록 바꾸는것 고려중
|
|
2216
2229
|
|
|
2230
|
+
|
|
2217
2231
|
_this.mapEvent.ZOOMSTART = 'zoom_changed';
|
|
2218
2232
|
Object.freeze(_this.mapEvent);
|
|
2219
2233
|
Object.freeze(_this.mapUIEvent);
|
|
@@ -2869,6 +2883,8 @@
|
|
|
2869
2883
|
tslib.__extends(KakaoMintMapController, _super);
|
|
2870
2884
|
|
|
2871
2885
|
function KakaoMintMapController(props) {
|
|
2886
|
+
var _a;
|
|
2887
|
+
|
|
2872
2888
|
var _this = _super.call(this, props) || this;
|
|
2873
2889
|
|
|
2874
2890
|
_this.type = 'kakao';
|
|
@@ -2882,7 +2898,12 @@
|
|
|
2882
2898
|
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
2883
2899
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
2884
2900
|
_this.dragged = false;
|
|
2885
|
-
_this.eventMap = new Map(); //
|
|
2901
|
+
_this.eventMap = new Map(); //scriptModules 병합
|
|
2902
|
+
|
|
2903
|
+
if (props.scriptModules) {
|
|
2904
|
+
(_a = _this.scriptModules).push.apply(_a, props.scriptModules);
|
|
2905
|
+
} //kakao only 이벤트이름 재정의 zoom_start
|
|
2906
|
+
|
|
2886
2907
|
|
|
2887
2908
|
_this.mapEvent.ZOOMSTART = 'zoom_start'; //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
2888
2909
|
|