@mint-ui/map 0.4.1-beta → 0.4.3-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/MintMap.d.ts +1 -0
- package/dist/components/mint-map/core/MintMapController.js +0 -1
- package/dist/components/mint-map/core/MintMapCore.d.ts +1 -1
- package/dist/components/mint-map/core/MintMapCore.js +6 -4
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +1 -1
- package/dist/components/mint-map/google/GoogleMintMapController.js +0 -6
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +0 -5
- package/dist/components/mint-map/naver/NaverMintMapController.js +2 -8
- package/dist/index.es.js +9 -25
- package/dist/index.umd.js +9 -25
- package/package.json +2 -2
|
@@ -58,7 +58,6 @@ var MintMapController = function () {
|
|
|
58
58
|
return tslib.__generator(this, function (_a) {
|
|
59
59
|
return [2, new Promise(function (resolve) {
|
|
60
60
|
if (id && document.getElementById(id)) {
|
|
61
|
-
console.log("already loaded script => ".concat(id));
|
|
62
61
|
resolve();
|
|
63
62
|
return;
|
|
64
63
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { MintMapProps } from "../MintMap";
|
|
3
|
-
export declare function MintMapCore({ onLoad, visible, zoomLevel, center, children }: PropsWithChildren<MintMapProps>): JSX.Element;
|
|
3
|
+
export declare function MintMapCore({ onLoad, visible, zoomLevel, center, centerMoveWithPanning, children }: PropsWithChildren<MintMapProps>): JSX.Element;
|
|
@@ -23,13 +23,15 @@ function MintMapCore(_a) {
|
|
|
23
23
|
visible = _b === void 0 ? true : _b,
|
|
24
24
|
zoomLevel = _a.zoomLevel,
|
|
25
25
|
center = _a.center,
|
|
26
|
+
_c = _a.centerMoveWithPanning,
|
|
27
|
+
centerMoveWithPanning = _c === void 0 ? false : _c,
|
|
26
28
|
children = _a.children;
|
|
27
29
|
var controller = MintMapProvider.useMintMapController();
|
|
28
30
|
var elementRef = React.useRef(null);
|
|
29
31
|
|
|
30
|
-
var
|
|
31
|
-
mapInitialized =
|
|
32
|
-
setMapInitialized =
|
|
32
|
+
var _d = React.useState(false),
|
|
33
|
+
mapInitialized = _d[0],
|
|
34
|
+
setMapInitialized = _d[1];
|
|
33
35
|
|
|
34
36
|
React.useEffect(function () {
|
|
35
37
|
(function () {
|
|
@@ -74,7 +76,7 @@ function MintMapCore(_a) {
|
|
|
74
76
|
var prevCenter = controller.getCenter();
|
|
75
77
|
|
|
76
78
|
if (!MintMap.Position.equals(prevCenter, center)) {
|
|
77
|
-
controller === null || controller === void 0 ? void 0 : controller.setCenter(center);
|
|
79
|
+
centerMoveWithPanning ? controller === null || controller === void 0 ? void 0 : controller.panningTo(center) : controller === null || controller === void 0 ? void 0 : controller.setCenter(center);
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
}, [center]);
|
|
@@ -182,7 +182,7 @@ function MapCanvasWrapper(_a) {
|
|
|
182
182
|
var renderItemsOnView = React.useRef([]);
|
|
183
183
|
var renderItemsMouseOverStatus = React.useRef(new Set());
|
|
184
184
|
React.useEffect(function () {
|
|
185
|
-
renderItems.current = (Array.isArray(children) ? children : [children]).map(function (item) {
|
|
185
|
+
renderItems.current = (Array.isArray(children) ? children : children ? [children] : []).map(function (item) {
|
|
186
186
|
return item.props;
|
|
187
187
|
});
|
|
188
188
|
var zIndexList = [];
|
|
@@ -28,11 +28,8 @@ var GoogleMintMapController = function (_super) {
|
|
|
28
28
|
} catch (e) {
|
|
29
29
|
console.log('google map destroy error', e);
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
console.log("".concat(_this.type, " map destroyed"));
|
|
33
31
|
};
|
|
34
32
|
|
|
35
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
36
33
|
return _this;
|
|
37
34
|
}
|
|
38
35
|
|
|
@@ -328,7 +325,6 @@ var GoogleMintMapController = function (_super) {
|
|
|
328
325
|
loaded = false;
|
|
329
326
|
|
|
330
327
|
window[callbackName] = function () {
|
|
331
|
-
console.log('google api loaded');
|
|
332
328
|
loaded = true;
|
|
333
329
|
delete window[callbackName];
|
|
334
330
|
};
|
|
@@ -357,7 +353,6 @@ var GoogleMintMapController = function (_super) {
|
|
|
357
353
|
|
|
358
354
|
this.mapApiLoaded = true;
|
|
359
355
|
resolve(true);
|
|
360
|
-
console.log("".concat(this.type, " map script api loaded"));
|
|
361
356
|
return [2];
|
|
362
357
|
}
|
|
363
358
|
});
|
|
@@ -433,7 +428,6 @@ var GoogleMintMapController = function (_super) {
|
|
|
433
428
|
_this.mapProps.onMouseMove(pos);
|
|
434
429
|
});
|
|
435
430
|
this.mapInitialized = true;
|
|
436
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
437
431
|
resolve(map);
|
|
438
432
|
return [2];
|
|
439
433
|
}
|
|
@@ -23,7 +23,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
23
23
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
24
24
|
_this.dragStartPoint = [0, 0];
|
|
25
25
|
_this.dragged = false;
|
|
26
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
27
26
|
return _this;
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -341,7 +340,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
341
340
|
|
|
342
341
|
this.mapApiLoaded = true;
|
|
343
342
|
resolve(true);
|
|
344
|
-
console.log("".concat(this.type, " map script loaded"));
|
|
345
343
|
return [2];
|
|
346
344
|
}
|
|
347
345
|
});
|
|
@@ -434,7 +432,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
434
432
|
});
|
|
435
433
|
this.mapInitialized = true;
|
|
436
434
|
this.initMarkerPool();
|
|
437
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
438
435
|
resolve(map);
|
|
439
436
|
return [2];
|
|
440
437
|
}
|
|
@@ -465,8 +462,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
465
462
|
} catch (e) {
|
|
466
463
|
console.log('kakao map destroy error', e);
|
|
467
464
|
}
|
|
468
|
-
|
|
469
|
-
console.log("".concat(this.type, " map destroyed"));
|
|
470
465
|
};
|
|
471
466
|
|
|
472
467
|
KakaoMintMapController.prototype.getCurrBounds = function () {
|
|
@@ -23,7 +23,6 @@ var NaverMintMapController = function (_super) {
|
|
|
23
23
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
24
24
|
_this.dragStartPoint = [0, 0];
|
|
25
25
|
_this.dragged = false;
|
|
26
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
27
26
|
return _this;
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -309,7 +308,7 @@ var NaverMintMapController = function (_super) {
|
|
|
309
308
|
var _this = this;
|
|
310
309
|
|
|
311
310
|
return tslib.__generator(this, function (_a) {
|
|
312
|
-
return [2, new Promise(function (resolve) {
|
|
311
|
+
return [2, new Promise(function (resolve, error) {
|
|
313
312
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
314
313
|
var callbackName, loaded, params, ok;
|
|
315
314
|
return tslib.__generator(this, function (_a) {
|
|
@@ -319,7 +318,6 @@ var NaverMintMapController = function (_super) {
|
|
|
319
318
|
loaded = false;
|
|
320
319
|
|
|
321
320
|
window[callbackName] = function () {
|
|
322
|
-
console.log('naver api loaded');
|
|
323
321
|
loaded = true;
|
|
324
322
|
delete window[callbackName];
|
|
325
323
|
};
|
|
@@ -342,12 +340,11 @@ var NaverMintMapController = function (_super) {
|
|
|
342
340
|
ok = _a.sent();
|
|
343
341
|
|
|
344
342
|
if (!ok) {
|
|
345
|
-
|
|
343
|
+
error('naver script api load failed!!');
|
|
346
344
|
}
|
|
347
345
|
|
|
348
346
|
this.mapApiLoaded = true;
|
|
349
347
|
resolve(true);
|
|
350
|
-
console.log("".concat(this.type, " map script loaded"));
|
|
351
348
|
return [2];
|
|
352
349
|
}
|
|
353
350
|
});
|
|
@@ -455,7 +452,6 @@ var NaverMintMapController = function (_super) {
|
|
|
455
452
|
});
|
|
456
453
|
this.mapInitialized = true;
|
|
457
454
|
this.initMarkerPool();
|
|
458
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
459
455
|
resolve(map);
|
|
460
456
|
map.trigger('idle');
|
|
461
457
|
return [2];
|
|
@@ -486,8 +482,6 @@ var NaverMintMapController = function (_super) {
|
|
|
486
482
|
} catch (e) {
|
|
487
483
|
console.log('naver map destroy error', e);
|
|
488
484
|
}
|
|
489
|
-
|
|
490
|
-
console.log("".concat(this.type, " map destroyed"));
|
|
491
485
|
};
|
|
492
486
|
|
|
493
487
|
NaverMintMapController.prototype.getCurrBounds = function () {
|
package/dist/index.es.js
CHANGED
|
@@ -40,13 +40,15 @@ function MintMapCore(_a) {
|
|
|
40
40
|
visible = _b === void 0 ? true : _b,
|
|
41
41
|
zoomLevel = _a.zoomLevel,
|
|
42
42
|
center = _a.center,
|
|
43
|
+
_c = _a.centerMoveWithPanning,
|
|
44
|
+
centerMoveWithPanning = _c === void 0 ? false : _c,
|
|
43
45
|
children = _a.children;
|
|
44
46
|
var controller = useMintMapController();
|
|
45
47
|
var elementRef = useRef(null);
|
|
46
48
|
|
|
47
|
-
var
|
|
48
|
-
mapInitialized =
|
|
49
|
-
setMapInitialized =
|
|
49
|
+
var _d = useState(false),
|
|
50
|
+
mapInitialized = _d[0],
|
|
51
|
+
setMapInitialized = _d[1];
|
|
50
52
|
|
|
51
53
|
useEffect(function () {
|
|
52
54
|
(function () {
|
|
@@ -91,7 +93,7 @@ function MintMapCore(_a) {
|
|
|
91
93
|
var prevCenter = controller.getCenter();
|
|
92
94
|
|
|
93
95
|
if (!Position.equals(prevCenter, center)) {
|
|
94
|
-
controller === null || controller === void 0 ? void 0 : controller.setCenter(center);
|
|
96
|
+
centerMoveWithPanning ? controller === null || controller === void 0 ? void 0 : controller.panningTo(center) : controller === null || controller === void 0 ? void 0 : controller.setCenter(center);
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
}, [center]);
|
|
@@ -378,7 +380,6 @@ var MintMapController = function () {
|
|
|
378
380
|
return __generator(this, function (_a) {
|
|
379
381
|
return [2, new Promise(function (resolve) {
|
|
380
382
|
if (id && document.getElementById(id)) {
|
|
381
|
-
console.log("already loaded script => ".concat(id));
|
|
382
383
|
resolve();
|
|
383
384
|
return;
|
|
384
385
|
}
|
|
@@ -678,7 +679,6 @@ var NaverMintMapController = function (_super) {
|
|
|
678
679
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
679
680
|
_this.dragStartPoint = [0, 0];
|
|
680
681
|
_this.dragged = false;
|
|
681
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
682
682
|
return _this;
|
|
683
683
|
}
|
|
684
684
|
|
|
@@ -964,7 +964,7 @@ var NaverMintMapController = function (_super) {
|
|
|
964
964
|
var _this = this;
|
|
965
965
|
|
|
966
966
|
return __generator(this, function (_a) {
|
|
967
|
-
return [2, new Promise(function (resolve) {
|
|
967
|
+
return [2, new Promise(function (resolve, error) {
|
|
968
968
|
return __awaiter(_this, void 0, void 0, function () {
|
|
969
969
|
var callbackName, loaded, params, ok;
|
|
970
970
|
return __generator(this, function (_a) {
|
|
@@ -974,7 +974,6 @@ var NaverMintMapController = function (_super) {
|
|
|
974
974
|
loaded = false;
|
|
975
975
|
|
|
976
976
|
window[callbackName] = function () {
|
|
977
|
-
console.log('naver api loaded');
|
|
978
977
|
loaded = true;
|
|
979
978
|
delete window[callbackName];
|
|
980
979
|
};
|
|
@@ -997,12 +996,11 @@ var NaverMintMapController = function (_super) {
|
|
|
997
996
|
ok = _a.sent();
|
|
998
997
|
|
|
999
998
|
if (!ok) {
|
|
1000
|
-
|
|
999
|
+
error('naver script api load failed!!');
|
|
1001
1000
|
}
|
|
1002
1001
|
|
|
1003
1002
|
this.mapApiLoaded = true;
|
|
1004
1003
|
resolve(true);
|
|
1005
|
-
console.log("".concat(this.type, " map script loaded"));
|
|
1006
1004
|
return [2];
|
|
1007
1005
|
}
|
|
1008
1006
|
});
|
|
@@ -1110,7 +1108,6 @@ var NaverMintMapController = function (_super) {
|
|
|
1110
1108
|
});
|
|
1111
1109
|
this.mapInitialized = true;
|
|
1112
1110
|
this.initMarkerPool();
|
|
1113
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
1114
1111
|
resolve(map);
|
|
1115
1112
|
map.trigger('idle');
|
|
1116
1113
|
return [2];
|
|
@@ -1141,8 +1138,6 @@ var NaverMintMapController = function (_super) {
|
|
|
1141
1138
|
} catch (e) {
|
|
1142
1139
|
console.log('naver map destroy error', e);
|
|
1143
1140
|
}
|
|
1144
|
-
|
|
1145
|
-
console.log("".concat(this.type, " map destroyed"));
|
|
1146
1141
|
};
|
|
1147
1142
|
|
|
1148
1143
|
NaverMintMapController.prototype.getCurrBounds = function () {
|
|
@@ -1208,11 +1203,8 @@ var GoogleMintMapController = function (_super) {
|
|
|
1208
1203
|
} catch (e) {
|
|
1209
1204
|
console.log('google map destroy error', e);
|
|
1210
1205
|
}
|
|
1211
|
-
|
|
1212
|
-
console.log("".concat(_this.type, " map destroyed"));
|
|
1213
1206
|
};
|
|
1214
1207
|
|
|
1215
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
1216
1208
|
return _this;
|
|
1217
1209
|
}
|
|
1218
1210
|
|
|
@@ -1508,7 +1500,6 @@ var GoogleMintMapController = function (_super) {
|
|
|
1508
1500
|
loaded = false;
|
|
1509
1501
|
|
|
1510
1502
|
window[callbackName] = function () {
|
|
1511
|
-
console.log('google api loaded');
|
|
1512
1503
|
loaded = true;
|
|
1513
1504
|
delete window[callbackName];
|
|
1514
1505
|
};
|
|
@@ -1537,7 +1528,6 @@ var GoogleMintMapController = function (_super) {
|
|
|
1537
1528
|
|
|
1538
1529
|
this.mapApiLoaded = true;
|
|
1539
1530
|
resolve(true);
|
|
1540
|
-
console.log("".concat(this.type, " map script api loaded"));
|
|
1541
1531
|
return [2];
|
|
1542
1532
|
}
|
|
1543
1533
|
});
|
|
@@ -1613,7 +1603,6 @@ var GoogleMintMapController = function (_super) {
|
|
|
1613
1603
|
_this.mapProps.onMouseMove(pos);
|
|
1614
1604
|
});
|
|
1615
1605
|
this.mapInitialized = true;
|
|
1616
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
1617
1606
|
resolve(map);
|
|
1618
1607
|
return [2];
|
|
1619
1608
|
}
|
|
@@ -1688,7 +1677,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
1688
1677
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
1689
1678
|
_this.dragStartPoint = [0, 0];
|
|
1690
1679
|
_this.dragged = false;
|
|
1691
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
1692
1680
|
return _this;
|
|
1693
1681
|
}
|
|
1694
1682
|
|
|
@@ -2006,7 +1994,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
2006
1994
|
|
|
2007
1995
|
this.mapApiLoaded = true;
|
|
2008
1996
|
resolve(true);
|
|
2009
|
-
console.log("".concat(this.type, " map script loaded"));
|
|
2010
1997
|
return [2];
|
|
2011
1998
|
}
|
|
2012
1999
|
});
|
|
@@ -2099,7 +2086,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
2099
2086
|
});
|
|
2100
2087
|
this.mapInitialized = true;
|
|
2101
2088
|
this.initMarkerPool();
|
|
2102
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
2103
2089
|
resolve(map);
|
|
2104
2090
|
return [2];
|
|
2105
2091
|
}
|
|
@@ -2130,8 +2116,6 @@ var KakaoMintMapController = function (_super) {
|
|
|
2130
2116
|
} catch (e) {
|
|
2131
2117
|
console.log('kakao map destroy error', e);
|
|
2132
2118
|
}
|
|
2133
|
-
|
|
2134
|
-
console.log("".concat(this.type, " map destroyed"));
|
|
2135
2119
|
};
|
|
2136
2120
|
|
|
2137
2121
|
KakaoMintMapController.prototype.getCurrBounds = function () {
|
|
@@ -3409,7 +3393,7 @@ function MapCanvasWrapper(_a) {
|
|
|
3409
3393
|
var renderItemsOnView = useRef([]);
|
|
3410
3394
|
var renderItemsMouseOverStatus = useRef(new Set());
|
|
3411
3395
|
useEffect(function () {
|
|
3412
|
-
renderItems.current = (Array.isArray(children) ? children : [children]).map(function (item) {
|
|
3396
|
+
renderItems.current = (Array.isArray(children) ? children : children ? [children] : []).map(function (item) {
|
|
3413
3397
|
return item.props;
|
|
3414
3398
|
});
|
|
3415
3399
|
var zIndexList = [];
|
package/dist/index.umd.js
CHANGED
|
@@ -45,13 +45,15 @@
|
|
|
45
45
|
visible = _b === void 0 ? true : _b,
|
|
46
46
|
zoomLevel = _a.zoomLevel,
|
|
47
47
|
center = _a.center,
|
|
48
|
+
_c = _a.centerMoveWithPanning,
|
|
49
|
+
centerMoveWithPanning = _c === void 0 ? false : _c,
|
|
48
50
|
children = _a.children;
|
|
49
51
|
var controller = useMintMapController();
|
|
50
52
|
var elementRef = React.useRef(null);
|
|
51
53
|
|
|
52
|
-
var
|
|
53
|
-
mapInitialized =
|
|
54
|
-
setMapInitialized =
|
|
54
|
+
var _d = React.useState(false),
|
|
55
|
+
mapInitialized = _d[0],
|
|
56
|
+
setMapInitialized = _d[1];
|
|
55
57
|
|
|
56
58
|
React.useEffect(function () {
|
|
57
59
|
(function () {
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
var prevCenter = controller.getCenter();
|
|
97
99
|
|
|
98
100
|
if (!Position.equals(prevCenter, center)) {
|
|
99
|
-
controller === null || controller === void 0 ? void 0 : controller.setCenter(center);
|
|
101
|
+
centerMoveWithPanning ? controller === null || controller === void 0 ? void 0 : controller.panningTo(center) : controller === null || controller === void 0 ? void 0 : controller.setCenter(center);
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
}, [center]);
|
|
@@ -383,7 +385,6 @@
|
|
|
383
385
|
return tslib.__generator(this, function (_a) {
|
|
384
386
|
return [2, new Promise(function (resolve) {
|
|
385
387
|
if (id && document.getElementById(id)) {
|
|
386
|
-
console.log("already loaded script => ".concat(id));
|
|
387
388
|
resolve();
|
|
388
389
|
return;
|
|
389
390
|
}
|
|
@@ -683,7 +684,6 @@
|
|
|
683
684
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
684
685
|
_this.dragStartPoint = [0, 0];
|
|
685
686
|
_this.dragged = false;
|
|
686
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
687
687
|
return _this;
|
|
688
688
|
}
|
|
689
689
|
|
|
@@ -969,7 +969,7 @@
|
|
|
969
969
|
var _this = this;
|
|
970
970
|
|
|
971
971
|
return tslib.__generator(this, function (_a) {
|
|
972
|
-
return [2, new Promise(function (resolve) {
|
|
972
|
+
return [2, new Promise(function (resolve, error) {
|
|
973
973
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
974
974
|
var callbackName, loaded, params, ok;
|
|
975
975
|
return tslib.__generator(this, function (_a) {
|
|
@@ -979,7 +979,6 @@
|
|
|
979
979
|
loaded = false;
|
|
980
980
|
|
|
981
981
|
window[callbackName] = function () {
|
|
982
|
-
console.log('naver api loaded');
|
|
983
982
|
loaded = true;
|
|
984
983
|
delete window[callbackName];
|
|
985
984
|
};
|
|
@@ -1002,12 +1001,11 @@
|
|
|
1002
1001
|
ok = _a.sent();
|
|
1003
1002
|
|
|
1004
1003
|
if (!ok) {
|
|
1005
|
-
|
|
1004
|
+
error('naver script api load failed!!');
|
|
1006
1005
|
}
|
|
1007
1006
|
|
|
1008
1007
|
this.mapApiLoaded = true;
|
|
1009
1008
|
resolve(true);
|
|
1010
|
-
console.log("".concat(this.type, " map script loaded"));
|
|
1011
1009
|
return [2];
|
|
1012
1010
|
}
|
|
1013
1011
|
});
|
|
@@ -1115,7 +1113,6 @@
|
|
|
1115
1113
|
});
|
|
1116
1114
|
this.mapInitialized = true;
|
|
1117
1115
|
this.initMarkerPool();
|
|
1118
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
1119
1116
|
resolve(map);
|
|
1120
1117
|
map.trigger('idle');
|
|
1121
1118
|
return [2];
|
|
@@ -1146,8 +1143,6 @@
|
|
|
1146
1143
|
} catch (e) {
|
|
1147
1144
|
console.log('naver map destroy error', e);
|
|
1148
1145
|
}
|
|
1149
|
-
|
|
1150
|
-
console.log("".concat(this.type, " map destroyed"));
|
|
1151
1146
|
};
|
|
1152
1147
|
|
|
1153
1148
|
NaverMintMapController.prototype.getCurrBounds = function () {
|
|
@@ -1213,11 +1208,8 @@
|
|
|
1213
1208
|
} catch (e) {
|
|
1214
1209
|
console.log('google map destroy error', e);
|
|
1215
1210
|
}
|
|
1216
|
-
|
|
1217
|
-
console.log("".concat(_this.type, " map destroyed"));
|
|
1218
1211
|
};
|
|
1219
1212
|
|
|
1220
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
1221
1213
|
return _this;
|
|
1222
1214
|
}
|
|
1223
1215
|
|
|
@@ -1513,7 +1505,6 @@
|
|
|
1513
1505
|
loaded = false;
|
|
1514
1506
|
|
|
1515
1507
|
window[callbackName] = function () {
|
|
1516
|
-
console.log('google api loaded');
|
|
1517
1508
|
loaded = true;
|
|
1518
1509
|
delete window[callbackName];
|
|
1519
1510
|
};
|
|
@@ -1542,7 +1533,6 @@
|
|
|
1542
1533
|
|
|
1543
1534
|
this.mapApiLoaded = true;
|
|
1544
1535
|
resolve(true);
|
|
1545
|
-
console.log("".concat(this.type, " map script api loaded"));
|
|
1546
1536
|
return [2];
|
|
1547
1537
|
}
|
|
1548
1538
|
});
|
|
@@ -1618,7 +1608,6 @@
|
|
|
1618
1608
|
_this.mapProps.onMouseMove(pos);
|
|
1619
1609
|
});
|
|
1620
1610
|
this.mapInitialized = true;
|
|
1621
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
1622
1611
|
resolve(map);
|
|
1623
1612
|
return [2];
|
|
1624
1613
|
}
|
|
@@ -1693,7 +1682,6 @@
|
|
|
1693
1682
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
1694
1683
|
_this.dragStartPoint = [0, 0];
|
|
1695
1684
|
_this.dragged = false;
|
|
1696
|
-
console.log("".concat(_this.type, " controller loadded"));
|
|
1697
1685
|
return _this;
|
|
1698
1686
|
}
|
|
1699
1687
|
|
|
@@ -2011,7 +1999,6 @@
|
|
|
2011
1999
|
|
|
2012
2000
|
this.mapApiLoaded = true;
|
|
2013
2001
|
resolve(true);
|
|
2014
|
-
console.log("".concat(this.type, " map script loaded"));
|
|
2015
2002
|
return [2];
|
|
2016
2003
|
}
|
|
2017
2004
|
});
|
|
@@ -2104,7 +2091,6 @@
|
|
|
2104
2091
|
});
|
|
2105
2092
|
this.mapInitialized = true;
|
|
2106
2093
|
this.initMarkerPool();
|
|
2107
|
-
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
2108
2094
|
resolve(map);
|
|
2109
2095
|
return [2];
|
|
2110
2096
|
}
|
|
@@ -2135,8 +2121,6 @@
|
|
|
2135
2121
|
} catch (e) {
|
|
2136
2122
|
console.log('kakao map destroy error', e);
|
|
2137
2123
|
}
|
|
2138
|
-
|
|
2139
|
-
console.log("".concat(this.type, " map destroyed"));
|
|
2140
2124
|
};
|
|
2141
2125
|
|
|
2142
2126
|
KakaoMintMapController.prototype.getCurrBounds = function () {
|
|
@@ -3414,7 +3398,7 @@
|
|
|
3414
3398
|
var renderItemsOnView = React.useRef([]);
|
|
3415
3399
|
var renderItemsMouseOverStatus = React.useRef(new Set());
|
|
3416
3400
|
React.useEffect(function () {
|
|
3417
|
-
renderItems.current = (Array.isArray(children) ? children : [children]).map(function (item) {
|
|
3401
|
+
renderItems.current = (Array.isArray(children) ? children : children ? [children] : []).map(function (item) {
|
|
3418
3402
|
return item.props;
|
|
3419
3403
|
});
|
|
3420
3404
|
var zIndexList = [];
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mint-ui/map",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3-beta",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"browser": "./dist/index.umd.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"repository": "https://github.com/dev-rsquare/mint-ui-map",
|
|
9
9
|
"author": "RSQUARE",
|
|
10
|
-
"keywords": ["react", "map", "google", "naver", "kakao", "library", "typescript", "canvas", "marker"],
|
|
10
|
+
"keywords": ["react", "react map", "map", "google", "naver", "kakao", "library", "typescript", "canvas", "marker"],
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"private": false,
|
|
13
13
|
"devDependencies": {
|