@mint-ui/map 0.8.0-beta → 0.9.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/wrapper/MapControlWrapper.d.ts +2 -1
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +4 -1
- package/dist/components/mint-map/google/GoogleMintMapController.js +2 -2
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +2 -2
- package/dist/components/mint-map/naver/NaverMintMapController.js +2 -2
- package/dist/components/mint-map/types/MintMapProps.d.ts +5 -0
- package/dist/index.es.js +10 -7
- package/dist/index.umd.js +10 -7
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ declare type AlignVertical = 'top' | 'bottom' | 'center';
|
|
|
4
4
|
export interface MapControlWrapperProps {
|
|
5
5
|
width?: string | number;
|
|
6
6
|
height?: string | number;
|
|
7
|
+
zIndex?: number;
|
|
7
8
|
positionHorizontal?: AlignHorizontal;
|
|
8
9
|
positionVertical?: AlignVertical;
|
|
9
10
|
disablePointerEvent?: boolean;
|
|
@@ -15,5 +16,5 @@ export interface MapControlWrapperProps {
|
|
|
15
16
|
*
|
|
16
17
|
* @returns {JSX.Element} JSX
|
|
17
18
|
*/
|
|
18
|
-
export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, disablePointerEvent, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
|
|
19
|
+
export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, disablePointerEvent, zIndex, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -30,12 +30,15 @@ function MapControlWrapper(_a) {
|
|
|
30
30
|
_e = _a.positionVertical,
|
|
31
31
|
positionVertical = _e === void 0 ? 'top' : _e,
|
|
32
32
|
disablePointerEvent = _a.disablePointerEvent,
|
|
33
|
+
_f = _a.zIndex,
|
|
34
|
+
zIndex = _f === void 0 ? 101 : _f,
|
|
33
35
|
children = _a.children;
|
|
34
36
|
return React__default["default"].createElement("div", {
|
|
35
37
|
className: cn('mint-map-control-wrapper-container'),
|
|
36
38
|
style: {
|
|
37
39
|
justifyContent: positionHorizontal === 'center' ? 'center' : positionHorizontal === 'right' ? 'flex-end' : 'flex-start',
|
|
38
|
-
alignItems: positionVertical === 'center' ? 'center' : positionVertical === 'bottom' ? 'flex-end' : 'flex-start'
|
|
40
|
+
alignItems: positionVertical === 'center' ? 'center' : positionVertical === 'bottom' ? 'flex-end' : 'flex-start',
|
|
41
|
+
zIndex: zIndex
|
|
39
42
|
}
|
|
40
43
|
}, React__default["default"].createElement("div", {
|
|
41
44
|
className: cn('mint-map-control-wrapper'),
|
|
@@ -379,12 +379,12 @@ function (_super) {
|
|
|
379
379
|
delete window[callbackName];
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
-
params = {
|
|
382
|
+
params = tslib.__assign({
|
|
383
383
|
key: this.mapProps.mapKey,
|
|
384
384
|
libraries: this.scriptModules.join(','),
|
|
385
385
|
v: 'beta',
|
|
386
386
|
callback: callbackName
|
|
387
|
-
};
|
|
387
|
+
}, this.mapProps.scriptParams);
|
|
388
388
|
return [4
|
|
389
389
|
/*yield*/
|
|
390
390
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'google_map_script', this.checkLoaded)];
|
|
@@ -392,11 +392,11 @@ function (_super) {
|
|
|
392
392
|
return tslib.__generator(this, function (_a) {
|
|
393
393
|
switch (_a.label) {
|
|
394
394
|
case 0:
|
|
395
|
-
params = {
|
|
395
|
+
params = tslib.__assign({
|
|
396
396
|
appkey: this.mapProps.mapKey,
|
|
397
397
|
libraries: this.scriptModules.join(','),
|
|
398
398
|
autoload: false
|
|
399
|
-
};
|
|
399
|
+
}, this.mapProps.scriptParams);
|
|
400
400
|
return [4
|
|
401
401
|
/*yield*/
|
|
402
402
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'kakao_map_script', this.checkLoaded)];
|
|
@@ -401,11 +401,11 @@ function (_super) {
|
|
|
401
401
|
delete window[callbackName];
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
params = {
|
|
404
|
+
params = tslib.__assign({
|
|
405
405
|
ncpClientId: this.mapProps.mapKey,
|
|
406
406
|
submodules: this.scriptModules.join(','),
|
|
407
407
|
callback: callbackName
|
|
408
|
-
};
|
|
408
|
+
}, this.mapProps.scriptParams);
|
|
409
409
|
return [4
|
|
410
410
|
/*yield*/
|
|
411
411
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'naver_map_script', this.checkLoaded)];
|
|
@@ -21,6 +21,11 @@ export interface MintMapProps extends MintMapEvents {
|
|
|
21
21
|
* @description 각 지도 타입에 맞는 서브모듈을 지정해야한다.
|
|
22
22
|
*/
|
|
23
23
|
scriptModules?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Map Script 로드시에 파라미터를 추가
|
|
26
|
+
* @description 내부적으로 key=value 의 형태로 처리된다.
|
|
27
|
+
*/
|
|
28
|
+
scriptParams?: Record<string, string>;
|
|
24
29
|
/**
|
|
25
30
|
* Map 종류에 따른 추가 맵 ID
|
|
26
31
|
* @description 특정 지도에서는 맵ID 가 추가로 요구된다 (ex: Google Maps)
|
package/dist/index.es.js
CHANGED
|
@@ -1893,11 +1893,11 @@ function (_super) {
|
|
|
1893
1893
|
delete window[callbackName];
|
|
1894
1894
|
};
|
|
1895
1895
|
|
|
1896
|
-
params = {
|
|
1896
|
+
params = __assign({
|
|
1897
1897
|
ncpClientId: this.mapProps.mapKey,
|
|
1898
1898
|
submodules: this.scriptModules.join(','),
|
|
1899
1899
|
callback: callbackName
|
|
1900
|
-
};
|
|
1900
|
+
}, this.mapProps.scriptParams);
|
|
1901
1901
|
return [4
|
|
1902
1902
|
/*yield*/
|
|
1903
1903
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'naver_map_script', this.checkLoaded)];
|
|
@@ -2612,12 +2612,12 @@ function (_super) {
|
|
|
2612
2612
|
delete window[callbackName];
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
params = {
|
|
2615
|
+
params = __assign({
|
|
2616
2616
|
key: this.mapProps.mapKey,
|
|
2617
2617
|
libraries: this.scriptModules.join(','),
|
|
2618
2618
|
v: 'beta',
|
|
2619
2619
|
callback: callbackName
|
|
2620
|
-
};
|
|
2620
|
+
}, this.mapProps.scriptParams);
|
|
2621
2621
|
return [4
|
|
2622
2622
|
/*yield*/
|
|
2623
2623
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'google_map_script', this.checkLoaded)];
|
|
@@ -3326,11 +3326,11 @@ function (_super) {
|
|
|
3326
3326
|
return __generator(this, function (_a) {
|
|
3327
3327
|
switch (_a.label) {
|
|
3328
3328
|
case 0:
|
|
3329
|
-
params = {
|
|
3329
|
+
params = __assign({
|
|
3330
3330
|
appkey: this.mapProps.mapKey,
|
|
3331
3331
|
libraries: this.scriptModules.join(','),
|
|
3332
3332
|
autoload: false
|
|
3333
|
-
};
|
|
3333
|
+
}, this.mapProps.scriptParams);
|
|
3334
3334
|
return [4
|
|
3335
3335
|
/*yield*/
|
|
3336
3336
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'kakao_map_script', this.checkLoaded)];
|
|
@@ -5277,12 +5277,15 @@ function MapControlWrapper(_a) {
|
|
|
5277
5277
|
_e = _a.positionVertical,
|
|
5278
5278
|
positionVertical = _e === void 0 ? 'top' : _e,
|
|
5279
5279
|
disablePointerEvent = _a.disablePointerEvent,
|
|
5280
|
+
_f = _a.zIndex,
|
|
5281
|
+
zIndex = _f === void 0 ? 101 : _f,
|
|
5280
5282
|
children = _a.children;
|
|
5281
5283
|
return React.createElement("div", {
|
|
5282
5284
|
className: cn('mint-map-control-wrapper-container'),
|
|
5283
5285
|
style: {
|
|
5284
5286
|
justifyContent: positionHorizontal === 'center' ? 'center' : positionHorizontal === 'right' ? 'flex-end' : 'flex-start',
|
|
5285
|
-
alignItems: positionVertical === 'center' ? 'center' : positionVertical === 'bottom' ? 'flex-end' : 'flex-start'
|
|
5287
|
+
alignItems: positionVertical === 'center' ? 'center' : positionVertical === 'bottom' ? 'flex-end' : 'flex-start',
|
|
5288
|
+
zIndex: zIndex
|
|
5286
5289
|
}
|
|
5287
5290
|
}, React.createElement("div", {
|
|
5288
5291
|
className: cn('mint-map-control-wrapper'),
|
package/dist/index.umd.js
CHANGED
|
@@ -1897,11 +1897,11 @@
|
|
|
1897
1897
|
delete window[callbackName];
|
|
1898
1898
|
};
|
|
1899
1899
|
|
|
1900
|
-
params = {
|
|
1900
|
+
params = tslib.__assign({
|
|
1901
1901
|
ncpClientId: this.mapProps.mapKey,
|
|
1902
1902
|
submodules: this.scriptModules.join(','),
|
|
1903
1903
|
callback: callbackName
|
|
1904
|
-
};
|
|
1904
|
+
}, this.mapProps.scriptParams);
|
|
1905
1905
|
return [4
|
|
1906
1906
|
/*yield*/
|
|
1907
1907
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'naver_map_script', this.checkLoaded)];
|
|
@@ -2616,12 +2616,12 @@
|
|
|
2616
2616
|
delete window[callbackName];
|
|
2617
2617
|
};
|
|
2618
2618
|
|
|
2619
|
-
params = {
|
|
2619
|
+
params = tslib.__assign({
|
|
2620
2620
|
key: this.mapProps.mapKey,
|
|
2621
2621
|
libraries: this.scriptModules.join(','),
|
|
2622
2622
|
v: 'beta',
|
|
2623
2623
|
callback: callbackName
|
|
2624
|
-
};
|
|
2624
|
+
}, this.mapProps.scriptParams);
|
|
2625
2625
|
return [4
|
|
2626
2626
|
/*yield*/
|
|
2627
2627
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'google_map_script', this.checkLoaded)];
|
|
@@ -3330,11 +3330,11 @@
|
|
|
3330
3330
|
return tslib.__generator(this, function (_a) {
|
|
3331
3331
|
switch (_a.label) {
|
|
3332
3332
|
case 0:
|
|
3333
|
-
params = {
|
|
3333
|
+
params = tslib.__assign({
|
|
3334
3334
|
appkey: this.mapProps.mapKey,
|
|
3335
3335
|
libraries: this.scriptModules.join(','),
|
|
3336
3336
|
autoload: false
|
|
3337
|
-
};
|
|
3337
|
+
}, this.mapProps.scriptParams);
|
|
3338
3338
|
return [4
|
|
3339
3339
|
/*yield*/
|
|
3340
3340
|
, this.loadScript(this.buildUrl(this.scriptUrl, params), 'kakao_map_script', this.checkLoaded)];
|
|
@@ -5281,12 +5281,15 @@
|
|
|
5281
5281
|
_e = _a.positionVertical,
|
|
5282
5282
|
positionVertical = _e === void 0 ? 'top' : _e,
|
|
5283
5283
|
disablePointerEvent = _a.disablePointerEvent,
|
|
5284
|
+
_f = _a.zIndex,
|
|
5285
|
+
zIndex = _f === void 0 ? 101 : _f,
|
|
5284
5286
|
children = _a.children;
|
|
5285
5287
|
return React__default["default"].createElement("div", {
|
|
5286
5288
|
className: cn('mint-map-control-wrapper-container'),
|
|
5287
5289
|
style: {
|
|
5288
5290
|
justifyContent: positionHorizontal === 'center' ? 'center' : positionHorizontal === 'right' ? 'flex-end' : 'flex-start',
|
|
5289
|
-
alignItems: positionVertical === 'center' ? 'center' : positionVertical === 'bottom' ? 'flex-end' : 'flex-start'
|
|
5291
|
+
alignItems: positionVertical === 'center' ? 'center' : positionVertical === 'bottom' ? 'flex-end' : 'flex-start',
|
|
5292
|
+
zIndex: zIndex
|
|
5290
5293
|
}
|
|
5291
5294
|
}, React__default["default"].createElement("div", {
|
|
5292
5295
|
className: cn('mint-map-control-wrapper'),
|