@mint-ui/map 0.6.2-beta-test1 → 0.6.2-beta-test4

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.
Files changed (66) hide show
  1. package/.eslintrc.js +109 -109
  2. package/LICENSE +21 -21
  3. package/README.md +73 -73
  4. package/dist/components/mint-map/MintMap.d.ts +10 -10
  5. package/dist/components/mint-map/MintMap.js +6 -6
  6. package/dist/components/mint-map/core/MintMapCanvasRenderer.d.ts +4 -4
  7. package/dist/components/mint-map/core/MintMapController.d.ts +66 -66
  8. package/dist/components/mint-map/core/MintMapController.js +9 -9
  9. package/dist/components/mint-map/core/MintMapCore.d.ts +3 -3
  10. package/dist/components/mint-map/core/advanced/MapBuildingProjection.d.ts +15 -15
  11. package/dist/components/mint-map/core/advanced/MapLoadingComponents.d.ts +17 -17
  12. package/dist/components/mint-map/core/advanced/index.d.ts +3 -3
  13. package/dist/components/mint-map/core/advanced/shapes/CircleMarker.d.ts +22 -22
  14. package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
  15. package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +28 -28
  16. package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.js +6 -6
  17. package/dist/components/mint-map/core/advanced/shapes/base/SVGCircle.d.ts +8 -8
  18. package/dist/components/mint-map/core/advanced/shapes/base/SVGPolygon.d.ts +12 -12
  19. package/dist/components/mint-map/core/advanced/shapes/base/SVGRect.d.ts +10 -10
  20. package/dist/components/mint-map/core/advanced/shapes/base/index.d.ts +3 -3
  21. package/dist/components/mint-map/core/advanced/shapes/index.d.ts +3 -3
  22. package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
  23. package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
  24. package/dist/components/mint-map/core/index.d.ts +8 -8
  25. package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
  26. package/dist/components/mint-map/core/provider/index.d.ts +1 -1
  27. package/dist/components/mint-map/core/util/animation.d.ts +16 -16
  28. package/dist/components/mint-map/core/util/cluster.d.ts +18 -18
  29. package/dist/components/mint-map/core/util/geo.d.ts +38 -38
  30. package/dist/components/mint-map/core/util/index.d.ts +7 -7
  31. package/dist/components/mint-map/core/util/log.d.ts +1 -1
  32. package/dist/components/mint-map/core/util/polygon.d.ts +42 -42
  33. package/dist/components/mint-map/core/util/status.d.ts +9 -9
  34. package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
  35. package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.d.ts +27 -27
  36. package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.js +6 -6
  37. package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.d.ts +11 -11
  38. package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +6 -6
  39. package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +18 -18
  40. package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
  41. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +44 -43
  42. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +55 -44
  43. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +12 -12
  44. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +6 -6
  45. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +12 -12
  46. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +6 -6
  47. package/dist/components/mint-map/core/wrapper/index.d.ts +6 -6
  48. package/dist/components/mint-map/google/GoogleMintMapController.d.ts +51 -51
  49. package/dist/components/mint-map/index.d.ts +5 -5
  50. package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +55 -55
  51. package/dist/components/mint-map/kakao/KakaoMintMapController.js +7 -7
  52. package/dist/components/mint-map/naver/NaverMintMapController.d.ts +53 -53
  53. package/dist/components/mint-map/naver/NaverMintMapController.js +5 -5
  54. package/dist/components/mint-map/types/CommonTypes.d.ts +11 -11
  55. package/dist/components/mint-map/types/MapDrawables.d.ts +118 -118
  56. package/dist/components/mint-map/types/MapDrawables.js +8 -8
  57. package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -44
  58. package/dist/components/mint-map/types/MapTypes.d.ts +60 -60
  59. package/dist/components/mint-map/types/MapTypes.js +13 -13
  60. package/dist/components/mint-map/types/MintMapEvents.d.ts +25 -25
  61. package/dist/components/mint-map/types/MintMapProps.d.ts +101 -101
  62. package/dist/components/mint-map/types/index.d.ts +6 -6
  63. package/dist/index.d.ts +7 -7
  64. package/dist/index.es.js +145 -134
  65. package/dist/index.umd.js +145 -134
  66. 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
 
