@mint-ui/map 0.7.2-beta → 0.7.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/.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 +69 -66
- package/dist/components/mint-map/core/MintMapController.js +62 -10
- 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 +19 -19
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +51 -51
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +6 -6
- 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 +53 -51
- package/dist/components/mint-map/google/GoogleMintMapController.js +17 -6
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +57 -55
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +22 -13
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +55 -53
- package/dist/components/mint-map/naver/NaverMintMapController.js +20 -11
- 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 +106 -101
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +195 -114
- package/dist/index.umd.js +195 -114
- package/package.json +77 -77
package/dist/index.es.js
CHANGED
|
@@ -473,23 +473,23 @@ function () {
|
|
|
473
473
|
return PolygonCalculator;
|
|
474
474
|
}();
|
|
475
475
|
|
|
476
|
-
/**
|
|
477
|
-
* 좌표값
|
|
478
|
-
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
476
|
+
/**
|
|
477
|
+
* 좌표값
|
|
478
|
+
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
479
479
|
*/
|
|
480
480
|
|
|
481
481
|
var Position =
|
|
482
482
|
/** @class */
|
|
483
483
|
function () {
|
|
484
484
|
function Position(lat, lng) {
|
|
485
|
-
/**
|
|
486
|
-
* 위도
|
|
487
|
-
* @description 위도(latitude)
|
|
485
|
+
/**
|
|
486
|
+
* 위도
|
|
487
|
+
* @description 위도(latitude)
|
|
488
488
|
*/
|
|
489
489
|
this.lat = 0;
|
|
490
|
-
/**
|
|
491
|
-
* 경도
|
|
492
|
-
* @description 경도(longitude)
|
|
490
|
+
/**
|
|
491
|
+
* 경도
|
|
492
|
+
* @description 경도(longitude)
|
|
493
493
|
*/
|
|
494
494
|
|
|
495
495
|
this.lng = 0;
|
|
@@ -597,15 +597,15 @@ function () {
|
|
|
597
597
|
|
|
598
598
|
return Bounds;
|
|
599
599
|
}();
|
|
600
|
-
/**
|
|
601
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
600
|
+
/**
|
|
601
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
602
602
|
*/
|
|
603
603
|
|
|
604
604
|
var Offset =
|
|
605
605
|
/** @class */
|
|
606
606
|
function () {
|
|
607
|
-
/**
|
|
608
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
607
|
+
/**
|
|
608
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
609
609
|
*/
|
|
610
610
|
function Offset(x, y) {
|
|
611
611
|
this.x = x;
|
|
@@ -1136,12 +1136,12 @@ function () {
|
|
|
1136
1136
|
MintMapController.prototype.getRandomFunctionName = function (prefix) {
|
|
1137
1137
|
return "".concat(prefix, "_").concat(v4().replace(/-/g, '_'));
|
|
1138
1138
|
};
|
|
1139
|
-
/**
|
|
1140
|
-
* URL 빌더 메서드
|
|
1141
|
-
*
|
|
1142
|
-
* @param {string} baseUrl: 기본 URL
|
|
1143
|
-
* @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
|
|
1144
|
-
* @returns {string} URL
|
|
1139
|
+
/**
|
|
1140
|
+
* URL 빌더 메서드
|
|
1141
|
+
*
|
|
1142
|
+
* @param {string} baseUrl: 기본 URL
|
|
1143
|
+
* @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
|
|
1144
|
+
* @returns {string} URL
|
|
1145
1145
|
*/
|
|
1146
1146
|
|
|
1147
1147
|
|
|
@@ -1154,9 +1154,9 @@ function () {
|
|
|
1154
1154
|
}).join('&');
|
|
1155
1155
|
return "".concat(baseUrl, "?").concat(params);
|
|
1156
1156
|
};
|
|
1157
|
-
/**
|
|
1158
|
-
* 쓰로틀링 처리
|
|
1159
|
-
* @returns
|
|
1157
|
+
/**
|
|
1158
|
+
* 쓰로틀링 처리
|
|
1159
|
+
* @returns
|
|
1160
1160
|
*/
|
|
1161
1161
|
|
|
1162
1162
|
|
|
@@ -1197,6 +1197,58 @@ function () {
|
|
|
1197
1197
|
throw new Error("[getMapToBaseZoom][".concat(mapZoom, "] is not valid zoom level"));
|
|
1198
1198
|
};
|
|
1199
1199
|
|
|
1200
|
+
MintMapController.prototype.focusPositionsToFitViewport = function (positions) {
|
|
1201
|
+
var map = this; // positions 바운더리 구하기
|
|
1202
|
+
|
|
1203
|
+
var markerBounds = PolygonCalculator.getRegionInfo(positions);
|
|
1204
|
+
|
|
1205
|
+
if (!markerBounds.centerLat || !markerBounds.centerLng || !markerBounds.minLat || !markerBounds.maxLat || !markerBounds.minLng || !markerBounds.maxLng) {
|
|
1206
|
+
return;
|
|
1207
|
+
} // 이동해야할 센터 좌표
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
var toCenter = new Position(markerBounds.centerLat, markerBounds.centerLng); // 센터로 이동
|
|
1211
|
+
|
|
1212
|
+
map.setCenter(toCenter); // positions 바운더리의 폴리곤 값
|
|
1213
|
+
|
|
1214
|
+
var markerBoundsToPolygon = [new Position(markerBounds.minLat, markerBounds.minLng), new Position(markerBounds.minLat, markerBounds.maxLng), new Position(markerBounds.maxLat, markerBounds.maxLng), new Position(markerBounds.maxLat, markerBounds.minLng)]; // 적정 줌레벨 구하기
|
|
1215
|
+
|
|
1216
|
+
var zoomLevelResult = map.getZoomLevel();
|
|
1217
|
+
var currZoomLevel = zoomLevelResult;
|
|
1218
|
+
var iterCnt = 0;
|
|
1219
|
+
var direction = undefined;
|
|
1220
|
+
|
|
1221
|
+
while (iterCnt < 23) {
|
|
1222
|
+
//최대 줌레벨 갯수 만큼만 반복...
|
|
1223
|
+
iterCnt += 1; // 줌 레벨 변경
|
|
1224
|
+
|
|
1225
|
+
map.setZoomLevel(currZoomLevel); // 현재 바운더리 구하기
|
|
1226
|
+
|
|
1227
|
+
var mapBounds = map.getCurrBounds(); // 현재 맵에 바운더리 포함된다면 줌레벨 더해서 반복 체크
|
|
1228
|
+
|
|
1229
|
+
if (mapBounds.includes(markerBoundsToPolygon)) {
|
|
1230
|
+
if (direction === '-') {
|
|
1231
|
+
// 직전에 이미 빼고있는 상태였다면 여기서 종료
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
direction = '+';
|
|
1236
|
+
currZoomLevel += 1;
|
|
1237
|
+
} else {
|
|
1238
|
+
// 포함되지 않으면
|
|
1239
|
+
if (direction === '+') {
|
|
1240
|
+
// 직전에 이미 더한 상태였다면 직전 줌레벨로 종료
|
|
1241
|
+
currZoomLevel -= 1;
|
|
1242
|
+
map.setZoomLevel(currZoomLevel);
|
|
1243
|
+
break;
|
|
1244
|
+
} else {
|
|
1245
|
+
direction = '-';
|
|
1246
|
+
currZoomLevel -= 1;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1200
1252
|
MintMapController.prototype.printStatus = function () {
|
|
1201
1253
|
Status.print();
|
|
1202
1254
|
};
|
|
@@ -1698,11 +1750,11 @@ function (_super) {
|
|
|
1698
1750
|
var map = marker.native.getMap();
|
|
1699
1751
|
|
|
1700
1752
|
if (map) {
|
|
1701
|
-
/** 중요!!!!
|
|
1702
|
-
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1703
|
-
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1704
|
-
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1705
|
-
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1753
|
+
/** 중요!!!!
|
|
1754
|
+
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1755
|
+
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1756
|
+
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1757
|
+
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1706
1758
|
*/
|
|
1707
1759
|
//Position
|
|
1708
1760
|
if (options.position && options.position instanceof Position) {
|
|
@@ -1900,10 +1952,10 @@ function (_super) {
|
|
|
1900
1952
|
|
|
1901
1953
|
var _this = this;
|
|
1902
1954
|
|
|
1903
|
-
var _a, _b, _c, _d;
|
|
1955
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1904
1956
|
|
|
1905
|
-
return __generator(this, function (
|
|
1906
|
-
switch (
|
|
1957
|
+
return __generator(this, function (_g) {
|
|
1958
|
+
switch (_g.label) {
|
|
1907
1959
|
case 0:
|
|
1908
1960
|
//이미 생성했으면
|
|
1909
1961
|
//1. divElement 가 그대로인 경우 기존 map 객체 리턴
|
|
@@ -1927,9 +1979,9 @@ function (_super) {
|
|
|
1927
1979
|
, this.loadMapApi()];
|
|
1928
1980
|
|
|
1929
1981
|
case 1:
|
|
1930
|
-
|
|
1982
|
+
_g.sent();
|
|
1931
1983
|
|
|
1932
|
-
|
|
1984
|
+
_g.label = 2;
|
|
1933
1985
|
|
|
1934
1986
|
case 2:
|
|
1935
1987
|
options = {
|
|
@@ -1962,7 +2014,9 @@ function (_super) {
|
|
|
1962
2014
|
options.maxZoom = maxZoom;
|
|
1963
2015
|
divElement.innerHTML = '';
|
|
1964
2016
|
map = new naver.maps.Map(divElement, options);
|
|
1965
|
-
this.map = map;
|
|
2017
|
+
this.map = map; //맵 커서 초기화
|
|
2018
|
+
|
|
2019
|
+
((_e = this.mapProps.base) === null || _e === void 0 ? void 0 : _e.mapCursor) && this.setMapCursor((_f = this.mapProps.base) === null || _f === void 0 ? void 0 : _f.mapCursor); //@ts-ignore
|
|
1966
2020
|
|
|
1967
2021
|
map.addListener('mousedown', function () {
|
|
1968
2022
|
_this.dragged = false; // console.log('map mousedown / dragged => ', this.dragged);
|
|
@@ -2077,6 +2131,13 @@ function (_super) {
|
|
|
2077
2131
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(position);
|
|
2078
2132
|
};
|
|
2079
2133
|
|
|
2134
|
+
NaverMintMapController.prototype.setMapCursor = function (cursor) {
|
|
2135
|
+
var _a;
|
|
2136
|
+
|
|
2137
|
+
var target = (_a = this.mapDivElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
2138
|
+
target && (target.style.cursor = cursor);
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2080
2141
|
NaverMintMapController.prototype.naverPositionToOffset = function (position) {
|
|
2081
2142
|
if (!this.map) {
|
|
2082
2143
|
return new Offset(0, 0);
|
|
@@ -2612,10 +2673,10 @@ function (_super) {
|
|
|
2612
2673
|
|
|
2613
2674
|
var _this = this;
|
|
2614
2675
|
|
|
2615
|
-
var _a, _b, _c, _d;
|
|
2676
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2616
2677
|
|
|
2617
|
-
return __generator(this, function (
|
|
2618
|
-
switch (
|
|
2678
|
+
return __generator(this, function (_g) {
|
|
2679
|
+
switch (_g.label) {
|
|
2619
2680
|
case 0:
|
|
2620
2681
|
//이미 생성했으면
|
|
2621
2682
|
//1. divElement 가 그대로인 경우 기존 map 객체 리턴
|
|
@@ -2637,9 +2698,9 @@ function (_super) {
|
|
|
2637
2698
|
, this.loadMapApi()];
|
|
2638
2699
|
|
|
2639
2700
|
case 1:
|
|
2640
|
-
|
|
2701
|
+
_g.sent();
|
|
2641
2702
|
|
|
2642
|
-
|
|
2703
|
+
_g.label = 2;
|
|
2643
2704
|
|
|
2644
2705
|
case 2:
|
|
2645
2706
|
map = new google.maps.Map(divElement, {
|
|
@@ -2653,7 +2714,9 @@ function (_super) {
|
|
|
2653
2714
|
keyboardShortcuts: this.mapProps.keyboardShortcuts === false ? false : true,
|
|
2654
2715
|
clickableIcons: false
|
|
2655
2716
|
});
|
|
2656
|
-
this.map = map;
|
|
2717
|
+
this.map = map; //맵 커서 초기화
|
|
2718
|
+
|
|
2719
|
+
((_e = this.mapProps.base) === null || _e === void 0 ? void 0 : _e.mapCursor) && this.setMapCursor((_f = this.mapProps.base) === null || _f === void 0 ? void 0 : _f.mapCursor); //@ts-ignore
|
|
2657
2720
|
|
|
2658
2721
|
map.addListener('mousedown', function () {
|
|
2659
2722
|
_this.dragged = false; // console.log('map mousedown / dragged => ', this.dragged);
|
|
@@ -2762,6 +2825,15 @@ function (_super) {
|
|
|
2762
2825
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(position);
|
|
2763
2826
|
};
|
|
2764
2827
|
|
|
2828
|
+
GoogleMintMapController.prototype.setMapCursor = function (cursor) {
|
|
2829
|
+
var _a;
|
|
2830
|
+
|
|
2831
|
+
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setOptions({
|
|
2832
|
+
draggingCursor: cursor,
|
|
2833
|
+
draggableCursor: cursor
|
|
2834
|
+
});
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2765
2837
|
GoogleMintMapController.prototype.addEventListener = function (eventName, callback) {
|
|
2766
2838
|
var _this = this;
|
|
2767
2839
|
|
|
@@ -3307,10 +3379,10 @@ function (_super) {
|
|
|
3307
3379
|
|
|
3308
3380
|
var _this = this;
|
|
3309
3381
|
|
|
3310
|
-
var _a, _b, _c, _d;
|
|
3382
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3311
3383
|
|
|
3312
|
-
return __generator(this, function (
|
|
3313
|
-
switch (
|
|
3384
|
+
return __generator(this, function (_g) {
|
|
3385
|
+
switch (_g.label) {
|
|
3314
3386
|
case 0:
|
|
3315
3387
|
if (!!this.mapApiLoaded) return [3
|
|
3316
3388
|
/*break*/
|
|
@@ -3320,9 +3392,9 @@ function (_super) {
|
|
|
3320
3392
|
, this.loadMapApi()];
|
|
3321
3393
|
|
|
3322
3394
|
case 1:
|
|
3323
|
-
|
|
3395
|
+
_g.sent();
|
|
3324
3396
|
|
|
3325
|
-
|
|
3397
|
+
_g.label = 2;
|
|
3326
3398
|
|
|
3327
3399
|
case 2:
|
|
3328
3400
|
options = {
|
|
@@ -3351,7 +3423,9 @@ function (_super) {
|
|
|
3351
3423
|
map = new kakao.maps.Map(divElement, options);
|
|
3352
3424
|
map.setMaxLevel(minZoom);
|
|
3353
3425
|
map.setMinLevel(maxZoom);
|
|
3354
|
-
this.map = map;
|
|
3426
|
+
this.map = map; //맵 커서 초기화
|
|
3427
|
+
|
|
3428
|
+
((_e = this.mapProps.base) === null || _e === void 0 ? void 0 : _e.mapCursor) && this.setMapCursor((_f = this.mapProps.base) === null || _f === void 0 ? void 0 : _f.mapCursor); //@ts-ignore
|
|
3355
3429
|
// map.addListener('dragstart', (e)=>{
|
|
3356
3430
|
// //console.log('map dragstart', e);
|
|
3357
3431
|
// this.dragStartPoint[0] = e.domEvent.clientX
|
|
@@ -3420,13 +3494,13 @@ function (_super) {
|
|
|
3420
3494
|
};
|
|
3421
3495
|
|
|
3422
3496
|
KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
|
|
3423
|
-
/**
|
|
3424
|
-
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3425
|
-
* - 가장 확대된 값 : 1
|
|
3426
|
-
* - 가장 축소된 값 : 14
|
|
3427
|
-
*
|
|
3428
|
-
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3429
|
-
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3497
|
+
/**
|
|
3498
|
+
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3499
|
+
* - 가장 확대된 값 : 1
|
|
3500
|
+
* - 가장 축소된 값 : 14
|
|
3501
|
+
*
|
|
3502
|
+
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3503
|
+
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3430
3504
|
*/
|
|
3431
3505
|
var mapValue = this.getBaseToMapZoom(value);
|
|
3432
3506
|
|
|
@@ -3486,6 +3560,13 @@ function (_super) {
|
|
|
3486
3560
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(this.positionToLatLng(position));
|
|
3487
3561
|
};
|
|
3488
3562
|
|
|
3563
|
+
KakaoMintMapController.prototype.setMapCursor = function (cursor) {
|
|
3564
|
+
var _a;
|
|
3565
|
+
|
|
3566
|
+
var target = (_a = this.mapDivElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
3567
|
+
target && (target.style.cursor = cursor);
|
|
3568
|
+
};
|
|
3569
|
+
|
|
3489
3570
|
KakaoMintMapController.prototype.positionToLatLng = function (pos) {
|
|
3490
3571
|
return pos ? new kakao.maps.LatLng(pos.lat, pos.lng) : new kakao.maps.LatLng(0, 0);
|
|
3491
3572
|
};
|
|
@@ -3611,12 +3692,12 @@ var DEFAULT_CENTER = {
|
|
|
3611
3692
|
lat: 37.5036845,
|
|
3612
3693
|
lng: 127.0448698
|
|
3613
3694
|
};
|
|
3614
|
-
/**
|
|
3615
|
-
* Mint Map 컴포넌트
|
|
3616
|
-
*
|
|
3617
|
-
* @param {MintMapProps} MintMapProps
|
|
3618
|
-
*
|
|
3619
|
-
* @returns {JSX.Element} JSX
|
|
3695
|
+
/**
|
|
3696
|
+
* Mint Map 컴포넌트
|
|
3697
|
+
*
|
|
3698
|
+
* @param {MintMapProps} MintMapProps
|
|
3699
|
+
*
|
|
3700
|
+
* @returns {JSX.Element} JSX
|
|
3620
3701
|
*/
|
|
3621
3702
|
|
|
3622
3703
|
function MintMap(_a) {
|
|
@@ -3778,8 +3859,8 @@ var Marker =
|
|
|
3778
3859
|
/** @class */
|
|
3779
3860
|
function (_super) {
|
|
3780
3861
|
__extends(Marker, _super);
|
|
3781
|
-
/**
|
|
3782
|
-
* 지도에 표시할 마커정보
|
|
3862
|
+
/**
|
|
3863
|
+
* 지도에 표시할 마커정보
|
|
3783
3864
|
*/
|
|
3784
3865
|
|
|
3785
3866
|
|
|
@@ -3797,8 +3878,8 @@ var Polyline =
|
|
|
3797
3878
|
/** @class */
|
|
3798
3879
|
function (_super) {
|
|
3799
3880
|
__extends(Polyline, _super);
|
|
3800
|
-
/**
|
|
3801
|
-
* 지도에 표시할 폴리곤정보
|
|
3881
|
+
/**
|
|
3882
|
+
* 지도에 표시할 폴리곤정보
|
|
3802
3883
|
*/
|
|
3803
3884
|
|
|
3804
3885
|
|
|
@@ -3816,8 +3897,8 @@ var Polygon =
|
|
|
3816
3897
|
/** @class */
|
|
3817
3898
|
function (_super) {
|
|
3818
3899
|
__extends(Polygon, _super);
|
|
3819
|
-
/**
|
|
3820
|
-
* 지도에 표시할 폴리곤정보
|
|
3900
|
+
/**
|
|
3901
|
+
* 지도에 표시할 폴리곤정보
|
|
3821
3902
|
*/
|
|
3822
3903
|
|
|
3823
3904
|
|
|
@@ -3827,8 +3908,8 @@ function (_super) {
|
|
|
3827
3908
|
_this.options = options;
|
|
3828
3909
|
return _this;
|
|
3829
3910
|
}
|
|
3830
|
-
/**
|
|
3831
|
-
* 폴리곤의 중점을 구한다.
|
|
3911
|
+
/**
|
|
3912
|
+
* 폴리곤의 중점을 구한다.
|
|
3832
3913
|
*/
|
|
3833
3914
|
|
|
3834
3915
|
|
|
@@ -4248,12 +4329,12 @@ var getMarkersFitPosition = function (containerPosition, containerSize, markerPo
|
|
|
4248
4329
|
|
|
4249
4330
|
return 0;
|
|
4250
4331
|
};
|
|
4251
|
-
/**
|
|
4252
|
-
* Mint Map 컴포넌트
|
|
4253
|
-
*
|
|
4254
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4255
|
-
*
|
|
4256
|
-
* @returns {JSX.Element} JSX
|
|
4332
|
+
/**
|
|
4333
|
+
* Mint Map 컴포넌트
|
|
4334
|
+
*
|
|
4335
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4336
|
+
*
|
|
4337
|
+
* @returns {JSX.Element} JSX
|
|
4257
4338
|
*/
|
|
4258
4339
|
|
|
4259
4340
|
|
|
@@ -4423,12 +4504,12 @@ function MapMarkerWrapper(_a) {
|
|
|
4423
4504
|
return createPortal(children, divElement);
|
|
4424
4505
|
}
|
|
4425
4506
|
|
|
4426
|
-
/**
|
|
4427
|
-
* CircleMarker
|
|
4428
|
-
*
|
|
4429
|
-
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4430
|
-
*
|
|
4431
|
-
* @returns {JSX.Element} JSX
|
|
4507
|
+
/**
|
|
4508
|
+
* CircleMarker
|
|
4509
|
+
*
|
|
4510
|
+
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4511
|
+
*
|
|
4512
|
+
* @returns {JSX.Element} JSX
|
|
4432
4513
|
*/
|
|
4433
4514
|
|
|
4434
4515
|
function CircleMarker(_a) {
|
|
@@ -4544,12 +4625,12 @@ function CircleMarker(_a) {
|
|
|
4544
4625
|
}, children)));
|
|
4545
4626
|
}
|
|
4546
4627
|
|
|
4547
|
-
/**
|
|
4548
|
-
*PolygonMarker
|
|
4549
|
-
*
|
|
4550
|
-
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4551
|
-
*
|
|
4552
|
-
* @returns {JSX.Element} JSX
|
|
4628
|
+
/**
|
|
4629
|
+
*PolygonMarker
|
|
4630
|
+
*
|
|
4631
|
+
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4632
|
+
*
|
|
4633
|
+
* @returns {JSX.Element} JSX
|
|
4553
4634
|
*/
|
|
4554
4635
|
|
|
4555
4636
|
function PolygonMarker(_a) {
|
|
@@ -4718,12 +4799,12 @@ function PolygonMarker(_a) {
|
|
|
4718
4799
|
}, children)));
|
|
4719
4800
|
}
|
|
4720
4801
|
|
|
4721
|
-
/**
|
|
4722
|
-
* Mint Map 컴포넌트
|
|
4723
|
-
*
|
|
4724
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4725
|
-
*
|
|
4726
|
-
* @returns {JSX.Element} JSX
|
|
4802
|
+
/**
|
|
4803
|
+
* Mint Map 컴포넌트
|
|
4804
|
+
*
|
|
4805
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4806
|
+
*
|
|
4807
|
+
* @returns {JSX.Element} JSX
|
|
4727
4808
|
*/
|
|
4728
4809
|
|
|
4729
4810
|
function MapPolygonWrapper(_a) {
|
|
@@ -5169,12 +5250,12 @@ var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-m
|
|
|
5169
5250
|
styleInject(css_248z);
|
|
5170
5251
|
|
|
5171
5252
|
var cn = classNames.bind(styles);
|
|
5172
|
-
/**
|
|
5173
|
-
* Mint Map 컴포넌트
|
|
5174
|
-
*
|
|
5175
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5176
|
-
*
|
|
5177
|
-
* @returns {JSX.Element} JSX
|
|
5253
|
+
/**
|
|
5254
|
+
* Mint Map 컴포넌트
|
|
5255
|
+
*
|
|
5256
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5257
|
+
*
|
|
5258
|
+
* @returns {JSX.Element} JSX
|
|
5178
5259
|
*/
|
|
5179
5260
|
|
|
5180
5261
|
function MapControlWrapper(_a) {
|
|
@@ -5204,12 +5285,12 @@ function MapControlWrapper(_a) {
|
|
|
5204
5285
|
}, children));
|
|
5205
5286
|
}
|
|
5206
5287
|
|
|
5207
|
-
/**
|
|
5208
|
-
* Mint Map 컴포넌트
|
|
5209
|
-
*
|
|
5210
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5211
|
-
*
|
|
5212
|
-
* @returns {JSX.Element} JSX
|
|
5288
|
+
/**
|
|
5289
|
+
* Mint Map 컴포넌트
|
|
5290
|
+
*
|
|
5291
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5292
|
+
*
|
|
5293
|
+
* @returns {JSX.Element} JSX
|
|
5213
5294
|
*/
|
|
5214
5295
|
|
|
5215
5296
|
function MapPolylineWrapper(_a) {
|
|
@@ -5250,12 +5331,12 @@ var console$1 = {
|
|
|
5250
5331
|
log: function () {
|
|
5251
5332
|
}
|
|
5252
5333
|
};
|
|
5253
|
-
/**
|
|
5254
|
-
* Mint Map 컴포넌트
|
|
5255
|
-
*
|
|
5256
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5257
|
-
*
|
|
5258
|
-
* @returns {JSX.Element} JSX
|
|
5334
|
+
/**
|
|
5335
|
+
* Mint Map 컴포넌트
|
|
5336
|
+
*
|
|
5337
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5338
|
+
*
|
|
5339
|
+
* @returns {JSX.Element} JSX
|
|
5259
5340
|
*/
|
|
5260
5341
|
|
|
5261
5342
|
function MapCanvasWrapper(_a) {
|
|
@@ -5574,12 +5655,12 @@ function MapCanvasWrapper(_a) {
|
|
|
5574
5655
|
}), renderFlag && React.createElement(React.Fragment, null));
|
|
5575
5656
|
}
|
|
5576
5657
|
|
|
5577
|
-
/**
|
|
5578
|
-
* Mint Map 컴포넌트
|
|
5579
|
-
*
|
|
5580
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5581
|
-
*
|
|
5582
|
-
* @returns {JSX.Element} JSX
|
|
5658
|
+
/**
|
|
5659
|
+
* Mint Map 컴포넌트
|
|
5660
|
+
*
|
|
5661
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5662
|
+
*
|
|
5663
|
+
* @returns {JSX.Element} JSX
|
|
5583
5664
|
*/
|
|
5584
5665
|
|
|
5585
5666
|
function MapCanvasMarkerWrapper(_props) {
|