@mint-ui/map 0.4.2-beta → 0.4.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/dist/components/mint-map/MintMap.d.ts +15 -1
- package/dist/components/mint-map/MintMap.js +249 -21
- package/dist/components/mint-map/core/MintMapController.d.ts +2 -1
- package/dist/components/mint-map/core/MintMapController.js +19 -4
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +1 -1
- package/dist/components/mint-map/google/GoogleMintMapController.d.ts +1 -0
- package/dist/components/mint-map/google/GoogleMintMapController.js +15 -4
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +1 -0
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +11 -2
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +1 -0
- package/dist/components/mint-map/naver/NaverMintMapController.js +15 -4
- package/dist/index.es.js +309 -37
- package/dist/index.js +2 -0
- package/dist/index.umd.js +313 -40
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('react'), require('classnames/bind'), require('style-inject'), require('@mint-ui/tools'), require('react-dom')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'react', 'classnames/bind', 'style-inject', '@mint-ui/tools', 'react-dom'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@mint-ui/map"] = {}, global.tslib, global.React, global.classNames, global.styleInject, global.tools, global.reactDom));
|
|
5
|
-
})(this, (function (exports, tslib, React, classNames, styleInject, tools, reactDom) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('react'), require('classnames/bind'), require('style-inject'), require('uuid'), require('@mint-ui/tools'), require('react-dom')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'react', 'classnames/bind', 'style-inject', 'uuid', '@mint-ui/tools', 'react-dom'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@mint-ui/map"] = {}, global.tslib, global.React, global.classNames, global.styleInject, global.uuid, global.tools, global.reactDom));
|
|
5
|
+
})(this, (function (exports, tslib, React, classNames, styleInject, uuid, tools, reactDom) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -380,12 +380,21 @@
|
|
|
380
380
|
return new Position(latVal, lngVal);
|
|
381
381
|
};
|
|
382
382
|
|
|
383
|
-
MintMapController.prototype.loadScript = function (url, id) {
|
|
383
|
+
MintMapController.prototype.loadScript = function (url, id, checkLoaded) {
|
|
384
384
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
385
385
|
return tslib.__generator(this, function (_a) {
|
|
386
386
|
return [2, new Promise(function (resolve) {
|
|
387
|
-
if (
|
|
388
|
-
resolve();
|
|
387
|
+
if (checkLoaded()) {
|
|
388
|
+
resolve(false);
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
var prevElement = id ? document.getElementById(id) : undefined;
|
|
393
|
+
|
|
394
|
+
if (prevElement) {
|
|
395
|
+
prevElement.addEventListener('load', function () {
|
|
396
|
+
resolve(false);
|
|
397
|
+
});
|
|
389
398
|
return;
|
|
390
399
|
}
|
|
391
400
|
|
|
@@ -393,8 +402,9 @@
|
|
|
393
402
|
script.src = url;
|
|
394
403
|
script.async = true;
|
|
395
404
|
script.defer = true;
|
|
405
|
+
id && (script.id = id);
|
|
396
406
|
script.addEventListener('load', function () {
|
|
397
|
-
resolve();
|
|
407
|
+
resolve(true);
|
|
398
408
|
});
|
|
399
409
|
document.body.appendChild(script);
|
|
400
410
|
})];
|
|
@@ -402,6 +412,10 @@
|
|
|
402
412
|
});
|
|
403
413
|
};
|
|
404
414
|
|
|
415
|
+
MintMapController.prototype.getRandomFunctionName = function (prefix) {
|
|
416
|
+
return "".concat(prefix, "_").concat(uuid.v4().replace(/-/g, '_'));
|
|
417
|
+
};
|
|
418
|
+
|
|
405
419
|
MintMapController.prototype.buildUrl = function (baseUrl, param) {
|
|
406
420
|
var params = Object.entries(param).map(function (_a) {
|
|
407
421
|
var key = _a[0],
|
|
@@ -964,6 +978,12 @@
|
|
|
964
978
|
this.dragged = false;
|
|
965
979
|
};
|
|
966
980
|
|
|
981
|
+
NaverMintMapController.prototype.checkLoaded = function () {
|
|
982
|
+
var _a, _b;
|
|
983
|
+
|
|
984
|
+
return (_b = (_a = window.naver) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.Map;
|
|
985
|
+
};
|
|
986
|
+
|
|
967
987
|
NaverMintMapController.prototype.loadMapApi = function () {
|
|
968
988
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
969
989
|
var _this = this;
|
|
@@ -971,11 +991,11 @@
|
|
|
971
991
|
return tslib.__generator(this, function (_a) {
|
|
972
992
|
return [2, new Promise(function (resolve, error) {
|
|
973
993
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
974
|
-
var callbackName, loaded, params, ok;
|
|
994
|
+
var callbackName, loaded, params, callbackExecFlag, ok;
|
|
975
995
|
return tslib.__generator(this, function (_a) {
|
|
976
996
|
switch (_a.label) {
|
|
977
997
|
case 0:
|
|
978
|
-
callbackName =
|
|
998
|
+
callbackName = this.getRandomFunctionName('load_naver');
|
|
979
999
|
loaded = false;
|
|
980
1000
|
|
|
981
1001
|
window[callbackName] = function () {
|
|
@@ -988,10 +1008,15 @@
|
|
|
988
1008
|
submodules: this.scriptModules.join(','),
|
|
989
1009
|
callback: callbackName
|
|
990
1010
|
};
|
|
991
|
-
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), '
|
|
1011
|
+
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), 'naver_map_script', this.checkLoaded)];
|
|
992
1012
|
|
|
993
1013
|
case 1:
|
|
994
|
-
_a.sent();
|
|
1014
|
+
callbackExecFlag = _a.sent();
|
|
1015
|
+
|
|
1016
|
+
if (!callbackExecFlag) {
|
|
1017
|
+
loaded = true;
|
|
1018
|
+
delete window[callbackName];
|
|
1019
|
+
}
|
|
995
1020
|
|
|
996
1021
|
return [4, waiting(function () {
|
|
997
1022
|
return loaded;
|
|
@@ -1490,6 +1515,12 @@
|
|
|
1490
1515
|
this.dragged = false;
|
|
1491
1516
|
};
|
|
1492
1517
|
|
|
1518
|
+
GoogleMintMapController.prototype.checkLoaded = function () {
|
|
1519
|
+
var _a, _b;
|
|
1520
|
+
|
|
1521
|
+
return (_b = (_a = window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.Map;
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1493
1524
|
GoogleMintMapController.prototype.loadMapApi = function () {
|
|
1494
1525
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
1495
1526
|
var _this = this;
|
|
@@ -1497,11 +1528,11 @@
|
|
|
1497
1528
|
return tslib.__generator(this, function (_a) {
|
|
1498
1529
|
return [2, new Promise(function (resolve) {
|
|
1499
1530
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
1500
|
-
var callbackName, loaded, params, ok;
|
|
1531
|
+
var callbackName, loaded, params, callbackExecFlag, ok;
|
|
1501
1532
|
return tslib.__generator(this, function (_a) {
|
|
1502
1533
|
switch (_a.label) {
|
|
1503
1534
|
case 0:
|
|
1504
|
-
callbackName =
|
|
1535
|
+
callbackName = this.getRandomFunctionName('load_google');
|
|
1505
1536
|
loaded = false;
|
|
1506
1537
|
|
|
1507
1538
|
window[callbackName] = function () {
|
|
@@ -1515,10 +1546,15 @@
|
|
|
1515
1546
|
v: 'beta',
|
|
1516
1547
|
callback: callbackName
|
|
1517
1548
|
};
|
|
1518
|
-
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), '
|
|
1549
|
+
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), 'google_map_script', this.checkLoaded)];
|
|
1519
1550
|
|
|
1520
1551
|
case 1:
|
|
1521
|
-
_a.sent();
|
|
1552
|
+
callbackExecFlag = _a.sent();
|
|
1553
|
+
|
|
1554
|
+
if (!callbackExecFlag) {
|
|
1555
|
+
loaded = true;
|
|
1556
|
+
delete window[callbackName];
|
|
1557
|
+
}
|
|
1522
1558
|
|
|
1523
1559
|
return [4, waiting(function () {
|
|
1524
1560
|
return loaded;
|
|
@@ -1964,6 +2000,12 @@
|
|
|
1964
2000
|
this.dragged = false;
|
|
1965
2001
|
};
|
|
1966
2002
|
|
|
2003
|
+
KakaoMintMapController.prototype.checkLoaded = function () {
|
|
2004
|
+
var _a, _b;
|
|
2005
|
+
|
|
2006
|
+
return (_b = (_a = window.kakao) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.Map;
|
|
2007
|
+
};
|
|
2008
|
+
|
|
1967
2009
|
KakaoMintMapController.prototype.loadMapApi = function () {
|
|
1968
2010
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
1969
2011
|
var _this = this;
|
|
@@ -1972,6 +2014,9 @@
|
|
|
1972
2014
|
return [2, new Promise(function (resolve) {
|
|
1973
2015
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
1974
2016
|
var params, ok;
|
|
2017
|
+
|
|
2018
|
+
var _this = this;
|
|
2019
|
+
|
|
1975
2020
|
return tslib.__generator(this, function (_a) {
|
|
1976
2021
|
switch (_a.label) {
|
|
1977
2022
|
case 0:
|
|
@@ -1980,14 +2025,14 @@
|
|
|
1980
2025
|
libraries: this.scriptModules.join(','),
|
|
1981
2026
|
autoload: false
|
|
1982
2027
|
};
|
|
1983
|
-
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), '
|
|
2028
|
+
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), 'kakao_map_script', this.checkLoaded)];
|
|
1984
2029
|
|
|
1985
2030
|
case 1:
|
|
1986
2031
|
_a.sent();
|
|
1987
2032
|
|
|
1988
2033
|
window.kakao.maps.load();
|
|
1989
2034
|
return [4, waiting(function () {
|
|
1990
|
-
return
|
|
2035
|
+
return _this.checkLoaded() ? true : false;
|
|
1991
2036
|
})];
|
|
1992
2037
|
|
|
1993
2038
|
case 2:
|
|
@@ -2346,23 +2391,25 @@
|
|
|
2346
2391
|
};
|
|
2347
2392
|
function MintMap(_a) {
|
|
2348
2393
|
var mapLoadingComponent = _a.mapLoadingComponent,
|
|
2394
|
+
_b = _a.dissolveEffectWhenLoaded,
|
|
2395
|
+
dissolveEffectWhenLoaded = _b === void 0 ? true : _b,
|
|
2349
2396
|
mapType = _a.mapType,
|
|
2350
2397
|
children = _a.children,
|
|
2351
|
-
|
|
2352
|
-
base =
|
|
2398
|
+
_c = _a.base,
|
|
2399
|
+
base = _c === void 0 ? {
|
|
2353
2400
|
center: DEFAULT_CENTER,
|
|
2354
2401
|
zoomLevel: 12
|
|
2355
|
-
} :
|
|
2356
|
-
props = tslib.__rest(_a, ["mapLoadingComponent", "mapType", "children", "base"]);
|
|
2402
|
+
} : _c,
|
|
2403
|
+
props = tslib.__rest(_a, ["mapLoadingComponent", "dissolveEffectWhenLoaded", "mapType", "children", "base"]);
|
|
2357
2404
|
|
|
2358
|
-
var
|
|
2359
|
-
|
|
2360
|
-
|
|
2405
|
+
var loadingRef = React.useRef(null);
|
|
2406
|
+
|
|
2407
|
+
var _d = React.useState(),
|
|
2408
|
+
controller = _d[0],
|
|
2409
|
+
setController = _d[1];
|
|
2361
2410
|
|
|
2362
2411
|
var loading = React.useMemo(function () {
|
|
2363
|
-
return mapLoadingComponent ? mapLoadingComponent() : React__default["default"].createElement(
|
|
2364
|
-
text: "Loading"
|
|
2365
|
-
});
|
|
2412
|
+
return mapLoadingComponent ? mapLoadingComponent() : React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
2366
2413
|
}, [mapLoadingComponent]);
|
|
2367
2414
|
React.useEffect(function () {
|
|
2368
2415
|
if (mapType && mapType.length > 0) {
|
|
@@ -2394,28 +2441,56 @@
|
|
|
2394
2441
|
}, [mapType]);
|
|
2395
2442
|
return React__default["default"].createElement(React__default["default"].Fragment, null, controller ? React__default["default"].createElement(MintMapProvider, {
|
|
2396
2443
|
controller: controller
|
|
2397
|
-
}, React__default["default"].createElement(
|
|
2444
|
+
}, dissolveEffectWhenLoaded && React__default["default"].createElement("div", {
|
|
2445
|
+
className: cn$1('ani-fade-out'),
|
|
2446
|
+
style: {
|
|
2447
|
+
position: 'absolute',
|
|
2448
|
+
top: '0px',
|
|
2449
|
+
left: '0px',
|
|
2450
|
+
width: '100%',
|
|
2451
|
+
height: '100%',
|
|
2452
|
+
background: 'white',
|
|
2453
|
+
zIndex: 1000,
|
|
2454
|
+
animationFillMode: 'forwards',
|
|
2455
|
+
animationDuration: '0.7s'
|
|
2456
|
+
},
|
|
2457
|
+
onAnimationEnd: function (e) {
|
|
2458
|
+
e.target.style.display = 'none';
|
|
2459
|
+
}
|
|
2460
|
+
}), React__default["default"].createElement(MintMapCore, tslib.__assign({
|
|
2398
2461
|
mapType: mapType
|
|
2399
2462
|
}, props, {
|
|
2400
2463
|
base: base
|
|
2401
|
-
}), children)) : React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
2464
|
+
}), children)) : React__default["default"].createElement(React__default["default"].Fragment, null, dissolveEffectWhenLoaded && React__default["default"].createElement("div", {
|
|
2465
|
+
ref: function (refs) {
|
|
2466
|
+
loadingRef.current = refs;
|
|
2467
|
+
},
|
|
2468
|
+
style: {
|
|
2469
|
+
position: 'absolute',
|
|
2470
|
+
top: '0px',
|
|
2471
|
+
left: '0px',
|
|
2472
|
+
width: '100%',
|
|
2473
|
+
height: '100%',
|
|
2474
|
+
zIndex: 1000
|
|
2475
|
+
}
|
|
2476
|
+
}), loading));
|
|
2402
2477
|
}
|
|
2403
|
-
|
|
2404
2478
|
function PointLoading(_a) {
|
|
2405
|
-
var
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2479
|
+
var _b = _a.text,
|
|
2480
|
+
text = _b === void 0 ? 'Loading' : _b,
|
|
2481
|
+
_c = _a.pointCount,
|
|
2482
|
+
pointCount = _c === void 0 ? 4 : _c,
|
|
2483
|
+
_d = _a.speedMs,
|
|
2484
|
+
speedMs = _d === void 0 ? 200 : _d;
|
|
2410
2485
|
var pointStringPool = React.useState(Array.from(Array(pointCount)).map(function (_el, idx) {
|
|
2411
2486
|
return Array.from(Array(idx + 1)).map(function () {
|
|
2412
2487
|
return '.';
|
|
2413
2488
|
}).join('');
|
|
2414
2489
|
}))[0];
|
|
2415
2490
|
|
|
2416
|
-
var
|
|
2417
|
-
pointString =
|
|
2418
|
-
setPointString =
|
|
2491
|
+
var _e = React.useState(''),
|
|
2492
|
+
pointString = _e[0],
|
|
2493
|
+
setPointString = _e[1];
|
|
2419
2494
|
|
|
2420
2495
|
React.useEffect(function () {
|
|
2421
2496
|
var pointStringIndex = 0;
|
|
@@ -2444,6 +2519,202 @@
|
|
|
2444
2519
|
}
|
|
2445
2520
|
}, "".concat(text, " ").concat(pointString)));
|
|
2446
2521
|
}
|
|
2522
|
+
function MapLoadingWithImage(_a) {
|
|
2523
|
+
var _b = _a.size,
|
|
2524
|
+
size = _b === void 0 ? 256 : _b;
|
|
2525
|
+
|
|
2526
|
+
var _c = React.useState(),
|
|
2527
|
+
width = _c[0],
|
|
2528
|
+
setWidth = _c[1];
|
|
2529
|
+
|
|
2530
|
+
var _d = React.useState(),
|
|
2531
|
+
height = _d[0],
|
|
2532
|
+
setHeight = _d[1];
|
|
2533
|
+
|
|
2534
|
+
var render = React.useMemo(function () {
|
|
2535
|
+
if (!height || !width) {
|
|
2536
|
+
return;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
var row = Math.ceil(height / size);
|
|
2540
|
+
var col = Math.ceil(width / size);
|
|
2541
|
+
console.log('re render', width, height, row, col);
|
|
2542
|
+
return Array.from(Array(row)).map(function () {
|
|
2543
|
+
return React__default["default"].createElement("div", {
|
|
2544
|
+
style: {
|
|
2545
|
+
display: 'flex'
|
|
2546
|
+
}
|
|
2547
|
+
}, Array.from(Array(col)).map(function () {
|
|
2548
|
+
var duration = Number((Math.random() * 4).toFixed(1)) + 1;
|
|
2549
|
+
var delay = Number((Math.random() * 4).toFixed(1)) + 2;
|
|
2550
|
+
return React__default["default"].createElement(LoadingImage, {
|
|
2551
|
+
size: size,
|
|
2552
|
+
duration: duration,
|
|
2553
|
+
delay: delay
|
|
2554
|
+
});
|
|
2555
|
+
}));
|
|
2556
|
+
});
|
|
2557
|
+
}, [width, height]);
|
|
2558
|
+
return React__default["default"].createElement("div", {
|
|
2559
|
+
ref: function (refs) {
|
|
2560
|
+
setWidth(refs === null || refs === void 0 ? void 0 : refs.offsetWidth);
|
|
2561
|
+
setHeight(refs === null || refs === void 0 ? void 0 : refs.offsetHeight);
|
|
2562
|
+
},
|
|
2563
|
+
style: {
|
|
2564
|
+
width: '100%',
|
|
2565
|
+
height: '100%',
|
|
2566
|
+
overflow: 'hidden'
|
|
2567
|
+
}
|
|
2568
|
+
}, render);
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
function LoadingImage(_a) {
|
|
2572
|
+
var _b = _a.size,
|
|
2573
|
+
size = _b === void 0 ? 256 : _b,
|
|
2574
|
+
_c = _a.duration,
|
|
2575
|
+
duration = _c === void 0 ? 1 : _c,
|
|
2576
|
+
_d = _a.delay,
|
|
2577
|
+
delay = _d === void 0 ? 1 : _d;
|
|
2578
|
+
var scale = 256 / 4000;
|
|
2579
|
+
return React__default["default"].createElement("svg", {
|
|
2580
|
+
className: cn$1("ani-fade-in"),
|
|
2581
|
+
style: {
|
|
2582
|
+
flex: "0 0 ".concat(size, "px"),
|
|
2583
|
+
opacity: 0,
|
|
2584
|
+
animationDelay: "".concat(delay, "s"),
|
|
2585
|
+
animationDuration: "".concat(duration, "s"),
|
|
2586
|
+
animationFillMode: 'forwards'
|
|
2587
|
+
},
|
|
2588
|
+
width: size,
|
|
2589
|
+
height: size,
|
|
2590
|
+
viewBox: "0 0 ".concat(size, " ").concat(size),
|
|
2591
|
+
fill: "none",
|
|
2592
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2593
|
+
}, React__default["default"].createElement("g", {
|
|
2594
|
+
transform: "scale(".concat(scale, ")"),
|
|
2595
|
+
"clip-path": "url(#clip0_5_701)"
|
|
2596
|
+
}, React__default["default"].createElement("rect", {
|
|
2597
|
+
width: "4000",
|
|
2598
|
+
height: "4000",
|
|
2599
|
+
transform: "translate(0 4000) rotate(-90)",
|
|
2600
|
+
fill: "#F8F8F8"
|
|
2601
|
+
}), React__default["default"].createElement("path", {
|
|
2602
|
+
d: "M2996.5 780L3624 309L3928.5 789.5L3422 1080.5L2996.5 780Z",
|
|
2603
|
+
fill: "#E6E6E6"
|
|
2604
|
+
}), React__default["default"].createElement("path", {
|
|
2605
|
+
d: "M522.5 449.5L1156.5 48.4999L1197.5 64.4999L1502.5 485.5L822.5 918L522.5 449.5Z",
|
|
2606
|
+
fill: "#F6E4DD"
|
|
2607
|
+
}), React__default["default"].createElement("path", {
|
|
2608
|
+
d: "M1149.5 1386.5L2468 516L2931.5 1286.5L2966 1415L1650.5 2248L1149.5 1386.5Z",
|
|
2609
|
+
fill: "#DCEACA"
|
|
2610
|
+
}), React__default["default"].createElement("path", {
|
|
2611
|
+
d: "M1840.5 2838.5L2609 2313L3047.5 2599.5L3073.5 2745.5L2176.5 3311L1840.5 2838.5Z",
|
|
2612
|
+
fill: "#E6E6E6"
|
|
2613
|
+
}), React__default["default"].createElement("path", {
|
|
2614
|
+
d: "M594 3013.5L1080.5 2681.5L1744 3615L1162.5 4002.5L594 3013.5Z",
|
|
2615
|
+
fill: "#DCEACA"
|
|
2616
|
+
}), React__default["default"].createElement("path", {
|
|
2617
|
+
d: "M2094.05 1450.88C2127.97 1531.67 2192.23 1496.11 2250.02 1514.4C2567.73 1559.37 2608.68 1362.05 2668.2 1302.01C2736.79 1232.83 2612.15 1065.8 2523.28 1090.46C2434.42 1115.13 2432.96 1150.53 2415.25 1229.76C2397.53 1308.98 2233.45 1247.46 2177.4 1257.03C2121.35 1266.61 2051.65 1349.89 2094.05 1450.88Z",
|
|
2618
|
+
fill: "#A2CAEE"
|
|
2619
|
+
}), React__default["default"].createElement("circle", {
|
|
2620
|
+
cx: "958",
|
|
2621
|
+
cy: "3092",
|
|
2622
|
+
r: "95",
|
|
2623
|
+
fill: "#A2CAEE"
|
|
2624
|
+
}), React__default["default"].createElement("circle", {
|
|
2625
|
+
cx: "1127",
|
|
2626
|
+
cy: "3176",
|
|
2627
|
+
r: "56",
|
|
2628
|
+
fill: "#A2CAEE"
|
|
2629
|
+
}), React__default["default"].createElement("path", {
|
|
2630
|
+
"fill-rule": "evenodd",
|
|
2631
|
+
"clip-rule": "evenodd",
|
|
2632
|
+
d: "M3459.68 1085.96L4058.54 2069.19L4001.32 2104.04L3402.46 1120.82L3459.68 1085.96Z",
|
|
2633
|
+
fill: "white"
|
|
2634
|
+
}), React__default["default"].createElement("path", {
|
|
2635
|
+
"fill-rule": "evenodd",
|
|
2636
|
+
"clip-rule": "evenodd",
|
|
2637
|
+
d: "M-317.721 1447.99L595.333 2953.94L1201.76 4004.26L1143.74 4037.76L537.668 2988.06L-375.013 1482.72L-317.721 1447.99ZM1058.06 1406.15L1789.22 920.04L1109.17 -5.66436L1163.17 -45.3311L1844.92 882.695L2486.62 448.527L3047.72 1427.91L2989.59 1461.22L2464.38 544.474L1855.66 956.322L1855.55 956.398L1095.15 1461.94L1058.06 1406.15ZM1384.39 3114.5L2197.8 2552.05L1838.4 2105.93L1890.57 2063.9L2253.06 2513.84L2642 2244.89L2680.11 2300L1883.89 2850.56L2238.69 3352.52L2183.98 3391.19L1828.78 2888.67L1422.5 3169.61L1384.39 3114.5Z",
|
|
2638
|
+
fill: "white"
|
|
2639
|
+
}), React__default["default"].createElement("path", {
|
|
2640
|
+
"fill-rule": "evenodd",
|
|
2641
|
+
"clip-rule": "evenodd",
|
|
2642
|
+
d: "M-100.246 749.04L1266.96 -152.746L1346.25 -32.5396L-20.9597 869.247L-100.246 749.04Z",
|
|
2643
|
+
fill: "#FBEDB1"
|
|
2644
|
+
}), React__default["default"].createElement("path", {
|
|
2645
|
+
"fill-rule": "evenodd",
|
|
2646
|
+
"clip-rule": "evenodd",
|
|
2647
|
+
d: "M5229.83 1392.22L2830.78 2477.33L2803.17 2416.28L5202.22 1331.17L5229.83 1392.22Z",
|
|
2648
|
+
fill: "white"
|
|
2649
|
+
}), React__default["default"].createElement("path", {
|
|
2650
|
+
"fill-rule": "evenodd",
|
|
2651
|
+
"clip-rule": "evenodd",
|
|
2652
|
+
d: "M2486.94 449.315L3519.19 1097.44L3483.56 1154.18L2451.32 506.057L2486.94 449.315Z",
|
|
2653
|
+
fill: "white"
|
|
2654
|
+
}), React__default["default"].createElement("path", {
|
|
2655
|
+
"fill-rule": "evenodd",
|
|
2656
|
+
"clip-rule": "evenodd",
|
|
2657
|
+
d: "M2352.16 -273.141L2533.64 518.164L2468.34 533.141L2286.86 -258.164L2352.16 -273.141Z",
|
|
2658
|
+
fill: "white"
|
|
2659
|
+
}), React__default["default"].createElement("path", {
|
|
2660
|
+
"fill-rule": "evenodd",
|
|
2661
|
+
"clip-rule": "evenodd",
|
|
2662
|
+
d: "M2237.62 3336.43L2440.07 4086.61L2375.39 4104.07L2172.93 3353.89L2237.62 3336.43Z",
|
|
2663
|
+
fill: "white"
|
|
2664
|
+
}), React__default["default"].createElement("path", {
|
|
2665
|
+
"fill-rule": "evenodd",
|
|
2666
|
+
"clip-rule": "evenodd",
|
|
2667
|
+
d: "M1204.91 1396.51L-54.5055 1973.41L-82.4082 1912.49L1177.01 1335.59L1204.91 1396.51Z",
|
|
2668
|
+
fill: "white"
|
|
2669
|
+
}), React__default["default"].createElement("path", {
|
|
2670
|
+
"fill-rule": "evenodd",
|
|
2671
|
+
"clip-rule": "evenodd",
|
|
2672
|
+
d: "M2694.5 2950.14L4158.86 4928.5L4105.01 4968.36L2640.64 2990L2694.5 2950.14Z",
|
|
2673
|
+
fill: "white"
|
|
2674
|
+
}), React__default["default"].createElement("path", {
|
|
2675
|
+
"fill-rule": "evenodd",
|
|
2676
|
+
"clip-rule": "evenodd",
|
|
2677
|
+
d: "M3441.72 -42.6462L3995.65 846.725L3938.77 882.146L3384.85 -7.2254L3441.72 -42.6462Z",
|
|
2678
|
+
fill: "white"
|
|
2679
|
+
}), React__default["default"].createElement("path", {
|
|
2680
|
+
"fill-rule": "evenodd",
|
|
2681
|
+
"clip-rule": "evenodd",
|
|
2682
|
+
d: "M2282.81 3631.14L2925.81 3304.14L2956.19 3363.86L2313.19 3690.86L2282.81 3631.14Z",
|
|
2683
|
+
fill: "white"
|
|
2684
|
+
}), React__default["default"].createElement("path", {
|
|
2685
|
+
"fill-rule": "evenodd",
|
|
2686
|
+
"clip-rule": "evenodd",
|
|
2687
|
+
d: "M466.178 1695.89L522.822 1660.11L813.709 2120.58L1365.65 1773.15L1401.35 1829.85L849.492 2177.23L1140.32 2637.61L1083.68 2673.39L466.178 1695.89Z",
|
|
2688
|
+
fill: "white"
|
|
2689
|
+
}), React__default["default"].createElement("path", {
|
|
2690
|
+
"fill-rule": "evenodd",
|
|
2691
|
+
"clip-rule": "evenodd",
|
|
2692
|
+
d: "M790.24 914.745L1475.24 451.745L1512.76 507.255L827.76 970.255L790.24 914.745Z",
|
|
2693
|
+
fill: "white"
|
|
2694
|
+
}), React__default["default"].createElement("path", {
|
|
2695
|
+
"fill-rule": "evenodd",
|
|
2696
|
+
"clip-rule": "evenodd",
|
|
2697
|
+
d: "M3410.6 2192.45L2986.6 1469.45L3044.4 1435.55L3468.4 2158.55L3410.6 2192.45Z",
|
|
2698
|
+
fill: "white"
|
|
2699
|
+
}), React__default["default"].createElement("path", {
|
|
2700
|
+
"fill-rule": "evenodd",
|
|
2701
|
+
"clip-rule": "evenodd",
|
|
2702
|
+
d: "M3637.26 329.182L3012.26 803.682L2971.74 750.318L3596.74 275.818L3637.26 329.182Z",
|
|
2703
|
+
fill: "white"
|
|
2704
|
+
}), React__default["default"].createElement("path", {
|
|
2705
|
+
"fill-rule": "evenodd",
|
|
2706
|
+
"clip-rule": "evenodd",
|
|
2707
|
+
d: "M-102.531 3333.52L1563.16 2259.21L418.867 413.751L541.25 337.866L1684.19 2181.14L4025.32 666.934L4103.57 787.82L2336.63 1931.51L3187.41 2659.17L4104.73 3340.1L4018.9 3455.73L3139.75 2803.13L956.929 4221.62L878.381 4100.93L1666.1 3588.26L1086.77 2737.81L-24.4816 3454.53L-102.531 3333.52ZM1207.82 2659.74L1786.86 3509.76L3022.47 2707.58L2210.46 2013.07L1207.82 2659.74Z",
|
|
2708
|
+
fill: "#FBEDB1"
|
|
2709
|
+
})), React__default["default"].createElement("defs", null, React__default["default"].createElement("clipPath", {
|
|
2710
|
+
id: "clip0_5_701"
|
|
2711
|
+
}, React__default["default"].createElement("rect", {
|
|
2712
|
+
width: "4000",
|
|
2713
|
+
height: "4000",
|
|
2714
|
+
fill: "white",
|
|
2715
|
+
transform: "translate(0 4000) rotate(-90)"
|
|
2716
|
+
}))));
|
|
2717
|
+
}
|
|
2447
2718
|
|
|
2448
2719
|
var MintMapCanvasRenderer = function () {
|
|
2449
2720
|
function MintMapCanvasRenderer(context) {
|
|
@@ -3398,7 +3669,7 @@
|
|
|
3398
3669
|
var renderItemsOnView = React.useRef([]);
|
|
3399
3670
|
var renderItemsMouseOverStatus = React.useRef(new Set());
|
|
3400
3671
|
React.useEffect(function () {
|
|
3401
|
-
renderItems.current = (Array.isArray(children) ? children : [children]).map(function (item) {
|
|
3672
|
+
renderItems.current = (Array.isArray(children) ? children : children ? [children] : []).map(function (item) {
|
|
3402
3673
|
return item.props;
|
|
3403
3674
|
});
|
|
3404
3675
|
var zIndexList = [];
|
|
@@ -3497,6 +3768,7 @@
|
|
|
3497
3768
|
exports.MapCanvasMarkerWrapper = MapCanvasMarkerWrapper;
|
|
3498
3769
|
exports.MapCanvasWrapper = MapCanvasWrapper;
|
|
3499
3770
|
exports.MapControlWrapper = MapControlWrapper;
|
|
3771
|
+
exports.MapLoadingWithImage = MapLoadingWithImage;
|
|
3500
3772
|
exports.MapMarkerWrapper = MapMarkerWrapper;
|
|
3501
3773
|
exports.MapPolygonWrapper = MapPolygonWrapper;
|
|
3502
3774
|
exports.MapPolylineWrapper = MapPolylineWrapper;
|
|
@@ -3508,6 +3780,7 @@
|
|
|
3508
3780
|
exports.MintMapProvider = MintMapProvider;
|
|
3509
3781
|
exports.NaverMintMapController = NaverMintMapController;
|
|
3510
3782
|
exports.Offset = Offset;
|
|
3783
|
+
exports.PointLoading = PointLoading;
|
|
3511
3784
|
exports.Polygon = Polygon;
|
|
3512
3785
|
exports.PolygonCalculator = PolygonCalculator;
|
|
3513
3786
|
exports.Polyline = Polyline;
|