@@ -1698,11 +1698,11 @@ function (_super) {
1698
1698
  var map = marker.native.getMap();
1699
1699
 
1700
1700
  if (map) {
1701
- /** 중요!!!!
1702
- * naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
1703
- * setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
1704
- * (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
1705
- * 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
1701
+ /** 중요!!!!
1702
+ * naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
1703
+ * setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
1704
+ * (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
1705
+ * 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
1706
1706
  */
1707
1707
  //Position
1708
1708
  if (options.position && options.position instanceof Position) {
@@ -3420,13 +3420,13 @@ function (_super) {
3420
3420
  };
3421
3421
 
3422
3422
  KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
3423
- /**
3424
- * 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
3425
- * - 가장 확대된 값 : 1
3426
- * - 가장 축소된 값 : 14
3427
- *
3428
- * 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
3429
- * 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
3423
+ /**
3424
+ * 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
3425
+ * - 가장 확대된 값 : 1
3426
+ * - 가장 축소된 값 : 14
3427
+ *
3428
+ * 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
3429
+ * 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
3430
3430
  */
3431
3431
  var mapValue = this.getBaseToMapZoom(value);
3432
3432
 
@@ -3611,12 +3611,12 @@ var DEFAULT_CENTER = {
3611
3611
  lat: 37.5036845,
3612
3612
  lng: 127.0448698
3613
3613
  };
3614
- /**
3615
- * Mint Map 컴포넌트
3616
- *
3617
- * @param {MintMapProps} MintMapProps
3618
- *
3619
- * @returns {JSX.Element} JSX
3614
+ /**
3615
+ * Mint Map 컴포넌트
3616
+ *
3617
+ * @param {MintMapProps} MintMapProps
3618
+ *
3619
+ * @returns {JSX.Element} JSX
3620
3620
  */
3621
3621
 
3622
3622
  function MintMap(_a) {
@@ -3778,8 +3778,8 @@ var Marker =
3778
3778
  /** @class */
3779
3779
  function (_super) {
3780
3780
  __extends(Marker, _super);
3781
- /**
3782
- * 지도에 표시할 마커정보
3781
+ /**
3782
+ * 지도에 표시할 마커정보
3783
3783
  */
3784
3784
 
3785
3785
 
@@ -3797,8 +3797,8 @@ var Polyline =
3797
3797
  /** @class */
3798
3798
  function (_super) {
3799
3799
  __extends(Polyline, _super);
3800
- /**
3801
- * 지도에 표시할 폴리곤정보
3800
+ /**
3801
+ * 지도에 표시할 폴리곤정보
3802
3802
  */
3803
3803
 
3804
3804
 
@@ -3816,8 +3816,8 @@ var Polygon =
3816
3816
  /** @class */
3817
3817
  function (_super) {
3818
3818
  __extends(Polygon, _super);
3819
- /**
3820
- * 지도에 표시할 폴리곤정보
3819
+ /**
3820
+ * 지도에 표시할 폴리곤정보
3821
3821
  */
3822
3822
 
3823
3823
 
@@ -3827,8 +3827,8 @@ function (_super) {
3827
3827
  _this.options = options;
3828
3828
  return _this;
3829
3829
  }
3830
- /**
3831
- * 폴리곤의 중점을 구한다.
3830
+ /**
3831
+ * 폴리곤의 중점을 구한다.
3832
3832
  */
3833
3833
 
3834
3834
 
@@ -4171,25 +4171,30 @@ function useMarkerMoving(_a) {
4171
4171
  return [start, stop, resume];
4172
4172
  }
4173
4173
 
4174
- var offsetCalibration = function (mapType, divElement, options, autoFitToViewport, mapDivElement) {
4174
+ var offsetCalibration = function (mapType, divElement, options, autoFitToViewport, autoAdjustAnchor, mapDivElement) {
4175
4175
  //google 맵의 anchor 보정 (네이버와 같이 왼쪽/위 기준으로 처리)
4176
+ var baseTransform = '';
4177
+
4176
4178
  if (mapType === 'google') {
4177
- divElement.style.transform = "translate(50%, 100%) translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4179
+ baseTransform = "translate(50%, 100%) translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4178
4180
  } else if (mapType === 'kakao') {
4179
- divElement.style.transform = "translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4181
+ baseTransform = "translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4180
4182
  }
4181
4183
 
4182
- if (autoFitToViewport) {
4183
- // google 은 마커의 getBoundingClientRect 값을 바로 얻을 수 없어서 next tick 에 처리
4184
+ divElement.style.transform = baseTransform;
4185
+
4186
+ if (autoFitToViewport || autoAdjustAnchor) {
4187
+ // google 은 마커의 getBoundingClientRect 값을 바로 얻을 수 없어서 next tick 에 처리 (50회 트라이)
4184
4188
  if (mapType === 'google') {
4185
- transformToFitWithNextTick(mapType, divElement, options, mapDivElement, 10);
4189
+ divElement.style.visibility = 'hidden';
4190
+ transformToFitWithNextTick(divElement, mapDivElement, baseTransform, autoAdjustAnchor, 50);
4186
4191
  } else {
4187
- transformToFit(mapType, divElement, options, mapDivElement);
4192
+ transformToFit(divElement, mapDivElement, baseTransform, autoAdjustAnchor);
4188
4193
  }
4189
4194
  }
4190
4195
  };
4191
4196
 
4192
- var transformToFitWithNextTick = function (mapType, divElement, options, mapDivElement, maxTryCount, nextCount) {
4197
+ var transformToFitWithNextTick = function (divElement, mapDivElement, baseTransform, anchorAdjust, maxTryCount, nextCount) {
4193
4198
  var tryCount = nextCount || 0;
4194
4199
  setTimeout(function () {
4195
4200
  tryCount += 1;
@@ -4201,51 +4206,54 @@ var transformToFitWithNextTick = function (mapType, divElement, options, mapDivE
4201
4206
  var rect = divElement.getBoundingClientRect();
4202
4207
 
4203
4208
  if (rect.x === 0 && rect.y === 0 && rect.width === 0 && rect.height === 0) {
4204
- transformToFitWithNextTick(mapType, divElement, options, mapDivElement, maxTryCount, tryCount);
4209
+ transformToFitWithNextTick(divElement, mapDivElement, baseTransform, anchorAdjust, maxTryCount, tryCount);
4205
4210
  } else {
4206
- transformToFit(mapType, divElement, options, mapDivElement);
4211
+ transformToFit(divElement, mapDivElement, baseTransform, anchorAdjust);
4212
+ divElement.style.visibility = 'visible';
4207
4213
  }
4208
4214
  }, 20);
4209
4215
  };
4210
4216
 
4211
- var transformToFit = function (mapType, divElement, options, mapDivElement) {
4217
+ var transformToFit = function (divElement, mapDivElement, baseTransform, anchorAdjust) {
4212
4218
  var mapRect = mapDivElement.getBoundingClientRect();
4213
4219
  var rect = divElement.getBoundingClientRect(); // 보정 값 계산
4214
4220
 
4215
4221
  var xValue = getMarkersFitPosition(mapRect.x, mapRect.width, rect.x, rect.width);
4216
4222
  var yValue = getMarkersFitPosition(mapRect.y, mapRect.height, rect.y, rect.height);
4217
4223
 
4218
- if (xValue !== 0 || yValue !== 0) {
4219
- if (mapType === 'google') {
4220
- divElement.style.transform = "translate(50%, 100%) translate(".concat(options.anchor ? options.anchor.x * -1 + xValue : xValue, "px, ").concat(options.anchor ? options.anchor.y * -1 + yValue : yValue, "px)");
4221
- } else if (mapType === 'kakao') {
4222
- divElement.style.transform = "translate(".concat(options.anchor ? options.anchor.x * -1 + xValue : xValue, "px, ").concat(options.anchor ? options.anchor.y * -1 + yValue : yValue, "px)");
4223
- } else {
4224
- divElement.style.transform = "translate(".concat(xValue, "px, ").concat(yValue, "px)");
4225
- }
4224
+ if (anchorAdjust) {
4225
+ var toLeft = xValue < 0;
4226
+ var toRight = xValue > 0;
4227
+ var toTop = yValue < 0;
4228
+ var toBottom = yValue > 0;
4229
+ var transX = toLeft ? rect.width * -1 : toRight ? rect.width : 0;
4230
+ var transY = toTop ? rect.height * -1 : toBottom ? rect.height : 0;
4231
+ divElement.style.transform = baseTransform + " translate(".concat(transX, "px, ").concat(transY, "px)");
4232
+ } else {
4233
+ divElement.style.transform = baseTransform + " translate(".concat(xValue, "px, ").concat(yValue, "px)");
4226
4234
  }
4227
4235
  };
4228
4236
 
4229
4237
  var getMarkersFitPosition = function (containerPosition, containerSize, markerPosition, markerSize) {
4230
4238
  var delta = markerPosition - containerPosition;
4231
4239
  var mapSize = containerSize;
4232
- var overflowMin = delta <= 0;
4233
- var overflowMax = delta + markerSize >= mapSize; // 한쪽만 넘어간 경우 처리
4240
+ var overflowMin = delta < 0;
4241
+ var overflowMax = delta + markerSize > mapSize; // 한쪽만 넘어간 경우 처리
4234
4242
 
4235
4243
  if (overflowMin && !overflowMax) {
4236
- return delta;
4244
+ return delta * -1;
4237
4245
  } else if (!overflowMin && overflowMax) {
4238
4246
  return mapSize - delta - markerSize;
4239
4247
  }
4240
4248
 
4241
4249
  return 0;
4242
4250
  };
4243
- /**
4244
- * Mint Map 컴포넌트
4245
- *
4246
- * @param {MapControlWrapperProps} MapControlWrapperProps
4247
- *
4248
- * @returns {JSX.Element} JSX
4251
+ /**
4252
+ * Mint Map 컴포넌트
4253
+ *
4254
+ * @param {MapControlWrapperProps} MapControlWrapperProps
4255
+ *
4256
+ * @returns {JSX.Element} JSX
4249
4257
  */
4250
4258
 
4251
4259
 
@@ -4254,15 +4262,17 @@ function MapMarkerWrapper(_a) {
4254
4262
  _a.endAnimationClassName;
4255
4263
  var _b = _a.autoFitToViewport,
4256
4264
  autoFitToViewport = _b === void 0 ? false : _b,
4257
- _c = _a.topOnClick,
4258
- topOnClick = _c === void 0 ? false : _c,
4259
- _d = _a.topOnHover,
4260
- topOnHover = _d === void 0 ? false : _d,
4265
+ _c = _a.autoAdjustAnchor,
4266
+ autoAdjustAnchor = _c === void 0 ? false : _c,
4267
+ _d = _a.topOnClick,
4268
+ topOnClick = _d === void 0 ? false : _d,
4269
+ _e = _a.topOnHover,
4270
+ topOnHover = _e === void 0 ? false : _e,
4261
4271
  movingAnimation = _a.movingAnimation,
4262
- _e = _a.disablePointerEvent,
4263
- disablePointerEvent = _e === void 0 ? false : _e,
4272
+ _f = _a.disablePointerEvent,
4273
+ disablePointerEvent = _f === void 0 ? false : _f,
4264
4274
  children = _a.children,
4265
- options = __rest(_a, ["startAnimationClassName", "endAnimationClassName", "autoFitToViewport", "topOnClick", "topOnHover", "movingAnimation", "disablePointerEvent", "children"]); //controller
4275
+ options = __rest(_a, ["startAnimationClassName", "endAnimationClassName", "autoFitToViewport", "autoAdjustAnchor", "topOnClick", "topOnHover", "movingAnimation", "disablePointerEvent", "children"]); //controller
4266
4276
 
4267
4277
 
4268
4278
  var controller = useMintMapController(); //element
@@ -4272,9 +4282,9 @@ function MapMarkerWrapper(_a) {
4272
4282
 
4273
4283
  var markerRef = useRef(); //moving animation
4274
4284
 
4275
- var _f = useState({}),
4276
- movingState = _f[0],
4277
- setMovingState = _f[1];
4285
+ var _g = useState({}),
4286
+ movingState = _g[0],
4287
+ setMovingState = _g[1];
4278
4288
 
4279
4289
  useEffect(function () {
4280
4290
  // console.log('movingState', movingState);
@@ -4340,10 +4350,11 @@ function MapMarkerWrapper(_a) {
4340
4350
 
4341
4351
  useEffect(function () {
4342
4352
  // console.log('drawable created')
4343
- divElement.style.display = 'flex';
4344
- divElement.style.justifyContent = 'flex-start';
4345
- divElement.style.alignItems = 'flex-start';
4346
- divElement.style.flexDirection = 'column';
4353
+ // divElement.style.display = 'flex'
4354
+ // divElement.style.justifyContent = 'flex-start'
4355
+ // divElement.style.alignItems = 'flex-start'
4356
+ // divElement.style.flexDirection = 'column'
4357
+ divElement.style.width = 'fit-content';
4347
4358
  divElement.style.pointerEvents = disablePointerEvent ? 'none' : '';
4348
4359
  divElement.addEventListener('click', onClickHandler);
4349
4360
  divElement.addEventListener('mousedown', onMousedownHandler, {
@@ -4375,7 +4386,7 @@ function MapMarkerWrapper(_a) {
4375
4386
  } //marker offset 보정
4376
4387
 
4377
4388
 
4378
- offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, controller.mapDivElement); //z-index 처리
4389
+ offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, autoAdjustAnchor, controller.mapDivElement); //z-index 처리
4379
4390
 
4380
4391
  if (options.zIndex !== undefined) {
4381
4392
  controller.setMarkerZIndex(markerRef.current, options.zIndex);
@@ -4392,7 +4403,7 @@ function MapMarkerWrapper(_a) {
4392
4403
  } //marker offset 보정
4393
4404
 
4394
4405
 
4395
- offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, controller.mapDivElement); //z-index 처리
4406
+ offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, autoAdjustAnchor, controller.mapDivElement); //z-index 처리
4396
4407
 
4397
4408
  if (options.zIndex !== undefined) {
4398
4409
  controller.setMarkerZIndex(markerRef.current, options.zIndex);
@@ -4410,12 +4421,12 @@ function MapMarkerWrapper(_a) {
4410
4421
  return createPortal(children, divElement);
4411
4422
  }
4412
4423
 
4413
- /**
4414
- * CircleMarker
4415
- *
4416
- * @param {CircleMarkerProps} CircleMarkerProps
4417
- *
4418
- * @returns {JSX.Element} JSX
4424
+ /**
4425
+ * CircleMarker
4426
+ *
4427
+ * @param {CircleMarkerProps} CircleMarkerProps
4428
+ *
4429
+ * @returns {JSX.Element} JSX
4419
4430
  */
4420
4431
 
4421
4432
  function CircleMarker(_a) {
@@ -4531,12 +4542,12 @@ function CircleMarker(_a) {
4531
4542
  }, children)));
4532
4543
  }
4533
4544
 
4534
- /**
4535
- *PolygonMarker
4536
- *
4537
- * @param {PolygonMarkerProps} PolygonMarkerProps
4538
- *
4539
- * @returns {JSX.Element} JSX
4545
+ /**
4546
+ *PolygonMarker
4547
+ *
4548
+ * @param {PolygonMarkerProps} PolygonMarkerProps
4549
+ *
4550
+ * @returns {JSX.Element} JSX
4540
4551
  */
4541
4552
 
4542
4553
  function PolygonMarker(_a) {
@@ -4707,12 +4718,12 @@ function PolygonMarker(_a) {
4707
4718
  }, children)));
4708
4719
  }
4709
4720
 
4710
- /**
4711
- * Mint Map 컴포넌트
4712
- *
4713
- * @param {MapControlWrapperProps} MapControlWrapperProps
4714
- *
4715
- * @returns {JSX.Element} JSX
4721
+ /**
4722
+ * Mint Map 컴포넌트
4723
+ *
4724
+ * @param {MapControlWrapperProps} MapControlWrapperProps
4725
+ *
4726
+ * @returns {JSX.Element} JSX
4716
4727
  */
4717
4728
 
4718
4729
  function MapPolygonWrapper(_a) {
@@ -5158,12 +5169,12 @@ var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-m
5158
5169
  styleInject(css_248z);
5159
5170
 
5160
5171
  var cn = classNames.bind(styles);
5161
- /**
5162
- * Mint Map 컴포넌트
5163
- *
5164
- * @param {MapControlWrapperProps} MapControlWrapperProps
5165
- *
5166
- * @returns {JSX.Element} JSX
5172
+ /**
5173
+ * Mint Map 컴포넌트
5174
+ *
5175
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5176
+ *
5177
+ * @returns {JSX.Element} JSX
5167
5178
  */
5168
5179
 
5169
5180
  function MapControlWrapper(_a) {
@@ -5191,12 +5202,12 @@ function MapControlWrapper(_a) {
5191
5202
  }, children));
5192
5203
  }
5193
5204
 
5194
- /**
5195
- * Mint Map 컴포넌트
5196
- *
5197
- * @param {MapControlWrapperProps} MapControlWrapperProps
5198
- *
5199
- * @returns {JSX.Element} JSX
5205
+ /**
5206
+ * Mint Map 컴포넌트
5207
+ *
5208
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5209
+ *
5210
+ * @returns {JSX.Element} JSX
5200
5211
  */
5201
5212
 
5202
5213
  function MapPolylineWrapper(_a) {
@@ -5237,12 +5248,12 @@ var console$1 = {
5237
5248
  log: function () {
5238
5249
  }
5239
5250
  };
5240
- /**
5241
- * Mint Map 컴포넌트
5242
- *
5243
- * @param {MapControlWrapperProps} MapControlWrapperProps
5244
- *
5245
- * @returns {JSX.Element} JSX
5251
+ /**
5252
+ * Mint Map 컴포넌트
5253
+ *
5254
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5255
+ *
5256
+ * @returns {JSX.Element} JSX
5246
5257
  */
5247
5258
 
5248
5259
  function MapCanvasWrapper(_a) {
@@ -5561,12 +5572,12 @@ function MapCanvasWrapper(_a) {
5561
5572
  }), renderFlag && React.createElement(React.Fragment, null));
5562
5573
  }
5563
5574
 
5564
- /**
5565
- * Mint Map 컴포넌트
5566
- *
5567
- * @param {MapControlWrapperProps} MapControlWrapperProps
5568
- *
5569
- * @returns {JSX.Element} JSX
5575
+ /**
5576
+ * Mint Map 컴포넌트
5577
+ *
5578
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5579
+ *
5580
+ * @returns {JSX.Element} JSX
5570
5581
  */
5571
5582
 
5572
5583
  function MapCanvasMarkerWrapper(_props) {