@mint-ui/map 0.3.9-beta → 0.4.0-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.
@@ -13,7 +13,7 @@ var offsetCalibration = function (mapType, divElement, options) {
13
13
  if (mapType === 'google') {
14
14
  divElement.style.transform = "translate(50%, 100%) translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
15
15
  } else if (mapType === 'kakao') {
16
- divElement.style.transform = "translate(50%, 50%) translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
16
+ divElement.style.transform = "translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
17
17
  }
18
18
  };
19
19
 
@@ -192,6 +192,7 @@ var KakaoMintMapController = function (_super) {
192
192
  } else {
193
193
  kakaoMarker_1 = new kakao.maps.CustomOverlay(options);
194
194
  marker.options.visible !== undefined && kakaoMarker_1.setVisible(marker.options.visible);
195
+ marker.element.parentElement.style.margin = '0';
195
196
  marker.native = kakaoMarker_1;
196
197
  }
197
198
 
@@ -215,6 +216,8 @@ var KakaoMintMapController = function (_super) {
215
216
  if (options.visible !== undefined) {
216
217
  marker.native.setVisible(options.visible);
217
218
  }
219
+
220
+ marker.element.parentElement.style.margin = '0';
218
221
  }
219
222
  }
220
223
  };
package/dist/index.es.js CHANGED
@@ -1823,6 +1823,7 @@ var KakaoMintMapController = function (_super) {
1823
1823
  } else {
1824
1824
  kakaoMarker_1 = new kakao.maps.CustomOverlay(options);
1825
1825
  marker.options.visible !== undefined && kakaoMarker_1.setVisible(marker.options.visible);
1826
+ marker.element.parentElement.style.margin = '0';
1826
1827
  marker.native = kakaoMarker_1;
1827
1828
  }
1828
1829
 
@@ -1846,6 +1847,8 @@ var KakaoMintMapController = function (_super) {
1846
1847
  if (options.visible !== undefined) {
1847
1848
  marker.native.setVisible(options.visible);
1848
1849
  }
1850
+
1851
+ marker.element.parentElement.style.margin = '0';
1849
1852
  }
1850
1853
  }
1851
1854
  };
@@ -2622,7 +2625,7 @@ var offsetCalibration = function (mapType, divElement, options) {
2622
2625
  if (mapType === 'google') {
2623
2626
  divElement.style.transform = "translate(50%, 100%) translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
2624
2627
  } else if (mapType === 'kakao') {
2625
- divElement.style.transform = "translate(50%, 50%) translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
2628
+ divElement.style.transform = "translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
2626
2629
  }
2627
2630
  };
2628
2631
 
package/dist/index.umd.js CHANGED
@@ -1828,6 +1828,7 @@
1828
1828
  } else {
1829
1829
  kakaoMarker_1 = new kakao.maps.CustomOverlay(options);
1830
1830
  marker.options.visible !== undefined && kakaoMarker_1.setVisible(marker.options.visible);
1831
+ marker.element.parentElement.style.margin = '0';
1831
1832
  marker.native = kakaoMarker_1;
1832
1833
  }
1833
1834
 
@@ -1851,6 +1852,8 @@
1851
1852
  if (options.visible !== undefined) {
1852
1853
  marker.native.setVisible(options.visible);
1853
1854
  }
1855
+
1856
+ marker.element.parentElement.style.margin = '0';
1854
1857
  }
1855
1858
  }
1856
1859
  };
@@ -2627,7 +2630,7 @@
2627
2630
  if (mapType === 'google') {
2628
2631
  divElement.style.transform = "translate(50%, 100%) translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
2629
2632
  } else if (mapType === 'kakao') {
2630
- divElement.style.transform = "translate(50%, 50%) translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
2633
+ divElement.style.transform = "translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
2631
2634
  }
2632
2635
  };
2633
2636
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mint-ui/map",
3
- "version": "0.3.9-beta",
3
+ "version": "0.4.0-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "browser": "./dist/index.umd.js",