@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.umd.js
CHANGED
|
@@ -477,23 +477,23 @@
|
|
|
477
477
|
return PolygonCalculator;
|
|
478
478
|
}();
|
|
479
479
|
|
|
480
|
-
/**
|
|
481
|
-
* 좌표값
|
|
482
|
-
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
480
|
+
/**
|
|
481
|
+
* 좌표값
|
|
482
|
+
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
483
483
|
*/
|
|
484
484
|
|
|
485
485
|
var Position =
|
|
486
486
|
/** @class */
|
|
487
487
|
function () {
|
|
488
488
|
function Position(lat, lng) {
|
|
489
|
-
/**
|
|
490
|
-
* 위도
|
|
491
|
-
* @description 위도(latitude)
|
|
489
|
+
/**
|
|
490
|
+
* 위도
|
|
491
|
+
* @description 위도(latitude)
|
|
492
492
|
*/
|
|
493
493
|
this.lat = 0;
|
|
494
|
-
/**
|
|
495
|
-
* 경도
|
|
496
|
-
* @description 경도(longitude)
|
|
494
|
+
/**
|
|
495
|
+
* 경도
|
|
496
|
+
* @description 경도(longitude)
|
|
497
497
|
*/
|
|
498
498
|
|
|
499
499
|
this.lng = 0;
|
|
@@ -601,15 +601,15 @@
|
|
|
601
601
|
|
|
602
602
|
return Bounds;
|
|
603
603
|
}();
|
|
604
|
-
/**
|
|
605
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
604
|
+
/**
|
|
605
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
606
606
|
*/
|
|
607
607
|
|
|
608
608
|
var Offset =
|
|
609
609
|
/** @class */
|
|
610
610
|
function () {
|
|
611
|
-
/**
|
|
612
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
611
|
+
/**
|
|
612
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
613
613
|
*/
|
|
614
614
|
function Offset(x, y) {
|
|
615
615
|
this.x = x;
|
|
@@ -1140,12 +1140,12 @@
|
|
|
1140
1140
|
MintMapController.prototype.getRandomFunctionName = function (prefix) {
|
|
1141
1141
|
return "".concat(prefix, "_").concat(uuid.v4().replace(/-/g, '_'));
|
|
1142
1142
|
};
|
|
1143
|
-
/**
|
|
1144
|
-
* URL 빌더 메서드
|
|
1145
|
-
*
|
|
1146
|
-
* @param {string} baseUrl: 기본 URL
|
|
1147
|
-
* @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
|
|
1148
|
-
* @returns {string} URL
|
|
1143
|
+
/**
|
|
1144
|
+
* URL 빌더 메서드
|
|
1145
|
+
*
|
|
1146
|
+
* @param {string} baseUrl: 기본 URL
|
|
1147
|
+
* @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
|
|
1148
|
+
* @returns {string} URL
|
|
1149
1149
|
*/
|
|
1150
1150
|
|
|
1151
1151
|
|
|
@@ -1158,9 +1158,9 @@
|
|
|
1158
1158
|
}).join('&');
|
|
1159
1159
|
return "".concat(baseUrl, "?").concat(params);
|
|
1160
1160
|
};
|
|
1161
|
-
/**
|
|
1162
|
-
* 쓰로틀링 처리
|
|
1163
|
-
* @returns
|
|
1161
|
+
/**
|
|
1162
|
+
* 쓰로틀링 처리
|
|
1163
|
+
* @returns
|
|
1164
1164
|
*/
|
|
1165
1165
|
|
|
1166
1166
|
|
|
@@ -1201,6 +1201,58 @@
|
|
|
1201
1201
|
throw new Error("[getMapToBaseZoom][".concat(mapZoom, "] is not valid zoom level"));
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
1204
|
+
MintMapController.prototype.focusPositionsToFitViewport = function (positions) {
|
|
1205
|
+
var map = this; // positions 바운더리 구하기
|
|
1206
|
+
|
|
1207
|
+
var markerBounds = PolygonCalculator.getRegionInfo(positions);
|
|
1208
|
+
|
|
1209
|
+
if (!markerBounds.centerLat || !markerBounds.centerLng || !markerBounds.minLat || !markerBounds.maxLat || !markerBounds.minLng || !markerBounds.maxLng) {
|
|
1210
|
+
return;
|
|
1211
|
+
} // 이동해야할 센터 좌표
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
var toCenter = new Position(markerBounds.centerLat, markerBounds.centerLng); // 센터로 이동
|
|
1215
|
+
|
|
1216
|
+
map.setCenter(toCenter); // positions 바운더리의 폴리곤 값
|
|
1217
|
+
|
|
1218
|
+
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)]; // 적정 줌레벨 구하기
|
|
1219
|
+
|
|
1220
|
+
var zoomLevelResult = map.getZoomLevel();
|
|
1221
|
+
var currZoomLevel = zoomLevelResult;
|
|
1222
|
+
var iterCnt = 0;
|
|
1223
|
+
var direction = undefined;
|
|
1224
|
+
|
|
1225
|
+
while (iterCnt < 23) {
|
|
1226
|
+
//최대 줌레벨 갯수 만큼만 반복...
|
|
1227
|
+
iterCnt += 1; // 줌 레벨 변경
|
|
1228
|
+
|
|
1229
|
+
map.setZoomLevel(currZoomLevel); // 현재 바운더리 구하기
|
|
1230
|
+
|
|
1231
|
+
var mapBounds = map.getCurrBounds(); // 현재 맵에 바운더리 포함된다면 줌레벨 더해서 반복 체크
|
|
1232
|
+
|
|
1233
|
+
if (mapBounds.includes(markerBoundsToPolygon)) {
|
|
1234
|
+
if (direction === '-') {
|
|
1235
|
+
// 직전에 이미 빼고있는 상태였다면 여기서 종료
|
|
1236
|
+
break;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
direction = '+';
|
|
1240
|
+
currZoomLevel += 1;
|
|
1241
|
+
} else {
|
|
1242
|
+
// 포함되지 않으면
|
|
1243
|
+
if (direction === '+') {
|
|
1244
|
+
// 직전에 이미 더한 상태였다면 직전 줌레벨로 종료
|
|
1245
|
+
currZoomLevel -= 1;
|
|
1246
|
+
map.setZoomLevel(currZoomLevel);
|
|
1247
|
+
break;
|
|
1248
|
+
} else {
|
|
1249
|
+
direction = '-';
|
|
1250
|
+
currZoomLevel -= 1;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1204
1256
|
MintMapController.prototype.printStatus = function () {
|
|
1205
1257
|
Status.print();
|
|
1206
1258
|
};
|
|
@@ -1702,11 +1754,11 @@
|
|
|
1702
1754
|
var map = marker.native.getMap();
|
|
1703
1755
|
|
|
1704
1756
|
if (map) {
|
|
1705
|
-
/** 중요!!!!
|
|
1706
|
-
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1707
|
-
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1708
|
-
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1709
|
-
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1757
|
+
/** 중요!!!!
|
|
1758
|
+
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1759
|
+
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1760
|
+
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1761
|
+
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1710
1762
|
*/
|
|
1711
1763
|
//Position
|
|
1712
1764
|
if (options.position && options.position instanceof Position) {
|
|
@@ -1904,10 +1956,10 @@
|
|
|
1904
1956
|
|
|
1905
1957
|
var _this = this;
|
|
1906
1958
|
|
|
1907
|
-
var _a, _b, _c, _d;
|
|
1959
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1908
1960
|
|
|
1909
|
-
return tslib.__generator(this, function (
|
|
1910
|
-
switch (
|
|
1961
|
+
return tslib.__generator(this, function (_g) {
|
|
1962
|
+
switch (_g.label) {
|
|
1911
1963
|
case 0:
|
|
1912
1964
|
//이미 생성했으면
|
|
1913
1965
|
//1. divElement 가 그대로인 경우 기존 map 객체 리턴
|
|
@@ -1931,9 +1983,9 @@
|
|
|
1931
1983
|
, this.loadMapApi()];
|
|
1932
1984
|
|
|
1933
1985
|
case 1:
|
|
1934
|
-
|
|
1986
|
+
_g.sent();
|
|
1935
1987
|
|
|
1936
|
-
|
|
1988
|
+
_g.label = 2;
|
|
1937
1989
|
|
|
1938
1990
|
case 2:
|
|
1939
1991
|
options = {
|
|
@@ -1966,7 +2018,9 @@
|
|
|
1966
2018
|
options.maxZoom = maxZoom;
|
|
1967
2019
|
divElement.innerHTML = '';
|
|
1968
2020
|
map = new naver.maps.Map(divElement, options);
|
|
1969
|
-
this.map = map;
|
|
2021
|
+
this.map = map; //맵 커서 초기화
|
|
2022
|
+
|
|
2023
|
+
((_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
|
|
1970
2024
|
|
|
1971
2025
|
map.addListener('mousedown', function () {
|
|
1972
2026
|
_this.dragged = false; // console.log('map mousedown / dragged => ', this.dragged);
|
|
@@ -2081,6 +2135,13 @@
|
|
|
2081
2135
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(position);
|
|
2082
2136
|
};
|
|
2083
2137
|
|
|
2138
|
+
NaverMintMapController.prototype.setMapCursor = function (cursor) {
|
|
2139
|
+
var _a;
|
|
2140
|
+
|
|
2141
|
+
var target = (_a = this.mapDivElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
2142
|
+
target && (target.style.cursor = cursor);
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2084
2145
|
NaverMintMapController.prototype.naverPositionToOffset = function (position) {
|
|
2085
2146
|
if (!this.map) {
|
|
2086
2147
|
return new Offset(0, 0);
|
|
@@ -2616,10 +2677,10 @@
|
|
|
2616
2677
|
|
|
2617
2678
|
var _this = this;
|
|
2618
2679
|
|
|
2619
|
-
var _a, _b, _c, _d;
|
|
2680
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2620
2681
|
|
|
2621
|
-
return tslib.__generator(this, function (
|
|
2622
|
-
switch (
|
|
2682
|
+
return tslib.__generator(this, function (_g) {
|
|
2683
|
+
switch (_g.label) {
|
|
2623
2684
|
case 0:
|
|
2624
2685
|
//이미 생성했으면
|
|
2625
2686
|
//1. divElement 가 그대로인 경우 기존 map 객체 리턴
|
|
@@ -2641,9 +2702,9 @@
|
|
|
2641
2702
|
, this.loadMapApi()];
|
|
2642
2703
|
|
|
2643
2704
|
case 1:
|
|
2644
|
-
|
|
2705
|
+
_g.sent();
|
|
2645
2706
|
|
|
2646
|
-
|
|
2707
|
+
_g.label = 2;
|
|
2647
2708
|
|
|
2648
2709
|
case 2:
|
|
2649
2710
|
map = new google.maps.Map(divElement, {
|
|
@@ -2657,7 +2718,9 @@
|
|
|
2657
2718
|
keyboardShortcuts: this.mapProps.keyboardShortcuts === false ? false : true,
|
|
2658
2719
|
clickableIcons: false
|
|
2659
2720
|
});
|
|
2660
|
-
this.map = map;
|
|
2721
|
+
this.map = map; //맵 커서 초기화
|
|
2722
|
+
|
|
2723
|
+
((_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
|
|
2661
2724
|
|
|
2662
2725
|
map.addListener('mousedown', function () {
|
|
2663
2726
|
_this.dragged = false; // console.log('map mousedown / dragged => ', this.dragged);
|
|
@@ -2766,6 +2829,15 @@
|
|
|
2766
2829
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(position);
|
|
2767
2830
|
};
|
|
2768
2831
|
|
|
2832
|
+
GoogleMintMapController.prototype.setMapCursor = function (cursor) {
|
|
2833
|
+
var _a;
|
|
2834
|
+
|
|
2835
|
+
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setOptions({
|
|
2836
|
+
draggingCursor: cursor,
|
|
2837
|
+
draggableCursor: cursor
|
|
2838
|
+
});
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2769
2841
|
GoogleMintMapController.prototype.addEventListener = function (eventName, callback) {
|
|
2770
2842
|
var _this = this;
|
|
2771
2843
|
|
|
@@ -3311,10 +3383,10 @@
|
|
|
3311
3383
|
|
|
3312
3384
|
var _this = this;
|
|
3313
3385
|
|
|
3314
|
-
var _a, _b, _c, _d;
|
|
3386
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3315
3387
|
|
|
3316
|
-
return tslib.__generator(this, function (
|
|
3317
|
-
switch (
|
|
3388
|
+
return tslib.__generator(this, function (_g) {
|
|
3389
|
+
switch (_g.label) {
|
|
3318
3390
|
case 0:
|
|
3319
3391
|
if (!!this.mapApiLoaded) return [3
|
|
3320
3392
|
/*break*/
|
|
@@ -3324,9 +3396,9 @@
|
|
|
3324
3396
|
, this.loadMapApi()];
|
|
3325
3397
|
|
|
3326
3398
|
case 1:
|
|
3327
|
-
|
|
3399
|
+
_g.sent();
|
|
3328
3400
|
|
|
3329
|
-
|
|
3401
|
+
_g.label = 2;
|
|
3330
3402
|
|
|
3331
3403
|
case 2:
|
|
3332
3404
|
options = {
|
|
@@ -3355,7 +3427,9 @@
|
|
|
3355
3427
|
map = new kakao.maps.Map(divElement, options);
|
|
3356
3428
|
map.setMaxLevel(minZoom);
|
|
3357
3429
|
map.setMinLevel(maxZoom);
|
|
3358
|
-
this.map = map;
|
|
3430
|
+
this.map = map; //맵 커서 초기화
|
|
3431
|
+
|
|
3432
|
+
((_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
|
|
3359
3433
|
// map.addListener('dragstart', (e)=>{
|
|
3360
3434
|
// //console.log('map dragstart', e);
|
|
3361
3435
|
// this.dragStartPoint[0] = e.domEvent.clientX
|
|
@@ -3424,13 +3498,13 @@
|
|
|
3424
3498
|
};
|
|
3425
3499
|
|
|
3426
3500
|
KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
|
|
3427
|
-
/**
|
|
3428
|
-
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3429
|
-
* - 가장 확대된 값 : 1
|
|
3430
|
-
* - 가장 축소된 값 : 14
|
|
3431
|
-
*
|
|
3432
|
-
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3433
|
-
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3501
|
+
/**
|
|
3502
|
+
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3503
|
+
* - 가장 확대된 값 : 1
|
|
3504
|
+
* - 가장 축소된 값 : 14
|
|
3505
|
+
*
|
|
3506
|
+
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3507
|
+
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3434
3508
|
*/
|
|
3435
3509
|
var mapValue = this.getBaseToMapZoom(value);
|
|
3436
3510
|
|
|
@@ -3490,6 +3564,13 @@
|
|
|
3490
3564
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(this.positionToLatLng(position));
|
|
3491
3565
|
};
|
|
3492
3566
|
|
|
3567
|
+
KakaoMintMapController.prototype.setMapCursor = function (cursor) {
|
|
3568
|
+
var _a;
|
|
3569
|
+
|
|
3570
|
+
var target = (_a = this.mapDivElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
3571
|
+
target && (target.style.cursor = cursor);
|
|
3572
|
+
};
|
|
3573
|
+
|
|
3493
3574
|
KakaoMintMapController.prototype.positionToLatLng = function (pos) {
|
|
3494
3575
|
return pos ? new kakao.maps.LatLng(pos.lat, pos.lng) : new kakao.maps.LatLng(0, 0);
|
|
3495
3576
|
};
|
|
@@ -3615,12 +3696,12 @@
|
|
|
3615
3696
|
lat: 37.5036845,
|
|
3616
3697
|
lng: 127.0448698
|
|
3617
3698
|
};
|
|
3618
|
-
/**
|
|
3619
|
-
* Mint Map 컴포넌트
|
|
3620
|
-
*
|
|
3621
|
-
* @param {MintMapProps} MintMapProps
|
|
3622
|
-
*
|
|
3623
|
-
* @returns {JSX.Element} JSX
|
|
3699
|
+
/**
|
|
3700
|
+
* Mint Map 컴포넌트
|
|
3701
|
+
*
|
|
3702
|
+
* @param {MintMapProps} MintMapProps
|
|
3703
|
+
*
|
|
3704
|
+
* @returns {JSX.Element} JSX
|
|
3624
3705
|
*/
|
|
3625
3706
|
|
|
3626
3707
|
function MintMap(_a) {
|
|
@@ -3782,8 +3863,8 @@
|
|
|
3782
3863
|
/** @class */
|
|
3783
3864
|
function (_super) {
|
|
3784
3865
|
tslib.__extends(Marker, _super);
|
|
3785
|
-
/**
|
|
3786
|
-
* 지도에 표시할 마커정보
|
|
3866
|
+
/**
|
|
3867
|
+
* 지도에 표시할 마커정보
|
|
3787
3868
|
*/
|
|
3788
3869
|
|
|
3789
3870
|
|
|
@@ -3801,8 +3882,8 @@
|
|
|
3801
3882
|
/** @class */
|
|
3802
3883
|
function (_super) {
|
|
3803
3884
|
tslib.__extends(Polyline, _super);
|
|
3804
|
-
/**
|
|
3805
|
-
* 지도에 표시할 폴리곤정보
|
|
3885
|
+
/**
|
|
3886
|
+
* 지도에 표시할 폴리곤정보
|
|
3806
3887
|
*/
|
|
3807
3888
|
|
|
3808
3889
|
|
|
@@ -3820,8 +3901,8 @@
|
|
|
3820
3901
|
/** @class */
|
|
3821
3902
|
function (_super) {
|
|
3822
3903
|
tslib.__extends(Polygon, _super);
|
|
3823
|
-
/**
|
|
3824
|
-
* 지도에 표시할 폴리곤정보
|
|
3904
|
+
/**
|
|
3905
|
+
* 지도에 표시할 폴리곤정보
|
|
3825
3906
|
*/
|
|
3826
3907
|
|
|
3827
3908
|
|
|
@@ -3831,8 +3912,8 @@
|
|
|
3831
3912
|
_this.options = options;
|
|
3832
3913
|
return _this;
|
|
3833
3914
|
}
|
|
3834
|
-
/**
|
|
3835
|
-
* 폴리곤의 중점을 구한다.
|
|
3915
|
+
/**
|
|
3916
|
+
* 폴리곤의 중점을 구한다.
|
|
3836
3917
|
*/
|
|
3837
3918
|
|
|
3838
3919
|
|
|
@@ -4252,12 +4333,12 @@
|
|
|
4252
4333
|
|
|
4253
4334
|
return 0;
|
|
4254
4335
|
};
|
|
4255
|
-
/**
|
|
4256
|
-
* Mint Map 컴포넌트
|
|
4257
|
-
*
|
|
4258
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4259
|
-
*
|
|
4260
|
-
* @returns {JSX.Element} JSX
|
|
4336
|
+
/**
|
|
4337
|
+
* Mint Map 컴포넌트
|
|
4338
|
+
*
|
|
4339
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4340
|
+
*
|
|
4341
|
+
* @returns {JSX.Element} JSX
|
|
4261
4342
|
*/
|
|
4262
4343
|
|
|
4263
4344
|
|
|
@@ -4427,12 +4508,12 @@
|
|
|
4427
4508
|
return reactDom.createPortal(children, divElement);
|
|
4428
4509
|
}
|
|
4429
4510
|
|
|
4430
|
-
/**
|
|
4431
|
-
* CircleMarker
|
|
4432
|
-
*
|
|
4433
|
-
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4434
|
-
*
|
|
4435
|
-
* @returns {JSX.Element} JSX
|
|
4511
|
+
/**
|
|
4512
|
+
* CircleMarker
|
|
4513
|
+
*
|
|
4514
|
+
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4515
|
+
*
|
|
4516
|
+
* @returns {JSX.Element} JSX
|
|
4436
4517
|
*/
|
|
4437
4518
|
|
|
4438
4519
|
function CircleMarker(_a) {
|
|
@@ -4548,12 +4629,12 @@
|
|
|
4548
4629
|
}, children)));
|
|
4549
4630
|
}
|
|
4550
4631
|
|
|
4551
|
-
/**
|
|
4552
|
-
*PolygonMarker
|
|
4553
|
-
*
|
|
4554
|
-
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4555
|
-
*
|
|
4556
|
-
* @returns {JSX.Element} JSX
|
|
4632
|
+
/**
|
|
4633
|
+
*PolygonMarker
|
|
4634
|
+
*
|
|
4635
|
+
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4636
|
+
*
|
|
4637
|
+
* @returns {JSX.Element} JSX
|
|
4557
4638
|
*/
|
|
4558
4639
|
|
|
4559
4640
|
function PolygonMarker(_a) {
|
|
@@ -4722,12 +4803,12 @@
|
|
|
4722
4803
|
}, children)));
|
|
4723
4804
|
}
|
|
4724
4805
|
|
|
4725
|
-
/**
|
|
4726
|
-
* Mint Map 컴포넌트
|
|
4727
|
-
*
|
|
4728
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4729
|
-
*
|
|
4730
|
-
* @returns {JSX.Element} JSX
|
|
4806
|
+
/**
|
|
4807
|
+
* Mint Map 컴포넌트
|
|
4808
|
+
*
|
|
4809
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4810
|
+
*
|
|
4811
|
+
* @returns {JSX.Element} JSX
|
|
4731
4812
|
*/
|
|
4732
4813
|
|
|
4733
4814
|
function MapPolygonWrapper(_a) {
|
|
@@ -5173,12 +5254,12 @@
|
|
|
5173
5254
|
styleInject__default["default"](css_248z);
|
|
5174
5255
|
|
|
5175
5256
|
var cn = classNames__default["default"].bind(styles);
|
|
5176
|
-
/**
|
|
5177
|
-
* Mint Map 컴포넌트
|
|
5178
|
-
*
|
|
5179
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5180
|
-
*
|
|
5181
|
-
* @returns {JSX.Element} JSX
|
|
5257
|
+
/**
|
|
5258
|
+
* Mint Map 컴포넌트
|
|
5259
|
+
*
|
|
5260
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5261
|
+
*
|
|
5262
|
+
* @returns {JSX.Element} JSX
|
|
5182
5263
|
*/
|
|
5183
5264
|
|
|
5184
5265
|
function MapControlWrapper(_a) {
|
|
@@ -5208,12 +5289,12 @@
|
|
|
5208
5289
|
}, children));
|
|
5209
5290
|
}
|
|
5210
5291
|
|
|
5211
|
-
/**
|
|
5212
|
-
* Mint Map 컴포넌트
|
|
5213
|
-
*
|
|
5214
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5215
|
-
*
|
|
5216
|
-
* @returns {JSX.Element} JSX
|
|
5292
|
+
/**
|
|
5293
|
+
* Mint Map 컴포넌트
|
|
5294
|
+
*
|
|
5295
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5296
|
+
*
|
|
5297
|
+
* @returns {JSX.Element} JSX
|
|
5217
5298
|
*/
|
|
5218
5299
|
|
|
5219
5300
|
function MapPolylineWrapper(_a) {
|
|
@@ -5254,12 +5335,12 @@
|
|
|
5254
5335
|
log: function () {
|
|
5255
5336
|
}
|
|
5256
5337
|
};
|
|
5257
|
-
/**
|
|
5258
|
-
* Mint Map 컴포넌트
|
|
5259
|
-
*
|
|
5260
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5261
|
-
*
|
|
5262
|
-
* @returns {JSX.Element} JSX
|
|
5338
|
+
/**
|
|
5339
|
+
* Mint Map 컴포넌트
|
|
5340
|
+
*
|
|
5341
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5342
|
+
*
|
|
5343
|
+
* @returns {JSX.Element} JSX
|
|
5263
5344
|
*/
|
|
5264
5345
|
|
|
5265
5346
|
function MapCanvasWrapper(_a) {
|
|
@@ -5578,12 +5659,12 @@
|
|
|
5578
5659
|
}), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
|
|
5579
5660
|
}
|
|
5580
5661
|
|
|
5581
|
-
/**
|
|
5582
|
-
* Mint Map 컴포넌트
|
|
5583
|
-
*
|
|
5584
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5585
|
-
*
|
|
5586
|
-
* @returns {JSX.Element} JSX
|
|
5662
|
+
/**
|
|
5663
|
+
* Mint Map 컴포넌트
|
|
5664
|
+
*
|
|
5665
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5666
|
+
*
|
|
5667
|
+
* @returns {JSX.Element} JSX
|
|
5587
5668
|
*/
|
|
5588
5669
|
|
|
5589
5670
|
function MapCanvasMarkerWrapper(_props) {
|