@vtx/map 1.1.33 → 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.
@@ -1884,6 +1884,12 @@ var TMap = /*#__PURE__*/function (_React$Component) {
1884
1884
  infowindow.setMinWidth(cg.width);
1885
1885
  infowindow.setMaxHeight(cg.height);
1886
1886
 
1887
+ if (d.onClose instanceof Function) {
1888
+ infowindow.addEventListener("clickclose", function (e) {
1889
+ d.onClose(e);
1890
+ });
1891
+ }
1892
+
1887
1893
  if (d.lat && d.lng && d.content) {
1888
1894
  (0, _reactDom.render)(d.content, sContent);
1889
1895
  infowindow.setContent(sContent);