@vtx/map 1.1.32 → 1.1.34

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.
@@ -1565,6 +1565,12 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
1565
1565
  infowindow.setWidth(cg.width);
1566
1566
  infowindow.setHeight(cg.height);
1567
1567
 
1568
+ if (d.onClose instanceof Function) {
1569
+ infowindow.addEventListener("clickclose", function (e) {
1570
+ d.onClose(e);
1571
+ });
1572
+ }
1573
+
1568
1574
  if (d.lat && d.lng && d.content) {
1569
1575
  (0, _reactDom.render)(d.content, sContent);
1570
1576
  t.state.gis.openInfoWindow(infowindow, new BMap.Point(d.lng, d.lat));
@@ -3725,7 +3731,7 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
3725
3731
  // return t.getCurrentCenter();
3726
3732
  // }
3727
3733
 
3728
- t.state.gis["setCenter"] = function (gt) {
3734
+ t.state.gis["setMapCenter"] = function (gt) {
3729
3735
  t.setCenter(gt);
3730
3736
  };
3731
3737